|
You are expected to already know how to install software on your platform and
how to configure Asterisk/trixbox/Elastix peers, extensions and routes.
When configured correctly, you will have multiple channel inbound and outbound Skype calling abilities
integrated into your Asterisk/trixbox/Elastix server.
You can install everything on the same box if you desire.
These instructions are for the 20090330 and earlier versions of stsTrunkBuilder, for the lastest version click here Install the applications Install Asterisk, trixbox or other SIP PBX. Install Java 1.5 JRE or higher. Download Skype client, install and create skype accounts for as many Skype channels as you need. SipToSis must be run on the same computer as the Skype client. Download the latest SipToSis SIP Skype Bridge and extract into a new folder 'siptosis'. Download the latest SipToSis Skype Trunk Builder (Requires SipToSis 20090131 or higher) and extract into a new folder 'stsTrunkConfig'. Make sure to keep the folder/path structure contained in the archives. For SipToSis versions prior to 20090414 copy the samples folder contents to the siptosis root. For linux only, install Xvfb if you don't already have it installed. (Example: yum install xorg-x11-server-Xvfb) - Some sort of window manager is required. Configure a functional test channel first. It will be easier to correct a problem with a single channel. Basic SipToSis setup is similiar to a SIP device - see the SipToSis ATA Setup Guide for initial setup. Below is a simple test Asterisk peer/extension setup. You need to set the desired context and set the registration info and IP address to match your STS config.
In extensions.conf or for trixbox add to extensions_custom.conf
exten => _7.,1,Dial(SIP/siptosisuser/${EXTEN:1})
;you would then dial 7 and the number you want to call
In sip.conf or for trixbox, add the peer via GUI
[siptosisuser]
username=siptosisuser
type=friend
context=default
secret=siptosisregpassword
host=dynamic
nat=no
dtmfmode=auto
canreinvite=no
;canrevite=yes is preferred if possible
qualify=yes
defaultip=siptosisip
incominglimit=1
outgoinglimit=1
call-limit=1
busylevel=1
Dialing Note: Normal Asterisk PBX's can strip the prefix in extensions.conf file like this:
exten => _7X.,1,Dial(SIP/siptosisuser/${EXTEN:1}) or exten => _901.,n,Dial(SIP/stsTrunk_01/${EXTEN:3}) If your PBX can't be configured this way, then you can work around the PBX limitation by adding entries to SkypeOutDialingRules.props like this: If your PBX dialing prefix is 7 you could add the following line: ^7([1-9][0-9]{10})$:+$1 The $1 will only capture what's in the parenthesis. In the example above, the 7 will be left out when making the SkypeOut call with 11 digit dialing. If 713051234567 was sent to the gateway, SipToSis would transform it to +13051234567. For other prefixes, change the 7 to the new prefix. Tip: make sure no other rules make the same match. Read up on regular expressions if you need to get more complicated. After you have tested your single channel test configuration completely you are ready to build the multi channel trunk. Scroll down to the Linux section or for Windows click here. |
Linux Skype Asterisk/trixbox Trunk with SipToSis.The generated scripts were tested on Centos 5.2 and use Xvfb (X Virtual Frame Buffer) to create X sessions. Even if you don't use the scripts, the creation of the multiple siptosis configuration files and Asterisk peer setup will save you time. You can use whatever X window manager you want or change Xvfb method to vnc etc.
Create the Asterisk Skype Trunk Channel Configurations
Add your custom startup commands to stsTrunkStartCmdBase_linux and stsTrunkStartBase_linux
Add your custom shutdown commands to stsTrunkStopCmdBase_linux and stsTrunkStopBase_linux
Generate the trunk scripts
Add the Asterisk Skype trunk channel information to Asterisk
Configure the Skype instances for operation
Starting the Skype Asterisk trunk.
Stopping the Asterisk Skype trunk.
That's it. I hope you got it working, if not the SipToSis Skype Gateway Troubleshooting may offer some additional help. If you get stuck, leave a comment on the SipToSis Skype Gateway Forum and I will try to help you. I do not have the time to test every OS, Asterisk flavor or PBX. If you find an error/problem please post the correction to the Forum. Confirmation of what is working is also helpful. |
Windows Skype Asterisk Trunking with SipToSis.It was tested on Windows XP Pro. Windows 2000 forward should work. Vista probably doesn't work.
Build the Asterisk to Skype Trunk Configuration
If using RunAs option, create a windows account for each channel.
Add the configuration information to Asterisk
Starting it all up
Shutting down the Skype to Asterisk trunk channels.
|