News:

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

Main Menu

Help with digimap syntax...

Started by vaggarwa, May 17, 2014, 12:47:17 PM

Previous topic - Next topic

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!

cyclops

Hi all, even I need some help with the digimap syntax. Thought of using this thread rather than creating a new one, hope it's fine.

Currently I have the following digimap under Service Providers>>>ITSP Profile A>>>General

(1xxxxxxxxxx|<1>[2-9]xxxxxxxxx|<**2>011xx.|xx.|(Mipd)|[^*#]@@.)

This routes my calls on SP2 if I make an international call. This setup was working fine till I had Nymgo as my SP2. I recently switched to Localphone and it looks like Localphone does not works with 011 prefix for international calls, it needs the country code directly.

Now my question is how do I modify the digimap to exclude 011 when passing on the dial out number to SP2.

To make it more clear, my current digimap translates 01191xxxxxxxxxx to 01191xxxxxxxxxx. How do I change it to translate 01191xxxxxxxxxx to 91xxxxxxxxxx ?

Thanks.

azrobert

Change it to:  <011:**2>xx.

Anything left of the colon is removed and anything to the right is added.
If you are only adding characters the colon is optional.

Dial 011910123456789 and the resulting number will be **2910123456789
910123456789 must match a rule in the ITSP B DigitMap.
xx. will match it.

I don't use Localphone, but I think they use 00 prefix for international calls.
If this is correct use this:
<011:**200>xx.

drgeoff

#7
Quote from: azrobert on June 03, 2014, 09:01:16 PM
... but I think they use 00 prefix for international calls.
If this is correct use this:
<011:**200>xx.

Yes, localphone say 00 is the correct prefix.  See jazzy's post of 17 May at http://www.obitalk.com/forum/index.php?topic=8067.msg52868#msg52868

cyclops

Quote from: azrobert on June 03, 2014, 09:01:16 PM
Change it to:  <011:**2>xx.

Anything left of the colon is removed and anything to the right is added.
If you are only adding characters the colon is optional.

Dial 011910123456789 and the resulting number will be **2910123456789
910123456789 must match a rule in the ITSP B DigitMap.
xx. will match it.

I don't use Localphone, but I think they use 00 prefix for international calls.
If this is correct use this:
<011:**200>xx.


This worked like a charm! Many thanks!

Gonzo

Hello.  Sorry in advance if this is too newbie of a question, but I have not been able able to get my digit map correctly.

Have an Obi 110 and would like to:

Any 011 starting sequence go to google voice
Any 1 starting sequence go to google voice

Anything else go  to local port

Thanks

G

azrobert

#10
It is a newbie question, but you don't have to apologize. There have been some really dumb questions asked on the forum.

I don't know what you tried, but you need to leave the Primary Phone Port Line set to the default of PSTN.

The following will route 11 digit US numbers and international numbers to SP1.
Everything else will be routed to the Line Port.

Physical Interfaces -> Phone Port
Add the following to the beginning of the OutboundCallRoute:
{(1xxxxxxxxxx|011xx.):sp1},

Are you dialing 10 digit numbers?
If you are the Line DigitMap needs to change to eliminate a 10 second pause.

Physical Interfaces -> Line Port
Replace the DigitMap with the following:
(xxxxxxxS4|xxxxxxxxxx)

Add any other rules you may need.
911 is handled separately.

You need to use OBi Expert to make the above changes.