返回列表 發帖

【角色茶桌】——Asterisk 1.8 + Siptosis彻底安装成功!

本帖最後由 角色 於 2011-10-30 07:58 編輯

Installation Reference
Please make use of the following reference link in the course of installing your Skype for Asterisk using Siptosis gateway
http://www.mhspot.com/sts/sts_install_centos.html

CentOS 5.X

Skype
要在坊间搜索skype_static-2.1.0.81.tar.bz2的文件,在Skype的网站的Skype for Linux是给CentOS 6.0用的。

Siptosis (Single Skype Account)
http://www.mhspot.com/sts/siptosis_download.php

Java for Linux
The JRE java rpm is obtainable in the following link:
http://www.java.com/en/download/manual.jsp

The basic working principle of Skype for Asterisk:
There is a Skype client on a Linux box. In order to interface with other application, a Java for Linux is employed. Siptosis is able to talk to Linux-based Skype via Java.


Installation procedures

1. Down the file jxvf skype_static-2.1.0.81.tar.bz2 to /usr/src/skype directory

2. Unzip and untar the file skype_static-2.1.0.81.tar.bz2
  1. tar jxvf skype_static-2.1.0.81.tar.bz2
複製代碼
to /usr/src/skype directory

3. Create symbolic links
  1. ln -s /usr/src/skype /usr/share/skype
  2. ln -s /usr/src/skeype/skype /usr/bin/skype
複製代碼
4. Install X Window and other packages
  1. yum install libXv
  2. yum install libXScrnSaver
  3. yum groupinstall "X Window System"
  4. yum install alsa-lib
複製代碼
4. If you are using twm X Window Manager, you have to make the following adjustment such that you would not need to place the popup window manually. Login root before carrying out the following changes:
  1. vi /etc/X11/twm/system.twmrc - add RandomPlacement above NoGrabServer line.
  2. cp /etc/X11/twm/system.twmrc /root/.twmrc
複製代碼
如果安装好以后,下面的files (/usr/src/siptosis folder)经常会看:

5. Test the X Window and Skype
  1. su -l root
  2. [root-password]

  3. cd /usr/src

  4. // To start X Window
  5. startx

  6. // To start Skype
  7. skype
複製代碼
6. Installation of Java for Linux

7. Installation of Siptosis  in /usr/src/siptosis

After installation, please read the file /usr/src/siptosis/readme.txt which gives you more information for the installation.

8. Change the directory to /usr/src/siptosis and modify the following in ./siptosis.cfg
  1. #Sample AUTO config with NO registration
  2. #  username and password not important in this mode
  3. #  Set to available port to transport SIP messages on siptosis computer
  4. host_port=5070   // Modify this port number if neccessary
  5. username=skypests  // Modify this if neccessary
  6. passwd=unimportantpassword
  7. do_register=no
  8. # --- end of NO registration example ---
複製代碼
9. Edit the Asterisk server which communicate with the Siptosis. Please note the Asterisk server and Siptossis may not the same location (i.e. same IP)
  1. [skypests]
  2. username=skypests
  3. type=friend
  4. secret=skype
  5. host=192.168.1.103
  6. nat=no
  7. dtmfmode=auto
  8. ;canreinvite=yes (use only if you understand what it does - does not work well with ilbc and speex codecs)
  9. canreinvite=no
  10. ;port should not be needed if you register with the PBX - some have said it's needed??
  11. ;port=siptosishostport
  12. port=5070
  13. qualify=yes
  14. defaultip=192.168.1.103
  15. incominglimit=1
  16. outgoinglimit=1
  17. call-limit=1
  18. busylevel=1
  19. context=from-skype
複製代碼
Sip

SipToSkypeAuth.props
to forward and authorize SIP calls to desired Skype destinations. (Most users will only use: *,*,localnet,calleeid)

SipOutDialingRules.props


Skype

SkypeOutDialingRules.props
for any Skype dialing rules/transforms wanted. When you connect to the Skype, press 55 for calling echo123, press 56 for calling skype_name_1.
  1. #you can simulate speed dials this way also (dialing your prefix and 55 would call the skype echo test)
  2. ^55$:echo123
  3. ^56$:skype_name_1
  4. ^57$:skype_name_2
  5. #send callme im to echo123 to get a call back from the test service
  6. ^559$:im:echo123:callme
複製代碼
SkypeToSipAuth.props
to forward skype calls to SIP destinations (failure to do this step will cause all incoming Skype calls to get the invalid destination. The first two line show the default incoming Skype calling, which goto sip:1911@192.168.1.5:5060. The last two line is never executed, which is given for reference only.
  1. #*,sip:3000@192.168.1.103:5228
  2. *,sip:1911@192.168.1.5:5060

  3. #Default: all incoming skype callers get the invalid destination message
  4. *,play:clips/invalidDest.wav
複製代碼
角色

回復 1# 角色

Please refer to my tutorial thread here

http://www.telecom-cafe.com/forum/viewthread.php?tid=3682

TOP

安装这个,最大得问题,就是要有一个Linux Graphic Windows (X-Windows)运行,但是我们都是用Text Mode,根本很少用X-Windows,都不知道怎样起?

因为我在MS Windows安装过sip2sis+Skype,然后用Linux连过去,结果是打出打入,效果也不错。而现在Skype都要再Linux上运行,那么用什么方法好?

用LInux的Skype?还是用Wine(在Linux下可以运行MS Windows软件) + MS Windows的Skype + MS Windows的siptosis呢?

在琢磨中。。。。。。。。。。。。。。。


角色

TOP

回復 2# ckleea

Many thanks for providing the useful link such that we could have a very reference.

YH

TOP

在CentOS怎样安装Linux (Static Version Skype)

http://wiki.centos.org/HowTos/Skype

角色

TOP

回復 5# 角色


    Yes. But remember, you do need a x-window terminal to install the skype at the beginning, i.e. the first installation. It asks you to allow access and to save your user login and password. Once you did this, all text modes are ok.

TOP

I did my installation using vnc. My server has no monitor attached. I rely on vnc to assist my installation for skype and obiapps. All other are done via ssh in text mode.

TOP

The first mission is to install X Window System by using the following command

yum groupinstall "X Window System"

YH

TOP

本帖最後由 角色 於 2011-10-8 14:11 編輯

Check whether you have install vnc server, if not install it

Check
rpm -q vnc-server

Install
yum install vnc-server

TOP

Check vnc client

Check
rpm -q vnc

Install
yum install vnc

TOP

本帖最後由 ckleea 於 2011-10-8 14:17 編輯

回復 10# 角色


    you do not need to install the client on the server.

"rpm -qa | grep vnc" will show you all the relevant information

TOP

Oh! You are right! It suppose to be run on the Client Platform.

YH

TOP

I could start the X Window by the command "xstart". after I have moved my monitor, keyboard and mouse to the X Window server.

Now the second problem is how to redirect the image shown on the sever remotely on the client on MS Windows 7

YH

TOP

you can type setup in the command line to configure X windows size

If you enable vnc, each enable vnc user will have one .vnc directory within the user home directory e.g. in my case, I have a hidden directory in /home/ckleea/.vnc

for the geometry of vnc size, configure the file at /etc/sysconfig/vncservers
  1. # The VNCSERVERS variable is a list of display:user pairs.
  2. #
  3. # Uncomment the lines below to start a VNC server on display :2
  4. # as my 'myusername' (adjust this to your own).  You will also
  5. # need to set a VNC password; run 'man vncpasswd' to see how
  6. # to do that.  
  7. #
  8. # DO NOT RUN THIS SERVICE if your local area network is
  9. # untrusted!  For a secure way of using VNC, see
  10. # <URL:http://www.uk.research.att.com/archive/vnc/sshvnc.html>.

  11. # Use "-nolisten tcp" to prevent X connections to your VNC server via TCP.

  12. # Use "-nohttpd" to prevent web-based VNC clients connecting.

  13. # Use "-localhost" to prevent remote VNC clients connecting except when
  14. # doing so through a secure tunnel.  See the "-via" option in the
  15. # `man vncviewer' manual page.

  16. # VNCSERVERS="2:myusername"
  17. # VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -nohttpd -localhost"
  18. VNCSERVERS="1:cklee 2:ckleea
  19. VNCSERVERARGS[1]="-geometry 1280x1024"
  20. VNCSERVERARGS[2]="-geometry 1152x864"
複製代碼

TOP

回復 14# ckleea

Where do we put those code? In the VNC server?

How the Client side?

YH

TOP

返回列表