outbound call route to different SP
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:
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: Code:
(!911|<+>1xxxxxxxxxx|<+1718>[2-9]xxxxxx|<+1>[2-9]xxxxxxxxx|(Mipd)|[^*]@@.)
ITSP B DigitMap: Code:
(*xx|*123|0119725xxxxxxxx)
ITSP C DigitMap: Code:
(00xx.)
digitmap:
Code:
(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:
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:
Quote
Routing 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:
Quote
Routing 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:
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.
Navigation
[0] Message Index
[*] Previous page