DigitMap rules in ITSP B not working in ITSP A

<< < (4/6) > >>

illicit:
Quote from: ProfTech on September 04, 2017, 05:34:38 pm

To Illicit: [...]


Thank you! I actually took the toolfree model and adapted it as you posted that XD

Thank you you two, you've both been lots of help and I appreciate all the advice!

azrobert:
This is how I configured my OBi200. I removed all code that wasn't required including the **x prefix code. If you need the **x prefix, I'll show you how (it has to be different than the default). I copied ProfTech's Canadian rules. I assumed you are using VG1 for tollfree numbers. I didn't spend a lot of time with this configuration. Hopefully, I didn't make too many errors.

Phone DigitMap:
([1-9]S9|[1-9][0-9]S9|911|933|***|!1900xxxxxxx|!900xxxxxxx|1xxxxxxxxxx|<1>[2-9]xxxxxxxxx|011xx.S3|211|311|411|511|611|811)

Phone outbound route:
{***:aa2},{(Mpli):pli}

Phone Primary Line: Trunk Group 1

ITSP A DigitMap:
(911|933|1(204|226|236|249|250|289|306|343|365|403|416|418|431|437|438|450|506|514|519|581|587|579|604|613|639|647|705|709|778|780|782|807|819|825|873|902|905)xxxxxxx|<211:14163974636>|<311:14163922489>|<511:14162354686>|<611:14164772010>|<811:18667970000>)

ITSP B DigitMap:
(1xxxxxxxxxx|011xx|<211:14163974636>|<311:14163922489>|<511:14162354686>|<611:14164772010>|<811:18667970000>)

VG1 DigitMap:
(18(00|88|77|66|55|44|33)xxxxxxx)

Voice Services -> Gateways and TGs -> Trunk Group 1
Trunk List: vg1,sp1,sp2
DigitMap: (Mph)

Voice Services -> SP1 Service: X_NoRegNoCall: Checked

Service Providers ITSP A -> SIP -> TimerB: 10000

The Phone DigitMap validates numbers for all trunks.

I set TG1 DigitMap to the phone DigitMap.
Any number matching (Mpli) which points to (Mph) will be routed to TG1
TG1 will process the trunks in the trunk list left to right.
If the call fails in a trunk, processing will move to the next trunk.
The call can fail in 2 ways, the trunk is down or the dialed number doesn't match the corresponding trunk DigitMap.

If you dial 12041234567:
It doesn't match (Mvg1) so VG1 is skipped
It does match (Msp1), so the call is routed to SP1
If the call fails then SP2 is tried
It matches (Msp2), so the call is routed to SP2

There will be a 32 second wait before the call failovers (see below). When X_NoRegNoCall is enabled the call will immediately failover when the trunk is not registered to the provider.

It is my understanding that the OBi might think the trunk is still registered when the trunk is down. There is a registration period and the OBi might not know the trunk is down until the registration period expires and the OBi tries to re-register. In this case the OBi will wait 32 seconds (defined in TimerB) before it failovers. I changed TimerB to 10 seconds. You can probably make it less, but if you make it too low you will get a false failover.

ProfTech:
There are several ways to meet the requirements. I haven't seen the S timer component used with international numbers to avoid the dial delay. This is what I came up with:
Assumptions:
1. You are using an Obihai 100
2. You want canadian numbers to go out freephoneline.ca unless it is down then to use Google
3. You want toll free numbers to go out a free provider (wasn't sure if freephoneline.ca was an option)
4. You want international numbers to use google

THEN:
sp1 [freephoneline.ca] map = (1xxxxxxxxxx) [I'm Not sure of canadian requirement]
sp2 [google] map = (1xxxxxxxxxx|011xx.)  [Allow for international]
vg1 [free provider] map = (18(00|33|44|55|66|77|88)xxxxxxx)

User defined maps:
tfree = (18(00|33|44|55|66|77|88)xxxxxxx)
feat=(<211:14163974636>|<311:14163922489>|<511:14162354686>|<611:14164772010>|<811:18667970000>|933)

phone port digit map (911|!1900xxxxxxx|[1-9]S9|[1-9][0-9]S9|(Mfeat)|(Msp1)|011xx.S3)

Voice Services -> Gateways and TGs -> Trunk Group 1
Trunk List: sp1,sp2
DigitMap: (Msp2)

Primary Line: tg1 [trunk group 1]
Outbound call route: {(911|933):sp1},{(Mtfree):vg1},{(Mpli):pli}

The Phone DigitMap validates numbers and performs transforms.
A canadian mask is not needed because either freephoneline.ca or google can handle them.
The same is true for the "x11" numbers because they are transformed to standard numbers.
Toll free numbers are "picked off" by the outbound route first and sent to vg1.
Any other 11 digit number starting with 1 is sent to tg1. tg1 tries sp1 and if not available sends it to sp2
International numbers beginning with 011 are sent to tg1. This is a special case where the sp maps DO count. Since sp1 can't handle international numbers the call is sent only to google.

illicit:
Quote from: azrobert on September 04, 2017, 09:40:35 pm

Phone outbound route:
{***:aa2},{(Mpli):pli}


For the above, this is set to forward *** to the Auto Attendant correct? If so, it's safe to leave this out yeah? Since, I have blocked calls (MBlocked) forward to the Auto Attendant which is entirely muted and plays a fake line is disconnected message.

Thank you azrobert & ProfTech, I'll get to configuring the Obihai (OB200) sometime today.

ProfTech, I assume the Canadian mask is required since both Canadian & US numbers start with 1 and are 11 digits so without it SP1 (FPL) becomes a catch all.

I have a buzzer phone for the apartment and it rings a hard line that has no service, can I use the OBiLINE adapter to link it with the Obiai? I've read the website and I don't understand what FXO is but I presume my line is a PSTN or POTS?

azrobert:
*** routes you to the Auto Attendant 2, not AA1. AA2 is used for admin commands, like installing firmware or saying the IP address of the device.

If you use ProfTech's example, he does transformation in the phone digit map, so you need to include the transformed numbers with the Canadian digit map.

A FXO port is used to connect to a POTS/PSTN line. The buzzer looks like a POTS/PSTN line, so that is how to connect to an OBi device. I think the OBiLine has been discontinued and replace by the OBi212.

https://www.amazon.com/OBi212-Universal-Adapter-Gateway-Support/dp/B075839DD6/ref=sr_1_1?ie=UTF8&qid=1504639591&sr=8-1&keywords=obi212

Navigation

[0] Message Index

[#] Next page

[*] Previous page