Sipsorcery + IPKall/SipGate issue?

Getting started with the SIP Sorcery
Post Reply
chhatc
Posts: 7
Joined: Mon Jun 27, 2011 9:04 pm

Sipsorcery + IPKall/SipGate issue?

Post by chhatc » Mon Jun 27, 2011 10:01 pm

Hi All,

I have just been made aware of sipsorcery and am very excited to get my own GV solution up and running.
For the time being, I have simply set up a Sipsorcery account and an IPKall account (i also have a sipgate number from a while back).

Currently to test my setup, I'm using an Android phone running 2.3.4 (Gingerbread) and entered in my sipsorcery credentials.
When I call the IPKall number, i get a call on my device but I cannot hear voice. No voice is heard on either the caller or the receiver end.
I then added SIPGate as a provider and tested the setup, still no voice.

Then I added my sipgate credentials directly to my Android Phone's SIP settings and made a call, and heard voice on both sides (caller/callee).
I haven't changed any dial plans (default is being used).

Am I doing something wrong?

Please advise.

Aaron
Site Admin
Posts: 4652
Joined: Thu Jul 12, 2007 12:13 am

Re: Sipsorcery + IPKall/SipGate issue?

Post by Aaron » Mon Jun 27, 2011 10:57 pm

The difference between sipsorcery and a regular SIP service is that sipsorcery does not proxy the call media. That means that there are likely to be some additional cases where one way or no audio occurs as a result of NAT. One thing you could try is to see if the SIP phone you are using has a setting to enter a STUN server and enter one. That will sometimes help with audio issues by allowing the softphone to use the correct IP address in the call request.

chhatc
Posts: 7
Joined: Mon Jun 27, 2011 9:04 pm

Re: Sipsorcery + IPKall/SipGate issue?

Post by chhatc » Thu Jun 30, 2011 5:02 am

Aaron,

You are the man. I have dropped IPKall as i cannot register onto GV because of number recycling.
I have set up my GV->SipGate->Sipsorcery routing. Luckily, I had signed up with Sipgate when they had numbers.

Now I'm having an issue with the caller ID on incoming calls display my Sipgate number.
I am using the simply dial plan below. Is there anything I can change to show the caller's caller-id. I suspect this is Sipgate replacing the incoming caller's caller-id name with my sipgate phone number.

Here is my Dial Plan, hope it helps (I've removed my credentials ofcourse)

Code: Select all

AREA_CODE = '917'              # my area code
GV_USER   = 'xxxx@gmail.com'   # my GV e-mail address (user@gmail.com)
GV_PASS   = 'xxxx'             # my GV password
CB_NUMBER = 'xxxx              # my 11-digit SIP number (only one)

SPEED_DIAL = {                 # my speed dial numbers
 '1'   => 'xxxx',               # xxxx
 '2'   => 'xxxx',               # xxxx
 '3'   => 'xxxx',               # xxxx
 '4'   => 'xxxx',               # xxxx
 '5'   => 'xxxx',               # xxxx
 '6'   => 'xxxx',               # xxxx
 '7'   => 'xxxx',               # xxxx
 '8'   => 'xxxx',               # xxxx
 '9'   => 'xxxx',               # xxxx
 '411' => '18005558355',               # Google 411
 '266' => '4153767253@podlinez.com',   # CNN Headlines
}

begin
   sys.Log "** Call from #{req.Header.From} to #{req.URI.User} **"

 if sys.Out    # if outbound call
   num = req.URI.User.to_s        # Get a string copy of the number to dial

   num = SPEED_DIAL[num] || num   # Substitute with speed dial entry, if any

   case num
     when /@/ then sys.Dial num   # URI dialing
     when /^[2-9]\d{6}$/          # Local call, 7-digit number
       num = '1'+ AREA_CODE + num # prefix it with country and area code
     when /^[01]?([2-9]\d{9})/    # US number with or without country code
       num = '1' + $1             # add country code and truncate number to 10-digit
     when /^(011|00|\+)(\d{9,})/  # international number
       num = '+' + $2             # GoogleVoiceCall works with '+' prefix only


     else sys.Respond 603, 'Wrong number, check & dial again'
   end

   sys.Log "Calling #{num} via Google Voice"
   sys.GoogleVoiceCall GV_USER, GV_PASS, CB_NUMBER, num, '.*', CB_NUMBER =~ /^1747/ ? 7 : 1, 30

 else          # sys.Out
   sys.Dial "#{sys.Username}@local"
 end

rescue
 sys.Log("** Error: " + $!) unless $!.to_s =~ /Thread was being aborted./
end
Thanks.

Aaron
Site Admin
Posts: 4652
Joined: Thu Jul 12, 2007 12:13 am

Re: Sipsorcery + IPKall/SipGate issue?

Post by Aaron » Thu Jun 30, 2011 5:53 am

I'm actually not sure how caller ID works on incoming Google Voice calls works. Anyone else?

I would have thought sipgate would just pass through the caller ID they received from the Google Voice PSTN call which would be the original caller.

chhatc
Posts: 7
Joined: Mon Jun 27, 2011 9:04 pm

Re: Sipsorcery + IPKall/SipGate issue?

Post by chhatc » Thu Jun 30, 2011 3:34 pm

Aaron,

Actually I ended up solving this problem on my own.
Within Sipgate there is a setting which sets the caller name as my sipgate number incase the caller name is missing (not the caller id number).
This was enabled in my account, probably by me when I was fudging around with it a few months ago.
As a result, it was showing my sipgate number in X-Lite and underneath, it was showing the caller's caller-id (annoying).
I disabled this setting and all is well.

Appreciate your response Aaron.

C

Post Reply