News:

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

Main Menu

DigitMap and OutboundCallRoute for 10 and 11 digit numbers

Started by mtloz, March 25, 2015, 06:03:50 PM

Previous topic - Next topic

mtloz

Hi,

I'm new with all this...

Trying to sort out the calling between 2 SPs.

number starting with 1 (s0 11 digit numbers) to SP1, and all other 10 digit number to SP2

What I'm looking to do should be quite easy, but I can't make it to work properly.

I'm trying to redirect the 11 digit number to a different SP.

I created 2 labels
Label: local DigitMap: [2-9]xx[2-9]xxxxxx
Label: ld DigitMap: 1[2-9]xx[2-9]xxxxxx

Added {Mlocal:sp2},{Mld:sp1}, in the OutboundCallRoute.

Both 10 and 11 digit number will go out on SP1.

Default is SP2
Local call should go to SP2 and long distance to SP1

Any other idea on how I can do this or why it's not working?  ???

Thanks

azrobert

Use:
{(Mlocal):sp2},{(Mld):sp1},

When you don't enclose the Mlocal with parentheses it becomes a literal.
When the arguments are enclosed with parentheses they become a DigitMap.
You are comparing for the literal "Mlocal", not pointing to another DigitMap.
If you have multiple arguments the whole string must be enclosed in parentheses like this:
{((Mlocal)|011xx.):sp2}

azrobert

There is another problem.
You said "Default is SP2"
Assuming the following:
Physical Interfaces -> Phone1 Port -> Primary line: SP2 Service

Service Providers -> ITSP Profile B General -> DigitMap:
The default should be:
(1xxxxxxxxxx|<1>[2-9]xxxxxxxxx|011xx.|xx.|(Mipd)|[^*#]@@.)

Rule <1>[2-9]xxxxxxxxx will add a "1" prefix to a 10 digit number.
Change it to: [2-9]xxxxxxxxx

Edit:
The Phone Port DigitMap validates the dialed number.
The last rule (Mpli) points to the Primary Lines's (ITSP B) DigitMap.
That is why the ITSP B DigitMap will add the "1" prefix.

Edit2:
The last rule "{(Mpli):pli}" in the OutboundCallRoute will route calls to SP2, so you don't need Mlocal.
Just add the following to the beginning of the OuboundCallRoute:
{(Mld):sp1},

Processing moves left to right, so LD will be routed to SP1.

mtloz

Thanks for the update.

I'll give it a go tomorrow and report back!

mtloz

It's all good!  ;D

Thanks for the help, appreciate that!