International call Dial Plan for PAP2T

Have a question or problem with your Fongo application? This forum is the place to get help from both staff and fellow community members.
Fongo recommends Fongo Home Phone for a fully supported Home Phone system for only $4.95/mo
tacalin
Just Passing Thru
Posts: 14
Joined: 06/19/2015

International call Dial Plan for PAP2T

Post by tacalin »

Initially posted in another board, but I think it should be posted here :)
I would like to configure my PAP2T so it could handle the international calls via my international & interurban phone provider which is Call Select.
I understand that the international calls can not be automatically diverted to Call Select and I'm cool with this.
It leaves me no choice then but to use my local access number.
So, my international dialing will be something like:
514-908-9016,,011xxxxxxxxxxx
where , is a pause. I was wondering if I could change my dial plan in the ATA so it could add the part before 011 automatically.
I think is doable, but I'm really new at this and don't really understand how it can be done.
tacalin
Just Passing Thru
Posts: 14
Joined: 06/19/2015

Re: International call Dial Plan for PAP2T

Post by tacalin »

I might have found the combination:

(911S0|<311:5148720311>S0|<411:18005551212>S0|<511:18883550511>S0|<811:18003613977>S0|<011:5149089016P2 011>xxxxxxxxxxx.|*xxS0|[2-9]xxxxxxxxxS0|1xxxxxxxxxxS0|1900x.!|197)

In fact the sequence to add is:

<011:5149089016P2 011>xxxxxxxxxxx.

which in theory should replace 011 with 5149089016 followed by 2 seconds pause and 011. The rest of the number should follow.

I'll test it after my porting completes.
sinister.groupon
Quiet One
Posts: 29
Joined: 10/23/2014
SIP Device Name: SPA122
Firmware Version: 1.3.5
ISP Name: TekSavvy DSL
Computer OS: Mac OS/Raspbian
Router: SmartRG SR505N
Smartphone Model: BlackBerry Passport

Re: International call Dial Plan for PAP2T

Post by sinister.groupon »

Not sure if that's fully correct but it looks like you are on the right track.

For anyone searching these forums in the future, from 'what is a Voip dial plan':

< : >   Subsequence Substitution

A sub-sequence of keys (possibly empty) can be automatically replaced with a different sub-sequence when your dial string sequence is preceded with angle bracket notation.

< "optional input" : "substitution string" > "element to be matched"
e.g.:   <  :403>xxxxxxx

Thus, the above example will cause a prepended substitution of digits (in this case, 403) before the number you are matching, which is: xxxxxxx.  Thus, any 7-digit number dialed will be prepended with 403, resulting in a transmitted number of 403xxxxxxx .

For example, lets say my VoIP provider requires all North America numbers to be dialed as 11-digit numbers.  Yet, I want to be able to dial numbers in my local area code as 7-digit numbers.  For this example, lets assume my area code is 250 (and North America country code is 1).  Now, the dial plan sequence will be written as:   ( < : 1250>xxxxxxx ) .

However, to correctly format this sequence for legitimate North American dialing, it needs to be modified as follows:
( < : 1250 >[2-9]xxxxxx )
Now, when I dial any 7-digit number, it will be prepended with 1250.  Thus, if I were to dial 555-1212, the resulting dial string to be sent would be 1-250-555-1212.
tacalin
Just Passing Thru
Posts: 14
Joined: 06/19/2015

Re: International call Dial Plan for PAP2T

Post by tacalin »

Well, it seems I can replace 011 by 5149089016 and I can also add the pause (but it has to be put after the > )
I cannot add 011 and/or P2 after the number 514...
I'll keep diging to see if I could find a solution. 'Til then, I'll put my international numbers into my agenda as 514-908-9016PP011-xx-xxx-xxxxxx