News:

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

Main Menu

outbound call route to different SP

Started by feld1234, February 25, 2019, 03:18:58 PM

Previous topic - Next topic

feld1234

Hi all,

I'm new here, so i need some help. I bought a OBI2182 to use as an office phone with my GV # as the office number. I routed GV to Callcentric to be able to get CNAM. I also have a 3rd SP for international (localphone).

I set it up as follows:
SP1 as GV
SP2 as CC
SP3 as LocalPhone
incoming calls only ring from SP2


Now I would like to to know how to set it as follows:
1) All national (USA) calls to dial out from SP1 (GV)
2) International calls to 0119725 from SP2 (if international was dialed using the universal international code (00) replace 00 with 011), automatically add #after 15 digits
3) All other international calls from SP3 remove 00 or 011 from beginning of number, & add # after no digit was pressed for 5 seconds

I tried setting a user defined DigitMap label as nat, then set digitmap as (1xxxxxxxxxx|<1>[2-9]xxxxxxxxx|011xx.|xx.|(Mipd)|[^*#]@@.), then adding the first thing in outboundCallRoute {(Mnat):sp1} but it didn't seem to help.

Thanks in advance



feld1234

Quote from: drgeoff on February 25, 2019, 04:12:29 PM
http://www.obitalk.com/forum/index.php?action=dlattach;topic=9104.0;attach=878

Thanks for your reply, I already read thru this whole booklet yesterday, but I just can't seem to figure out how to imple the it. As much as itried it didn't work.

azrobert

The following assumes SP1 is your Primary Line.

ITSP A DigitMap: (1xxxxxxxxxx|<1>[2-9]xxxxxxxxx)

ITSP B DigitMap: (0119725xxxxxxxx<#>)

ITSP C DigitMap: (011xx.<#>)

User Defined Digit Map2
Label: intl
DigitMap: (0119725xxxxxxxx|<00:011>9725xxxxxxxx|011xx.S5|<00:011>xx.S5)

Add (Mintl)| to the IP Phone DigitMap after the beginning parenthesis.

Add following to the beginning of the IP Phone OutboundCallRoute
{(Msp2):sp2},{(Msp3):sp3},

If you want, I'll provide an explanation tomorrow. (I'm assuming the above will work)

feld1234

Quote from: azrobert on February 25, 2019, 10:10:13 PM
The following assumes SP1 is your Primary Line.

ITSP A DigitMap: (1xxxxxxxxxx|<1>[2-9]xxxxxxxxx)

ITSP B DigitMap: (0119725xxxxxxxx<#>)

ITSP C DigitMap: (011xx.<#>)

User Defined Digit Map2
Label: intl
DigitMap: (0119725xxxxxxxx|<00:011>9725xxxxxxxx|011xx.S5|<00:011>xx.S5)

Add (Mintl)| to the IP Phone DigitMap after the beginning parenthesis.

Add following to the beginning of the IP Phone OutboundCallRoute
{(Msp2):sp2},{(Msp3):sp3},

If you want, I'll provide an explanation tomorrow. (I'm assuming the above will work)


Will definitely give it a try.

Yes primary line is SP1, but would also want that even when I press the button (right key) assigned to sp2, it should still follow all rules and dial via the rule assigned by the digit map
Where exactly do I add (Mintl)|? After first parenthesis?
Also I don't seem to see where all intl calls except 0119725 are routed to Sp3? (Could be it's there, I just dont read it correctly).

drgeoff

The OutboundCallRoute is processed left to right and the first match is acted upon. The specific case of 0119725..... is encountered before the general one of 011...... If the former, SP2 is used. If the latter, SP3. (This assumes the conventional mapping of ITSP A/B/C to SP1/2/3 respectively.)

Does adding the word "immediately" before "after" in azrobert's instruction about inserting (Mintl)| make it clearer?

feld1234

#6
Quote from: azrobert on February 25, 2019, 10:10:13 PM
The following assumes SP1 is your Primary Line.

ITSP A DigitMap: (1xxxxxxxxxx|<1>[2-9]xxxxxxxxx)

ITSP B DigitMap: (0119725xxxxxxxx<#>)

ITSP C DigitMap: (011xx.<#>)

User Defined Digit Map2
Label: intl
DigitMap: (0119725xxxxxxxx|<00:011>9725xxxxxxxx|011xx.S5|<00:011>xx.S5)

Add (Mintl)| to the IP Phone DigitMap after the beginning parenthesis.

Add following to the beginning of the IP Phone OutboundCallRoute
{(Msp2):sp2},{(Msp3):sp3},

If you want, I'll provide an explanation tomorrow. (I'm assuming the above will work)

Thanks for your detailed help, thanks God it's working.
Your examples for situations I actually need, actually made me understand the above mentioned tutorial.
I made some minor changes, as it seems I wasn't clear enough for exactly what I want, so I made minor changes to suit my situation.

Just one thing doesn't seem to to work is the elements to literal transformation <elements:literal>
I try replacing in the digitmap 00 to 011 <00:011>9725xxxxxxxx to match sp2 but it's not going. I'm also trying to replace 011 with 00 <011:00> to match sp3 & it's also not working. (Sp4 needs 00 to dial international)

Here you can see all my settings:
ITSP A DigitMap: (!911|<+>1xxxxxxxxxx|<+1718>[2-9]xxxxxx|<+1>[2-9]xxxxxxxxx|(Mipd)|[^*]@@.)

ITSP B DigitMap:  (*xx|*123|0119725xxxxxxxx)

ITSP C DigitMap: (00xx.)
digitmap:
(0119725xxxxxxxx|<00:011>9725xxxxxxxx|<011:00>xx.)

As you can see I added to ITSP B *123 to be able to dial Callcentrics voicemail, but that also doesn't work automatically, I have to manually dial **2 to get to sp2, then I can go & press *123.

Thanks

azrobert

#7
What do you want to do with 911? If you want to block 911, change it in the IP Phone DigitMap. If you want to send 911 to Callcentric, add it to the ITSP B DigitMap.

You don't need (Mipd) and [^*]@@.

Try:

ITSP A DigitMap: (1xxxxxxxxxx|<+1718>[2-9]xxxxxx|<1>[2-9]xxxxxxxxx)

ITSP B DigitMap: (*xx|*123|0119725xxxxxxxx)

ITSP C DigitMap: (00xx.)

User Defined Digit Map2
Label: intl
DigitMap: (0119725xxxxxxxx|<00:011>9725xxxxxxxx|00xx.S3|*xx|*123)

Add (Mintl)| to the IP Phone DigitMap after the beginning parenthesis.

Add following to the beginning of the IP Phone OutboundCallRoute
{(Msp2):sp2},{(Msp3):sp3},

I previously posted the following in another thread:
QuoteRouting an outbound call is a 2 step process.
The Phone Port DigitMap validates the dialed number.
The last rule (Mpli) will include the rules in primary line's DigitMap.
If the dialed number doesn't match a rule, you will receive a fast busy.

If the dialed number matches a rule in the DigitMap, the phone port OutboundCallRoute will get control and route the call to the primary line using rule {(Mpli):pli}

Only numbers in Primary Line (SP1) and the IP Phone DigitMaps will be validated when using the default. That is why I created (Mintl) and added it to the IP Phone DigitMap. Any other non-SP1 numbers you want will also have to be added to (Mintl) or the Phone DigitMap.

I'm changing 00 to 011 when the Phone DigitMap is processed via (Minlt). Now the outbound route will see 011, not 00.

Edit:
I just re-read you last post. If I understand, dialing "009725........" doesn't work. What happens? Do you get a busy or does it get routed to SP3?

feld1234

Quote from: azrobert on February 27, 2019, 07:29:53 AM
What do you want to do with 911? If you want to block 911, change it in the IP Phone DigitMap. If you want to send 911 to Callcentric, add it to the ITSP B DigitMap.

You don't need (Mipd) and [^*]@@.

Try:

ITSP A DigitMap: (1xxxxxxxxxx|<+1718>[2-9]xxxxxx|<1>[2-9]xxxxxxxxx)

ITSP B DigitMap: (*xx|*123|0119725xxxxxxxx)

ITSP C DigitMap: (00xx.)

User Defined Digit Map2
Label: intl
DigitMap: (0119725xxxxxxxx|<00:011>9725xxxxxxxx|00xx.S3|*xx|*123)

Add (Mintl)| to the IP Phone DigitMap after the beginning parenthesis.

Add following to the beginning of the IP Phone OutboundCallRoute
{(Msp2):sp2},{(Msp3):sp3},

I previously posted the following in another thread:
QuoteRouting an outbound call is a 2 step process.
The Phone Port DigitMap validates the dialed number.
The last rule (Mpli) will include the rules in primary line's DigitMap.
If the dialed number doesn't match a rule, you will receive a fast busy.

If the dialed number matches a rule in the DigitMap, the phone port OutboundCallRoute will get control and route the call to the primary line using rule {(Mpli):pli}

Only numbers in Primary Line (SP1) and the IP Phone DigitMaps will be validated when using the default. That is why I created (Mintl) and added it to the IP Phone DigitMap. Any other non-SP1 numbers you want will also have to be added to (Mintl) or the Phone DigitMap.

I'm changing 00 to 011 when the Phone DigitMap is processed via (Minlt). Now the outbound route will see 011, not 00.

Edit:
I just re-read you last post. If I understand, dialing "009725........" doesn't work. What happens? Do you get a busy or does it get routed to SP3?

first let me explain for 0119275..... I would like to use Callcentric for the international, all other international calls I want to route thru Localphone. CC as an american company uses 011 as the international code, Localphone as a UK company uses 00 as the international code, & me as an american dial 011 for international, so I want the obi digitmap to convert 011 to 00 (& vice versa for when I have international guest)

Dialing 0119725.... works perfectly as it matches ITSP B
Dialing 009725..... works, but gets routed via SP4 instead of SP3 as the digitmap should've routed it to, because it matches ITSP C (00xx.)
Dialing 011.... doesn't work, probably as it doesn't match a a ITSP & the digitmap didn't match it to a ITSP (because the replace doesn't work), so it tries to dial it from SP1, & of course it doesn't go thru.
Dialing 00..... works thru SP4

azrobert

#9
Keep everything the same as my last post except:
User Defined Digit Map2
Label: intl
DigitMap: (0119725xxxxxxxx|<00:011>9725xxxxxxxx|00xx.S3|<00:011>xx.S3|*xx|*123)

Edit:

I added a 3 second delay for the 2 SP3 rules that end with "xx.". The default would be a 10 second delay.