Digitmap help

<< < (3/3)

Gonzo:
LOL.

Teach a man to fish and he will eat forever.  Give a man a fish and he will eat only for one day.  Isn't that how it goes.  Let's see, I keep changing my requirement so your feedback is quite useful.  I'm also looking at the tutorial I found but I have to admit, I have to put a lot more time to learn all the possibilities and I am leaving today so I want to leave this sort of working.  Maybe a few hours looking at the tutorial will do it...

In terms of local port, I guess I could build the following if I understand your feedback.

(00xx.S3|xxxxxxxxxxxxx?) If I understand correctly, this will match any number starting with 00 follow by 1 or up to 13 digits, correct?.  By putting the ? at the end so it will accept any number of digits from 1 to 12

(09xx.S3|xxxxxxxx?) Same thing but will start with 09 and accept up to 8 digits.

In fact, now I have one that I need to research (notice that I am not asking your help, although I wont reject it if you send me the answer :))

The conclusion that I am reaching is that what I really need is that any 'US' dialmap including numbers that start with 011, I want to send to google voice regardless of lenght and everything else to local port, regardless of lenght

so if I dial 123, I want to local port.  If I have 123456789 to local port, if I dial 00xxxxxxxxx to local port. if I dial 14085556666 I want google voice as this would be an US number.

Thanks



azrobert:
I guess I'm a poor teacher.
Quote

(00xx.S3|xxxxxxxxxxxxx?) If I understand correctly, this will match any number starting with 00 follow by 1 or up to 13 digits, correct?.  By putting the ? at the end so it will accept any number of digits from 1 to 12

The vertical bar separates the rules, so 00xx.S3 and xxxxxxxxxxxxx? are 2 different rules.
It's like an "OR" operand.
00xx.S3 or xxxxxxxxxxxxx?

The above will match 00 followed by 1 to a zillion digits (x. will match 0 or more digits) OR 12 a digit number OR a 13 digit number.

Anyway, this answers you 1st question:
(00xx.S3|xxxxxxxx|09xxxxxxxx)

If you want anything other than US numbers, use this DigitMap:
(xx.S3)

This digit map causes a routing problem because it will also match US numbers, so the sequence of the outbound call route must change.

Physical Interfaces > PHONE Port > OutboundCallRoute: {([1-9]x?*(Mpli)):pp},{(<#:>|911):li},{**0:aa},{***:aa2},{(<**1:>(Msp1)):sp1},{(<**2:>(Msp2)):sp2},{(<**8:>(Mli)):li},{(<**9:>(Mpp)):pp},{(Mpli):pli},{(Mli):li}

Now US numbers are routed 1st.
Edit:
{(Mpli):pli}
The above rule in the outbound route is for GV. pli points to the primary line (SP1/GV)
This is checking if the dialed number is for the US.
Processing moves left to right, so you are checking for US numbers 1st.
If you get a match the call is routed out SP1.
If not, the next rule is processed.
{(Mli):li}
This will match any number and route it to PSTN.



Navigation

[0] Message Index

[*] Previous page