and Call skype users from sipsorcery.
To receive calls:
setup a number only username account around 5-10 digits in sipsorcery to receive the calls.
goto skype-connect http://www.skype.com/intl/en/business/skype-connect and sign-up for a Skype Manager account using your skype user account.
In Skype Manager under Features setup a Skype Connect profile(comes with a monthly fee), I called mine "homephone", this will setup the sip account details for sipsorcery sip-provider settings.
When done the Skype Connect profile name "homephone" has "View profile" next to it, click-it to setup a "business account" skypename under "incoming calls".
This new skypename is the skype contact to your sipsorcery phone. Enter sipsorcery 5-10 digit username in "Extension number (optional)" or it will-not work.
This "business account" skypename does not have a public profile when attached to a sip profile. I use skype:skypename in my public-skypename profile so skype users are only a click away from ringing my homephone.
To send calls:
I setup a net2max account https://www.net2max.com/login/login.php. This will help get you started http://scopezoom.com/guide9.htm (You may need to leave this new account alone for a day to be fully functional.)
Once you have a working sip-profile called net2max in sipsorcery, you can call skype users with 899099skypename@net2max.
To tie them together in sipsorcery I have this in the top of my inplan and outplan.
start of inplan
Code: Select all
case req.Header.from.FromURI.Host.to_s # Check for incoming skype calls
when /skype.com/
sys.DBWrite("skypeCaller",req.Header.From.FromName.to_s) # copy Callers skypeName into Database
end
Code: Select all
case req.URI.User.to_s
when '99999' # dial 99999 to return call to skype user.
skypename = sys.DBRead("skypeCaller")
sys.Dial("899099#{skypename}@net2max")
sys.Respond(480, "Failed skype:#{skypename} call")
# speed-dial preset skype names skypename1, skypename2 with 901, 902 etc..
when '901'
sys.Dial "899099skypename1@net2max"
sys.Respond(480, "Failed skype call")
when '902'
sys.Dial "899099skypename2@net2max"
sys.Respond(480, "Failed skype call")
when '903'
sys.Dial "899099skypename3@net2max"
sys.Respond(480, "Failed skype call")
end