Asterisk/Skype: Difference between revisions
No edit summary |
No edit summary |
||
Line 15: | Line 15: | ||
When connecting to the VNC server where headless Skype runs, you'll see the dialogue asking you if you want to allow "Skype4Java" to connect to Skype. Go ahead, click whatever makes sense to you... (that would be "Remember this selection", unless you like to do this everytime you start SipToSis, and of course "Yes") | When connecting to the VNC server where headless Skype runs, you'll see the dialogue asking you if you want to allow "Skype4Java" to connect to Skype. Go ahead, click whatever makes sense to you... (that would be "Remember this selection", unless you like to do this everytime you start SipToSis, and of course "Yes") | ||
If you're too slow, you may be unable to click any of the buttons - well, you can click them, but nothing happens. If that's the case, just kill SipToSis, reconnect to the screen (''screen -r''), kill Skype with ''CTRL+C'' and start everything up again, including the VNC server, and be quicker this time. | If you're too slow, you may be unable to click any of the buttons - well, you can click them, but nothing happens. If that's the case, just kill SipToSis, reconnect to the screen (''screen -S Skype -r''), kill Skype with ''CTRL+C'' and start everything up again, including the VNC server, and be quicker this time. | ||
Now we have to allow incoming Skype calls and forward them to a SIP extension. Open the file '''/opt/SipToSis/SkypeToSipAuth.props''' with Microsoft Frontpage, or any other text editor you prefer, scroll to the bottom and make it look like this: | |||
<pre> | |||
#Default: all incoming skype callers get the invalid destination message | |||
#*,play:clips/invalidDest.wav | |||
#Default: all incoming skype caller are forwarded to SIP extension 100 on the local Asterisk | |||
*,sip:100@127.0.0.1:5060,your_skype_username_or_something_else | |||
</pre> | |||
After restarting SipToSis, force somebody how's online in Skype to give you a call. You should see their Skype username as the CallerID, if you got a fancy phone from this century, and talk to them just fine. |
Revision as of 22:32, 21 March 2011
Start with getting headless Skype to work, then export the display variable for SipToSis:
export DISPLAY=:0
Download SipToSis (SIP to Skype integration software), unzip and start it:
mkdir /opt/SipToSis unzip -d /opt/SipToSis /tmp/SipToSis_20110310.zip cd /opt/SipToSis chmod +x SipToSis_linux screen -S SipToSis ./SipToSis_linux
When connecting to the VNC server where headless Skype runs, you'll see the dialogue asking you if you want to allow "Skype4Java" to connect to Skype. Go ahead, click whatever makes sense to you... (that would be "Remember this selection", unless you like to do this everytime you start SipToSis, and of course "Yes")
If you're too slow, you may be unable to click any of the buttons - well, you can click them, but nothing happens. If that's the case, just kill SipToSis, reconnect to the screen (screen -S Skype -r), kill Skype with CTRL+C and start everything up again, including the VNC server, and be quicker this time.
Now we have to allow incoming Skype calls and forward them to a SIP extension. Open the file /opt/SipToSis/SkypeToSipAuth.props with Microsoft Frontpage, or any other text editor you prefer, scroll to the bottom and make it look like this:
#Default: all incoming skype callers get the invalid destination message #*,play:clips/invalidDest.wav #Default: all incoming skype caller are forwarded to SIP extension 100 on the local Asterisk *,sip:100@127.0.0.1:5060,your_skype_username_or_something_else
After restarting SipToSis, force somebody how's online in Skype to give you a call. You should see their Skype username as the CallerID, if you got a fancy phone from this century, and talk to them just fine.