making Skype calls and receiving Skype calls with sipsorcery

Catalog of dial plans
Post Reply
mnipp
Posts: 192
Joined: Sat Oct 03, 2009 9:48 am
Location: NSW Australia

making Skype calls and receiving Skype calls with sipsorcery

Post by mnipp » Thu Sep 15, 2011 10:23 am

How to receive calls from skype users into sipsorcery
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
start of outplan

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
billion 7404VGP
dialplan (<9*:*>[0-9*][0-9*].T<:@sipbroker>|[0-9*].T)

qubo
Posts: 127
Joined: Tue Apr 12, 2011 6:11 am

Re: making Skype calls and receiving Skype calls with sipsor

Post by qubo » Thu Sep 15, 2011 4:44 pm

the next2max has cost ? per your config? and the invoice skype has cost too ? or it can be free ?

thanks for sharing

mnipp
Posts: 192
Joined: Sat Oct 03, 2009 9:48 am
Location: NSW Australia

Re: making Skype calls and receiving Skype calls with sipsor

Post by mnipp » Thu Sep 22, 2011 7:42 am

I have been trying skype.sipnet.ru for calling skype users and it seems to work well. It may be more reliable than net2max which I was hoping to be more local with less delay on voice.

you do not need an account to use it. Just dial (SkypeName@skype.sipnet.ru).

eg echo123@skype.sipnet.ru - Russian echo test on skype.

I've tried this in the outplan.

start of outplan

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("#{skypename}@skype.sipnet.ru")
     sys.Respond(480, "Failed skype:#{skypename} call")

# speed-dial preset skype names skypename1, skypename2 with 901, 902 etc..
  when '901'
     sys.Dial "skypename1@skype.sipnet.ru"
     sys.Respond(480, "Failed skype call")
  when '902'
     sys.Dial "skypename2@skype.sipnet.ru"
     sys.Respond(480, "Failed skype call")
  when '903'
     sys.Dial "skypename3@skype.sipnet.ru"
     sys.Respond(480, "Failed skype call")
end
billion 7404VGP
dialplan (<9*:*>[0-9*][0-9*].T<:@sipbroker>|[0-9*].T)

qubo
Posts: 127
Joined: Tue Apr 12, 2011 6:11 am

Re: making Skype calls and receiving Skype calls with sipsor

Post by qubo » Thu Sep 22, 2011 7:26 pm

wonderful SHAre. thanks it works out of the box

thankkksssss

RedPenguin
Posts: 58
Joined: Wed Jul 28, 2010 4:57 am

Re: making Skype calls and receiving Skype calls with sipsor

Post by RedPenguin » Sat Dec 10, 2011 1:59 am

Thank you so much for the skype.sipnet.ru mention.

I always wanted to use Skype for mobile VoIP because it by default can use TCP 80/443 so it works on virtually every public WiFI I have ever found.

My SIP softphone on the other hand wishes to use UDP 5060 so if I am on public WiFi many times I have to connect to my VPN, which is a good idea anyway, so that my call info including usernames/passwords can't be easily sniffed off the WiFi. Also other traffic besides VoIP that can be sniffed.

So what I decided to do was just take my Skype Username @ skype.sipnet.ru and create an IPKall and insert it into my Google Voice and now I can receive calls much easier vs connecting to my VPN adding lag.

Also, I'm going to create speed dials for people I wish to talk to on Skype without setting up incoming calls because I don't use Skype near enough to warrant actually paying for this solution.

I just wanted to share these ideas in case others wish to do similar.

Post Reply