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
tar jxvf skype_static-2.1.0.81.tar.bz2
複製代碼
to /usr/src/skype directory
3. Create symbolic links
ln -s /usr/src/skype /usr/share/skype
ln -s /usr/src/skeype/skype /usr/bin/skype
複製代碼
4. Install X Window and other packages
yum install libXv
yum install libXScrnSaver
yum groupinstall "X Window System"
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:
vi /etc/X11/twm/system.twmrc - add RandomPlacement above NoGrabServer line.
cp /etc/X11/twm/system.twmrc /root/.twmrc
複製代碼
如果安装好以后,下面的files (/usr/src/siptosis folder)经常会看:
5. Test the X Window and Skype
su -l root
[root-password]
cd /usr/src
// To start X Window
startx
// To start Skype
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
#Sample AUTO config with NO registration
# username and password not important in this mode
# Set to available port to transport SIP messages on siptosis computer
host_port=5070 // Modify this port number if neccessary
username=skypests // Modify this if neccessary
passwd=unimportantpassword
do_register=no
# --- 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)
[skypests]
username=skypests
type=friend
secret=skype
host=192.168.1.103
nat=no
dtmfmode=auto
;canreinvite=yes (use only if you understand what it does - does not work well with ilbc and speex codecs)
canreinvite=no
;port should not be needed if you register with the PBX - some have said it's needed??
;port=siptosishostport
port=5070
qualify=yes
defaultip=192.168.1.103
incominglimit=1
outgoinglimit=1
call-limit=1
busylevel=1
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.
#you can simulate speed dials this way also (dialing your prefix and 55 would call the skype echo test)
^55$:echo123
^56$:skype_name_1
^57$:skype_name_2
#send callme im to echo123 to get a call back from the test service
^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.
#*,sip:3000@192.168.1.103:5228
*,sip:1911@192.168.1.5:5060
#Default: all incoming skype callers get the invalid destination message
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.作者: ckleea 時間: 2011-10-8 08:04
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.作者: 角色 時間: 2011-10-8 14:04
The first mission is to install X Window System by using the following command
yum groupinstall "X Window System"
YH作者: 角色 時間: 2011-10-8 14:08
本帖最後由 角色 於 2011-10-8 14:11 編輯
Check whether you have install vnc server, if not install it
you do not need to install the client on the server.
"rpm -qa | grep vnc" will show you all the relevant information作者: 角色 時間: 2011-10-8 14:20
Oh! You are right! It suppose to be run on the Client Platform.
YH作者: 角色 時間: 2011-10-8 14:23
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作者: ckleea 時間: 2011-10-8 14:40
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
# The VNCSERVERS variable is a list of display:user pairs.
#
# Uncomment the lines below to start a VNC server on display :2
# as my 'myusername' (adjust this to your own). You will also
# need to set a VNC password; run 'man vncpasswd' to see how
# to do that.
#
# DO NOT RUN THIS SERVICE if your local area network is
I am able to get the remote linux machine shown on my local MS Windows but they are all within local segment only. If I wanna connect it from my office, what should I do? Do I need any port forwarding? Have you tried SSH VNC?
YH作者: ckleea 時間: 2011-10-9 10:56
You need VNC, or NX for remote connection作者: 角色 時間: 2011-10-9 11:00
In your recommended website, they claimed that there is conflict between Skype and Wine. If you choose to install the Skype static version, it will also make Wine unavailable.作者: 角色 時間: 2011-10-13 00:42
如果用Wine,就直接安装Window版本的Skype。
我估计应该可以可以。
角色作者: ckleea 時間: 2011-10-13 06:32
You cannot make use of windows versions of skype to install multiple instances in the future. Wine is limited in functionality.作者: ckleea 時間: 2011-10-13 06:38
Your way is towards installation of multiple instances of skype for > 1 channels to asterisk.
This is different from the OBiApps product that has only windows version only.作者: bubblestar 時間: 2011-10-14 10:29
I am going to install siptosis in my system. Is it a good idea to install it with a general user instead of using root? How many instance can I make when running the free version?
Thanks作者: ckleea 時間: 2011-10-14 12:46
I install as root user, same as asterisk作者: bubblestar 時間: 2011-10-14 18:35
Following your advice, I reinstall siptosis using root as user. After installation, I tested my voice with Skype's built-in echo123 in GUI (gnome). However, only speakers work, microphone did not echo my voice recordings.
After rebooting the system, I did not see any Skype icon appear on Desktop right corner. Is it normal?
To verify Skype is running, I use the command 'top' in CLI and confirmed it is working. As I notice from http://wiki.centos.org/HowTos/Skype that there's a conflict between Skype and Wine (more precisely, between Skype and pulseaudio-libs.i686, on which Wine depends), would be plessed if you could tell how to resolve this?
For info., I have not created dialplan in Asterisk to test with Skype for the time being.作者: ckleea 時間: 2011-10-14 23:33
As spoken, as long as use linux static build skype, it should work. No worry on the audio in and out at the skype machine because you use it remotely. Concentrate to see if audio stream working when using asterisk to dial in and out
In my set up, I use siptosis to connect 9 skype users accounts and install wine + obiapps on the same machine. No conflict seen
For dial plan,
[CallingRule_Skype]; This serve 3 skype trunks _01 _02 _03 _05 _06 _07 _08 & _09 for outgoing to other skype accounts
I can tell you that it is not difficult to make it running.作者: bubblestar 時間: 2011-10-15 00:15
All dialplan codes are copied and put in place now. Will test it tomorrow morning. With the observation using 'top' in CLI environment, Skype has been running for more than 3 hours. Hope it can last without problem until I make the test.
I recall that you have a teachique to keep Skype running without being interrupted by the program per se. Lets discuss later for details. Thanks again for your great advice and assistance.作者: ckleea 時間: 2011-10-15 07:07
Could ckleea c-hing please share the Skype sip trunk settings in sip.conf for reference as well? I cannot figure out how to initiate the call without callee's info in the dialplan. Thanks作者: 角色 時間: 2011-10-15 14:07
I guess bubblestar will eventually get the Skype Trunk working for both inbound and outbound Skype call.
YH作者: ckleea 時間: 2011-10-15 20:31
This should be defined in sip.conf
[stsTrunk_01]
username=stsTrunk_01
type=friend
secret=yoursecret ; I don't kow how yours is generated
Please follow also the the above link to install the trunk.作者: bubblestar 時間: 2011-10-17 17:31
Both Skype and SipToSis are running. However, I still have registration problem between Asterisk and SipToSis. Typing "sip show peers" in CLI return "unreachable" remarks.
My sip.conf and siptosis.cfg are as below:
sip.conf in Asterisk
[skypetestuser]
username=skypetestuser ; use same as in brackets above
type=friend
context=default
secret=siptosisregpassword
host=192.168.888.888
port=5070
nat=yes
dtmfmode=auto
canreinvite=no
insecure = port,invite
qualify=yes
defaultip=192.168.888.888
incominglimit=1
outgoinglimit=1
call-limit=1
busylevel=1
複製代碼
siptosis.cfg in /opt/siptosis
#Sample Asterisk registration example - comment out NO registration info above first and uncomment the following.
I only have one siptosis.cfg file in the siptosis folder. There is no stsTrunk_01.cfg as mentioned in the directory. I think these other cfg files are generated only when Trunk Builder is used.作者: ckleea 時間: 2011-10-18 06:36
回復 51#bubblestar
this is the nomenclature I used for multiple trunks. Please send me the files for a look作者: bubblestar 時間: 2011-10-18 09:41
Somethings must be changed作者: ckleea 時間: 2011-10-21 06:27
Please also note
Call-Back Setup Instructions
Note: PSTN rates will be per PSTN outbound call according to the selected provider billing terms.
Single Stage Callback - no IVR or additional dialing - Scroll down for two stage metbod.
Trigger callback using a Skype DID (AKA SkypeIn,Skype Online number) or from a Specific Skype User
Edit SkypeToSipAuth.props
Add a line like this (at least two targets):
AuthorizedSkypeIdOrNumber,CallBack:Skype=someid1OrPstnNumber,someskypeid2OrPstnNumber
or:
AuthorizedSkypeIdOrNumber,CallBack:Skype=someid1OrPstnNumber|SIP=someSipAddress@someprovider:5060
Note: only a single SIP target can be specified.
Using a SIP DID to trigger callback
Edit SipToSkypeAuth.props
Add a line like this (at least two targets):
AuthorizedSIPNumber,*,*,CallBack:Skype=someSkypeId1OrPstnNumber,someSkypeId2OrPstnNumber
or:
AuthorizedSIPNumber,*,*,CallBack:Skype=someSkypeId1,someSkypeId2|SIP=someSipAddress@someprovider:5060
Note: only a single SIP target can be specified.
Another way of using a SIP call to trigger callback
Edit SkypeOutDialingRules.props
Add a line like this (at least two targets):
^58$:CallBack:Skype=someskypeuser1OrPstnNumber,someskypeuser2OrPstnNumber
or:
^58$:CallBack:Skype=someskypeuser1OrPstnNumber,someskypeuser2OrPstnNumber|SIP=someSIPUser@SomeSIPAddress:5060
In this example, if you dial 58@yourSTSGateway:stsPort - it will trigger a callback.
Note: only a single SIP target can be specified.
Two Stage Callback - uses IVR for dialing
Note: DTMF decoding must be on. In the case of a Skype PSTN target, DTMF decoding may not be reliable.
Trigger callback using a Skype DID (AKA SkypeIn,Skype Online number) or from a Specific Skype User
Edit SkypeToSipAuth.props
Add a line like this (specify only one target):
AuthorizedSkypeIdOrNumber,CallBack:Skype=someSkypeIdOrPSTNNumber
or:
AuthorizedSkypeIdOrNumber,CallBack:SIP=someSipAddress@someprovider:5060
Once the called back target answers, the IVR will prompt for the destination.
Destination will be dialed as defined in SkypeOutDialingRules.props.
Default is to call out via Skype, to dial out using SIP instead, dial * before the destination.
Parameter callBackForceSipPrefix controls the SIP dialing prefix.
In the case of SIP dialing, destination will be dialed as defined in SipOutDialingRules.
Using a SIP DID to trigger callback
Edit SipToSkypeAuth.props
Add a line like this (specify only one target):
AuthorizedSIPNumber,*,*,CallBack:Skype=someSkypeIdOrPSTNNumber
or:
AuthorizedSIPNumber,*,*,CallBack:SIP=someSipAddress@someprovider:5060
Once the called back target answers, the IVR will prompt for the destination.
Destination will be dialed as defined in SkypeOutDialingRules.props.
Another way of using a SIP call to trigger callback
Edit SkypeOutDialingRules.props
Add a line like this (specify only one target):
^58$:CallBack:Skype=someSkypeIdOrPSTNNumber
or:
^58$:CallBack:SIP=someSIPUser@SomeSIPAddress:5060
In this example, if you dial 58@yourSTSGateway:stsPort - it will trigger a callback.
Once the called back target answers, the IVR will prompt for the destination.
Destination will be dialed as defined in SkypeOutDialingRules.props.作者: ckleea 時間: 2011-10-22 22:41
To enable all on status, go to the config.xml and change
Then your skype status won't be away作者: bubblestar 時間: 2011-10-22 23:01
Thanks for the useful information.作者: ckleea 時間: 2011-10-27 08:00
For your information, i believe the paid version of stsTrunkbuilder has been discontinued and withdrawn from usage.
Though i download the free version from the site, the content is completely different from paid version that i have.作者: bubblestar 時間: 2011-10-27 12:54
Have you tried installing the free version of stsTrunkbuilder and compare it with your paid version about their functionality?作者: 角色 時間: 2011-10-27 20:48
I look at the props and cfg files. There have been more settings in the new version.
I am unable to replace my old files with the new one as it would overwrite mine. What I did before, use trunkbuilder to build the trunk settings, then copy to sip.conf. Config each skype instance to accept skype-java and auto login etc.
Then autoboot with /etc/rc.d/rc.local作者: 角色 時間: 2011-10-30 08:01
The installation is almost completed. The next task may be the installation of multiple Skype clients.作者: fatfish 時間: 2011-10-30 09:36
过两天我也要用这个帖子了
哈哈哈哈作者: 角色 時間: 2011-10-30 21:53
You are welcome to have a look at this thread when you install the Skype for Asterisk.
YH作者: ckleea 時間: 2011-11-3 03:47
Siptosis has a lot of settings needed to look at. It seems very unfortunate that the developer has taken out the paid version from the site and will provide limited support only for paid users.
I am looking forward for an upgrade.作者: ckleea 時間: 2011-11-3 03:49
I have just tried this combination
skype in US -> siptosis on asterisk in HK -> sip phone in UK
Almost like the usual copper wire analog phone calls.作者: ckleea 時間: 2011-11-5 19:50
其實 siptosis.cfg內有很多 setting 可以調控,always online is one, watchdog on configuration changes
但運作上,有時會出現 trunk not reachable.,原因不明?作者: ckleea 時間: 2011-11-9 07:43