Help with digimap syntax...
vaggarwa:
Hey guys,
I'm really struggling with my digimaps..
Here is my config for SP1:
(1xxxxxxxxxx|[2-9]xxxxxxxxx|011xx.|xx.|'*0'|(Mipd)|[^*#]@@.)
I want to add 2 conditions:
1) If the call is international, (011) route to SP3
2) If the number dialed is to area code 914 (whether it begins with 914 or 1914), I wanted it routed via SP4
I have tried numerous things, and not sure if the order of rules matters.....
ANy help would be appreciated.....thanks!!!!
azrobert:
There are different ways to accomplish what you want. I don't like to put the logic in the DigitMap. Here is how I would do it.
Physical Interfaces -> Phone Port
Add the following to the beginning of the OutboundCallRoute.
{(011xx.):sp3},{(1?914xxxxxxx):sp4},
vaggarwa:
Thank you!!!
I have been trying the outgoingroute option, but no matter what I did, the rules wouldn't work.
This worked PERFECT!
Not that I would do it, but I'm trying to learn the digimap syntax, how would I do this in the digimap?
THanks!!!
azrobert:
Actually the following is how I would comfigure it. It's more work, but now you can look at each SP digitMap and know what is routed out that trunk.
I removed (Mipd) and [^*#]@@. these are to match an IP address or a URI and probably not needed.
I removed the quotes around *0. Quotes are only needed around reserved characters like 'M' or 'S'.
I removed "xx.". This will match 1 or more digits and might cause a 10 second dialing delay. If you need it add it back.
ITSP A (SP1) DigitMap
(1xxxxxxxxxx|[2-9]xxxxxxxxx|*0)
ITSP C (SP3) DigitMap
(011xx.)
ITSP D (SP4) DigitMap
(1?914xxxxxxx)
Add after the beginning parenthesis in the Phone Port DigitMap:
(Msp3)|
Add to the beginning of the Phone Port OutboundCallRoute
{(Msp3):sp3},{(Msp4):sp4},
Now to answer your question "how to add the logic to the DigitMap?".
1st the disclaimer: I don't code this way. The last time I showed an example using this technique I screwed it up.
SP1 DigitMap:
(<**4>1?914xxxxxxx|1xxxxxxxxxx|[2-9]xxxxxxxxx|<**3>011xx.|*0)
You don't dial the **4 or **3. The DigiitMap automatically adds the prefix. Then the default outbound route removes the prefix and routes to the correct trunk.
As you can see this is very easy to do, but IMHO this technique becomes crazy in more complicated configurations. My technique you look at each DigitMap and you know what's happening on that trunk.
vaggarwa:
AHh!!! Many Thanks!
The (Mipd) and [^*#]@@. were throwing me off...now I think I get it!
Navigation
[0] Message Index
[#] Next page