Routing Question

(1/2) > >>

azrobert:
I want to dial numbers like "0*8005551212", "9*15" and "5*"  and route them to SP2.
I already modified the DigitMap for SP2 and I can dial the numbers if I prefix them with "**2"
I would like to modify the phone port OutboundCallRoute to eliminate the prefix. SP1 is my primary route.
I tried the following:  "{((<**2:>|x*)(Msp2)):sp2}", but it did not work.
Is the above invalid, do I have to modify the DigitMap for the phone port or do something else?
Could someone help?

Thanks

cosmicwombat:
Maybe use the standard DigitMap and just make the X_InboundCallRoute route on the Phone port "SP2"

obiliving:
Not sure what you changed in SP2 DigitMap (which is under the ITSP Profile that SP2 uses);
anyway that only affects the value of (Msp2).

Your inboundCallRoute for SP2 looks valid to me.
However, you should have a similar change in PHONE Digit Map, which actually controls
what numbers you can dial from the PHONE Port. Try adding a similar rule to the PHONE Port Digitmap
also (i.e., something like this  .... (**2|x*)(Msp2)|....    ).

Note that you are not stripping the leading x* in your inbound call route like with
the **2 prefix. I hope this is what you intended. In other words, if you dial
**212345, then 12345 is called on SP2. If you dial 5*12345, then 5*12345 is called on SP2.
I don't have an obi with me at the moment, so I can't try this myself right now.

Let us know if it works, or which numbers that you dial are not working as expected.

QBZappy:
{((<**2:>|x*)(Msp2)):sp2}

Try this: I think this is what you mean . (dot) is the wild card not *
{((<**2:>|x.)(Msp2)):sp2}

azrobert:
To clarify things, I want to dial a number and a star followed either no digits, 2 digits or 10 digits. I want this number passed to SP2 unchanged. I have SP2 registered to SipSorcery and I do additional processing of the number in SipSorcery's dialplan.

I added "x*|x*xx|x*xxxxxxxxxx" to SP2's DigitMap and everything works if I prefix the number with "**2".

Thank you Obiliving for your suggestion.  Before making your mod I was getting "invalid number".  Now I'm getting "no call route available..." for the 2 or 10 digits, but still getting "invalid number" when just dialing "1*". Strange it doesn't like the "1*".  I'm one step closer.
You said "your InboundCallRoute looks valid".  Did you mean OutBoundCallRoute?   

Navigation

[0] Message Index

[#] Next page