News:

On Tuesday September 6th the forum will be down for maintenance from 9:30 PM to 11:59 PM PDT

Main Menu

Calling Toll Free using another gateway with Obi 110

Started by proteus, October 20, 2018, 09:32:30 AM

Previous topic - Next topic

proteus

So the situation is this:

The Obi 110 is being used in a country that supports both 1800 and 8xx numbers to be called using LINE. So when someone simply dials 800abcdefg or 1800abcdefg, I would like the call to be completed on LINE. PSTN line is also set as Primary outbound line.

Now this Obi also has SP1 configured for USA calling. So any outgoing calls made using **1 are routed using the SIP provider as a 10 digit number. So a call made like **1212abcdefg will be routed using SIP as a US number.

The issue is that the SP1 provider also charges for toll free outgoing to USA. So I want to use a free tollfree outgoing gateway for this (like tf.arctele.com) by configuring it as a Voice Gateway. But I want to use it like if someone dials **1855abcdefg, the call should be routed from the tollfree gateway Vg1, but of someone dials **1202abcdefg, the call should be routed using SP1 as usual. That is use a seamless way of dialing US numbers the same way but the call is routed either through the tollfree gateway or the SP1 provider.

Is it possible to do this?

azrobert

#1
Physical Interfaces -> Phone Port
Add this to the beginning of the OutboundCallRoute:
{(Mvg1):vg1},

Voice Services -> Gateways and Trunk Groups -> Voice Gateway 1
Name: Tollfree
DigitMap: (<**:>18(00|88|77|66|55|44)xxxxxxx)
AccessNumber: sp1(tf.arctele.com)
AuthUserID: 4805551212

The person receiving the call will see AuthUserID as your CallerID.

Edit:

The ITSP A DigitMap will validate the dialed number. If it adds prefix "1" to 10 digits, use the following VG1 DigitMap:

DigitMap: (<**1:>18(00|88|77|66|55|44)xxxxxxx)

proteus

#2
It doesn't seem to work, when I call **18004444444 it still routes it through SP1 instead of VG1

My settings are

PHONE OutboundCallroute {([1-9]x?*(Mpli)):pp},{(<#:>|911):li},{**0:aa},{***:aa2},{(<**1:>(Msp1)):sp1},{(<**2:>(Msp2)):sp2},{(<**3:>(Mvg1)):vg1},{(<**8:>(Mli)):li},{(<**9:>(Mpp)):pp},{(Mpli):pli}
PHONE DigitMap ([1-9]x?*(Mpli)|[1-9]S9|[1-9][0-9]S9|911|**0|***|#|**1(Msp1)|**2(Msp2)|**3(Mvg1)|**8(Mli)|**9(Mpp)|(Mpli))
ITSP A DigitMap (1xxxxxxxxxx|<1>[2-9]xxxxxxxxx|011xx.|xx.|(Mipd)|[^*#]@@.)
VG1 DigitMap (<**:>18(00|88|77|66|55|44)xxxxxxx)

Also, the digitmap for VG1 you suggested didn't let me call Tollfree, I had to use  (18(00|88|77|66|55|44)xxxxxxx|<1>8(00|88|77|66|55|44)xxxxxxx)