Issues with my setup of FPL, Sipsorcery and Google Voice

This section is for general discussions surrounding digital phone service.
Shaf77
Active Poster
Posts: 89
Joined: 02/25/2010
SIP Device Name: SPA3102
Firmware Version: 5.1.10(GW)
ISP Name: Rogers
Computer OS: Windows 7

Issues with my setup of FPL, Sipsorcery and Google Voice

Post by Shaf77 »

I had used a guide that was posted here a while ago on how to setup FPL, GV and Sipsorcey. It has been working great for months now and all of a sudden on Friday night I started having issues with inbound calls and getting the error of "This call is not covered by your tariff plan".

Most users on FPL have had their issue resolved, but I still have my issue and am wondering is maybe some backend change on either FPL or Sipsorcery is causing my issues.

Anyone here using this setup or familiar with such a setup and Ruby dial plans? Can you help me troubleshoot?

I am able to dial out. I cannot receive inbound calls.

Here is the tutorial I had used:
OK, here he how to set up how to link freephoneline , google voice, sipsorcery, and ipkall (optional) to get the following>


Unlimited North america Long Distance (using google voice)
Simultainious forwarding (make multiple sip devices and cell or home phones ring at same time)
Inbound Caller ID name/city/state lookup (using whitpages.com)
Google 411 by dialing 411


How TO


1) set up your http://www.freephoneline.ca account and and pay for your config file
($50 one time fee, worth every penny, Get a Canadian DID number along with free calling to most major cities in canada, no service fees ever. Can also Port in your current number if tyou are local to a free calling area listed on the site)

2) [you can skip this is your FPL is in area code 403]
Set up your http://www.IPkall.com account

Account type: SIP
SIP Phone Number: sipsorceryusername
SIP Proxy: sipsorcery.com

3)
Se up your http://dev.whitepages.comaccount and create application
it will generate a API Key that you need for your dialplan script


4)
Create http://www.sipsorcery.com account
Add sip provider with this information

Code:
Provider name = freephoneline
username = FPLUSERNAME
Password = FPLPASSWORD
Server = voip.freephoneline.ca
Register=checked
Registercontact=SIPSORCERYUSERNAME@sipsorcery.com
Register Expiry=600 (its under advanced)

Create Dial plan Named Inbound, paste dialplan from below, make sure you edit the appropriate lines (marked with ###)

Code: Select all

#psycodialin v 1.0 by psycon psyconpgATgmail.com
    #Check for updates at the freephoneline.ca forums
    if sys.IsAvailable() then     # if online
    WP_key = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'              ###### EDIT THIS LINE WITH White Pages API key

    CNAM = {
      '77812345678' => "My Cell",                                                    
      '12221231234' => 'Work',
      '12223334444' => 'Your Woman'                     

    }
    ##################you shouldnt edit anything below this####################

      if sys.In               ..
        name = req.Header.from.FromURI.User.to_s    
        name = ('1' + name) if name =~ /^[2-9]\d\d[2-9]\d{6}$/
        name.sub!(/^011/,'')
        if !(cname = CNAM[name]) && name =~ /^1([2-9]\d\d[2-9]\d{6})/
          url = "http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20xml%20where%20url%3D'http%3A%2F%2Fapi.whitepages.com%2Freverse_phone%2F1.0%2F%3Fphone%3D#{$1}%3Bapi_key%3D#{WP_key}'%20and%20itemPath%3D'wp.listings.listing'&format=json"
          if js = sys.WebGet(url,4).to_s
            if !(js =~ /"businessname":"([^"]+)"/ && cname = $1)
            if !(js =~ /"displayname":"([^"]+)"/ && cname = $1)
              cname = %w(city state).collect {|x| js =~ /"#{x}":"([^"]+)"/; $1}.join(', ')
            end
            end
          end
        end
        name.sub!(/^1/,'')
        sys.Log("Caller's number: '#{name}'"); sys.Log("Caller's name = '#{cname}'") if cname

    #     sys.SetFromHeader(formatNum(cname || name), nil, nil)
       sys.SetFromHeader(cname || name, nil, nil)

        # Forward call to bindings. Change FromURI when forwarding to
        # @local, or else Bria won't find contact in its phonebook!
        sys.Dial("#{sys.Username}@local[fu=#{name}]&XXXXXXXXXX@freephoneline[fu=#{name}]")         #####HARDCODE XXXXXXXXXX as FORWARD NUMBER
    #    sys.Dial("#{sys.Username}@local[fu=#{name}]&XXXXXXXXXX@freephoneline[fu=#{name}]&XXXXXXXXXX@freephoneline[fu=#{name}]" 
    ########or you can perform a normal follwme by adding the seconds at the end#####         
    #    sys.Dial("#{sys.Username}@local[fu=#{name}],20")          
    #    sys.Dial("FOLLOWNUMBER2@freephoneline[fu=#{name}],10") #HARDCODE A NUMBER IF U WANT TO USE THIS
    #    sys.Dial("FOLLOWNUMBER3#freephoneline[fu=#{name}],10") #HARDCODE A NUMBER IF U WANT TO USE THIS
    ####### 

        sys.Respond(480, "#{sys.Username} Not available")

        sys.Respond(480, "#{sys.Username} Not online") # switch to voice mail

       end

    else     # if phone is not online.
    sys.Dial("HARDCODE@freephoneline")                                                           #####HARDCODE FORWARD NUMBER
    sys.Respond(480, "#{sys.Username} Not available") 
    end
Create Dial Plan Named Outbound, make sure you edit the appropriate lines (marked with ###)


Code: Select all

 #psycodialiout v 1.0 by psycon psyconpgATgmail.com
    #Check for updates at the freephoneline.ca forums
    GV_USER = 'username@gmail.com'             ###### your GV e-mail address (user@gmail.com)
    GV_PASS = 'password'                              ###### my GV password
    CB_NUMBER = 'ipkallnumber'                    ####### your number that google voice forwards to
    sys.Log "** Call from #{req.Header.From} to #{req.URI.User} **"
    case req.URI.User
    when /^1/ then sys.GoogleVoiceCall(GV_USER,GV_PASS,CB_NUMBER,"#{req.URI.User}") #GV Call Via Callback
    ####
    #when /^1/ then sys.GoogleVoiceCall(GV_USER,GV_PASS,CB_NUMBER,"#{req.URI.User},".*",1") #Direct GV Call NoCallbackl
    ####
    when /^411/ then sys.Dial("8004664411@freephoneline")
    else
    sys.Dial("#{req.URI.User}@freephoneline")
    end



Go to sip account page, and apply the dialplans


5)

Set up a http://www.google.com/voice account
IF your in Canada, or anywhere else not in the US see here: http://www.wifitalk.ca/iphone/howto-goo ... in-canada/
register/forward it to your IPKall Number (or direcly to your FPL if it is in area code 403)

and/or use hotspotshield but beware of ASK.COM toolbar options in installation



Done!

Now point your ATA / softphone to your sipsorcery account instead of directly to FPL and your ready to go

Dial 10 digitnumber to use FPL normally
Dial 1+10digitnumber to use google voice
411 will get you Google 411


Note: Disabling follow me settings on the FPL website will ring all phones in the sipsorcery inbound dialplan (simul ring), if forwarding to non sip phones, your FPL number will show as the caller id.

When unavailable will be the same for the first few rings, then normal followme will take place (with proper caller id)

Always forward will be as it normally was
8 devices can log in to the sipsorcery account via SIP and will all ring on incoming calls
Shaf77
Active Poster
Posts: 89
Joined: 02/25/2010
SIP Device Name: SPA3102
Firmware Version: 5.1.10(GW)
ISP Name: Rogers
Computer OS: Windows 7

Re: Issues with my setup of FPL, Sipsorcery and Google Voice

Post by Shaf77 »

anyone?
zombie999
Lightly Seasoned
Posts: 202
Joined: 10/17/2009

Re: Issues with my setup of FPL, Sipsorcery and Google Voice

Post by zombie999 »

If you load your settings into an ATA, can you recieve calls?
laurent
*Go-To Guy*
Posts: 532
Joined: 08/06/2010
SIP Device Name: Grandstream HT-502
Firmware Version: 1.0.1.63
ISP Name: DSL TekSavvy
Computer OS: OSX Snow Leopard
Router: Linksys WRT54GL w/tomato

Re: Issues with my setup of FPL, Sipsorcery and Google Voice

Post by laurent »

Can the Sipsorcery system provide you with logs? Perhaps run test calls?
Shaf77
Active Poster
Posts: 89
Joined: 02/25/2010
SIP Device Name: SPA3102
Firmware Version: 5.1.10(GW)
ISP Name: Rogers
Computer OS: Windows 7

Re: Issues with my setup of FPL, Sipsorcery and Google Voice

Post by Shaf77 »

laurent wrote:Can the Sipsorcery system provide you with logs? Perhaps run test calls?
Here is the log for issues with incoming calls:
Monitor 00:31:42:588: basetype=console, ipaddress=*, user=userid, event=*, request=*, serveripaddress=*, server=*, regex=.*.
NATKeepAlive 00:31:48:025 sip1(1848): Requesting NAT keep-alive from proxy socket udp:xx.xx.xxx.213:5060 to udp:xx.xxx.xxx.214:5060.
DialPlan 00:31:49:635 sip1(7420): Using dialplan Inbound for In call to sip:userid@sipsorcery.com;rinstance=561245.
NewCall 00:31:49:635 sip1(7420): Executing script dial plan for call to userid.
DialPlan 00:31:49:822 sip1(7420): WebGet attempting to read from http://query.yahooapis.com/v1/public/yq ... ormat=json.
DialPlan 00:31:50:322 sip1(7420): Caller's number: '416xxxxxxxx'
DialPlan 00:31:50:322 sip1(7420): Caller's name = 'Toronto, On, ON'
DialPlan 00:31:50:322 sip1(7420): Commencing Dial with: userid@local[fu=416xxxxxxx]&XXXXXXXXXX@freephoneline[fu=416xxxxxxx].
DialPlan 00:31:50:338 sip1(7420): Call leg is for local domain looking up bindings for userid@sipsorcery.com for call leg userid@local.
DialPlan 00:31:50:353 sip1(7420): 1 found for userid@sipsorcery.com.
DialPlan 00:31:50:369 sip1(7420): Attempting to locate a provider for call leg: sip:XXXXXXXXXX@freephoneline.
DialPlan 00:31:50:369 sip1(7420): ForkCall commencing call leg to sip:userid@xx.xxx.xxx.214:5060.
DialPlan 00:31:50:369 sip1(7420): ForkCall commencing call leg to sip:XXXXXXXXXX@voip.freephoneline.ca.
DialPlan 00:31:50:369 sip1(7420): SIPClientUserAgent Call using alternate outbound proxy of udp:xx.xx.xxx.213:5060.
DialPlan 00:31:50:369 sip1(7420): Switching to sip:userid@xx.xxx.xxx.214:5060 via udp:xx.xx.xxx.213:5060.
DialPlan 00:31:50:369 sip1(7420): SDP on UAC call had public IP not mangled, RTP socket 208.72.120.82:36568.
DialPlan 00:31:50:369 sip1(7420): SIPClientUserAgent Call using alternate outbound proxy of udp:xx.xx.xxx.213:5060.
DialPlan 00:31:50:369 sip1(7420): Switching to sip:XXXXXXXXXX@voip.freephoneline.ca:5060 via udp:xx.xx.xxx.213:5060.
DialPlan 00:31:50:369 sip1(7420): SDP on UAC call had public IP not mangled, RTP socket 208.72.120.82:36568.
DialPlan 00:31:50:572 sip1(7420): Information response 100 Trying for sip:userid@xx.xxx.xxx.214:5060.
DialPlan 00:31:50:603 sip1(7420): Information response 180 Ringing for sip:userid@xx.xxx.xxx.214:5060.
DialPlan 00:31:50:603 sip1(7420): UAS call progressing with Ringing.
DialPlan 00:31:51:588 sip1(7420): Information response 100 Trying for sip:XXXXXXXXXX@voip.freephoneline.ca.
DialPlan 00:31:51:822 sip1(7420): Response 401 Unauthorized for sip:XXXXXXXXXX@voip.freephoneline.ca.
DialPlan 00:31:51:978 sip1(7420): Information response 100 Trying for sip:XXXXXXXXXX@voip.freephoneline.ca.
DialPlan 00:31:53:510 sip1(7420): Information response 183 Session Progress for sip:XXXXXXXXXX@voip.freephoneline.ca.
DialPlan 00:31:53:510 sip1(7420): UAS call progressing with SessionProgress.
DialPlan 00:31:56:603 sip1(7420): Response 603 Declined for sip:XXXXXXXXXX@voip.freephoneline.ca.
NATKeepAlive 00:31:58:275 sip1(1848): Requesting NAT keep-alive from proxy socket udp:xx.xx.xxx.213:5060 to udp:xx.xxx.xxx.214:5060.
DialPlan 00:32:07:744 sip1(7420): Client call cancelled halting dial plan.
DialPlan 00:32:07:744 sip1(7420): Dialplan call was terminated by client side due to ClientCancelled.
DialPlan 00:32:07:744 sip1(7420): Cancelling all call legs for ForkCall app.
DialPlan 00:32:07:744 sip1(7420): Cancelling forwarded call leg, sending CANCEL to sip:userid@xx.xxx.xxx.214:5060.
DialPlan 00:32:07:744 sip1(7420): Dial command was halted by cancellation of client call after 17.37s.
DialPlan 00:32:07:744 sip1(7420): Dialplan cleanup for userid.
DialPlan 00:32:07:916 sip1(7420): Response 487 Request Terminated for sip:userid@xx.xxx.xxx.214:5060.
DialPlan 00:32:07:962 sip1(7420): Dial plan execution completed with normal clearing.
Looking at the bolded errors, does it appear to be that FPL has blocked something?
laurent
*Go-To Guy*
Posts: 532
Joined: 08/06/2010
SIP Device Name: Grandstream HT-502
Firmware Version: 1.0.1.63
ISP Name: DSL TekSavvy
Computer OS: OSX Snow Leopard
Router: Linksys WRT54GL w/tomato

Re: Issues with my setup of FPL, Sipsorcery and Google Voice

Post by laurent »

I'm wondering why this is happening:

Code: Select all

DialPlan 00:31:51:822 sip1(7420): Response 401 Unauthorized for sip:XXXXXXXXXX@voip.freephoneline.ca.
DialPlan 00:31:56:603 sip1(7420): Response 603 Declined for sip:XXXXXXXXXX@voip.freephoneline.ca.
Is sipsorcery trying to send an SIP call to your FPL account? If so, that can't work because FPL does not accept SIP calls inbound, only standard telephone type calls. So if you have an inbound call in sipsorcery that you want your FPL phone to ring, it has to contact it via standard phone.

Perhaps I'm not understanding what you're doing exactly, could you explain briefly how all of this gets connected together?
Shaf77
Active Poster
Posts: 89
Joined: 02/25/2010
SIP Device Name: SPA3102
Firmware Version: 5.1.10(GW)
ISP Name: Rogers
Computer OS: Windows 7

Re: Issues with my setup of FPL, Sipsorcery and Google Voice

Post by Shaf77 »

laurent wrote:I'm wondering why this is happening:

Code: Select all

DialPlan 00:31:51:822 sip1(7420): Response 401 Unauthorized for sip:XXXXXXXXXX@voip.freephoneline.ca.
DialPlan 00:31:56:603 sip1(7420): Response 603 Declined for sip:XXXXXXXXXX@voip.freephoneline.ca.
Is sipsorcery trying to send an SIP call to your FPL account? If so, that can't work because FPL does not accept SIP calls inbound, only standard telephone type calls. So if you have an inbound call in sipsorcery that you want your FPL phone to ring, it has to contact it via standard phone.

Perhaps I'm not understanding what you're doing exactly, could you explain briefly how all of this gets connected together?
Here is what I am doing:

The tutorial is what I use (as per the first post).
This has all been working for months, and I have made no changes. I stopped working Friday night, at the same time when everyone else was having issues with inbound calls.

[*]When someone calls my FPL #, Sipsorcery makes my phone ring
[*]When someone calls my GV number (a US#), Sipsorcery forwards the call to IPKall and then to my local 416#
[*]When I am calling out, If I dial 416xxxxxxx, it goes through FPL
[*]When I call out using 1xxxxxxxxx (anywhere in NA), the calls go through GV for free NA calling.

This way I get free calling to anywhere in NA, and also when anyone in the US wants to call me they can call me at a US # instead of my 416 #

Again, this has all been working for months..... until Friday.... :(
laurent
*Go-To Guy*
Posts: 532
Joined: 08/06/2010
SIP Device Name: Grandstream HT-502
Firmware Version: 1.0.1.63
ISP Name: DSL TekSavvy
Computer OS: OSX Snow Leopard
Router: Linksys WRT54GL w/tomato

Re: Issues with my setup of FPL, Sipsorcery and Google Voice

Post by laurent »

Okay I understand the whole system now and I must admit, it's clever and seems quite useful! Although one must receive at least one call per month on the IPkall number otherwise it gets cancelled.

In any case, the "not covered by your tariff plan" really sounds like the exact issue other people have been having recently. Since it's now marked as fixed, I suggest you contact FPL's support stating exactly that error message. You may have to go back to "traditional" mode with only your FPL account in your ATA just to prove it works in the typical setup while they fix your line. Once that works you can go back to spisorcery handling your PFL account.
Shaf77
Active Poster
Posts: 89
Joined: 02/25/2010
SIP Device Name: SPA3102
Firmware Version: 5.1.10(GW)
ISP Name: Rogers
Computer OS: Windows 7

Re: Issues with my setup of FPL, Sipsorcery and Google Voice

Post by Shaf77 »

laurent wrote:Okay I understand the whole system now and I must admit, it's clever and seems quite useful! Although one must receive at least one call per month on the IPkall number otherwise it gets cancelled.

In any case, the "not covered by your tariff plan" really sounds like the exact issue other people have been having recently. Since it's now marked as fixed, I suggest you contact FPL's support stating exactly that error message. You may have to go back to "traditional" mode with only your FPL account in your ATA just to prove it works in the typical setup while they fix your line. Once that works you can go back to spisorcery handling your PFL account.
Thanks. I have been working with Steve to see if they can fix this.

In the meantime, if I setup the followme to "Always Fwd", everything works fine for me...

I had also changed my ATA settings to just FPL (no Sipsorcery setup) to test and it works fine.
User avatar
FONGO_steve
Site Moderator
Posts: 2131
Joined: 07/16/2009
SIP Device Name: Grandstream 286 & 701
ISP Name: Worldline.ca
Computer OS: Windows 7 Ultimate / Mac OS X
Router: TR1043ND w/ DD-WRT Mega
Smartphone Model: Galaxy S3
Android Version: 4.0.4
Location: Cambridge

Re: Issues with my setup of FPL, Sipsorcery and Google Voice

Post by FONGO_steve »

Sorry I didn't get a chance to chirp in earlier. I'm no pro on reading/understanding the SIP Sorcery dial plans, so I haven't had much time to look into that one in depth.

If we put Shaf77's number on an ATA, either one that he owns, or mine here in the office, it runs just fine. Also, it does go to voicemail after the error. It seems to be something that Sip Sorcery is trying to dial back through us that's returning the tariff error. Unfortunately I'd need more time to dig into what that complex dial plan all does to see what it might be.

I tested my one account at home on Sip Sorcery using just a straight dial plan with no modifications and had no problems calling in and out. So it seems to be something initiated in that dial plan!
Steve
Fongo
Development Support Specialist.
Shaf77
Active Poster
Posts: 89
Joined: 02/25/2010
SIP Device Name: SPA3102
Firmware Version: 5.1.10(GW)
ISP Name: Rogers
Computer OS: Windows 7

Re: Issues with my setup of FPL, Sipsorcery and Google Voice

Post by Shaf77 »

FPL-steve wrote:Sorry I didn't get a chance to chirp in earlier. I'm no pro on reading/understanding the SIP Sorcery dial plans, so I haven't had much time to look into that one in depth.

If we put Shaf77's number on an ATA, either one that he owns, or mine here in the office, it runs just fine. Also, it does go to voicemail after the error. It seems to be something that Sip Sorcery is trying to dial back through us that's returning the tariff error. Unfortunately I'd need more time to dig into what that complex dial plan all does to see what it might be.

I tested my one account at home on Sip Sorcery using just a straight dial plan with no modifications and had no problems calling in and out. So it seems to be something initiated in that dial plan!
Thanks. What's weird is that that the dial plan had been working for months until the issue with FPL that started on Friday.

Can you post the straight dial plan you are referring to?

Thanks again!!!
tomtong
Just Passing Thru
Posts: 13
Joined: 10/01/2009
SIP Device Name: PAP2T-NA
Firmware Version: 3.1.15(LS)
ISP Name: Bell Internet
Computer OS: Windows 7
Router: WRT54GL
Smartphone Model: iPhone4
iOS Version: 5.1.1

Re: Issues with my setup of FPL, Sipsorcery and Google Voice

Post by tomtong »

Does this http://forum.freephoneline.ca/viewtopic ... kall#p2199 looks familiar?

I use IPKall to call forward US calls to my FPL number got the same "401 Unauthorized" error today.