Primary Line

<< < (3/3)

dvijen:
Quote from: RonR on March 26, 2011, 04:46:45 pm

I haven't tested this, so it may need some fine tuning (or worse)   :)


US/Canada 7, 10, or 11 digit numbers should go out SP1.  10 digit numbers will have a prefix of 1 added.  7 digit numbers will have a prefix of 1225 added.

Internaltional numbers (011xx.) should go out SP2.

Anything else should go out LINE.

**2 can be used to force anything out SP2.

**8 can be used to force anything out LINE.

**1 will NOT force non-US/Canada 7, 10, or 11 digit numbers out SP1.


Code:

PrimaryLine: SP1 Service



PHONE Port DigitMap (Default):

([1-9]x?*(Mpli)|[1-9]|[1-9][0-9]|911|**0|***|#|**1(Msp1)|**2(Msp2)|**8(Mli)|**9(Mpp)|(Mpli))



PHONE Port OutboundCallRoute (Default):

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



LINE Port DigitMap:

(xxxxxxxS4|<1>[2-9]xxxxxxxxxS0|1xxxxxxxxxxS0|xx.)



ITSPA DigitMap:

(1xxxxxxxxxxS0|<1>[2-9]xxxxxxxxxS0|<1225>xxxxxxxS4|<**2>011xx.|<**8>xx.)



ITSPB DigitMap:

(1xxxxxxxxxxS0|<1>[2-9]xxxxxxxxxS0|<1225>xxxxxxxS4|011xx.|xx.)




Thanks, but I only wanted 11 digit dialing to go through sp1, with all 7 and 10 digit dialing going through line port
dvijen

RonR:
The 7 and 10 digits to the LINE Port are to be sent as is (unmodified)?

dvijen:
That is what I am doing right now and pap2t on line port prepands it.  Rather slopppy solution but works.  Good solution would be to send 7 and 10 digit to line port after prepanding them to 11 digit.  If 11 digits are entered, they need to go to sp1.

All this is for fun and learning.  I have voip line for pstn with unlimited calls to us/canada just like google voice on sp1.  I am just trying to understand obi and its capabilities.  The admin guide is not very helpful in understanding how obi treats what in which priority.  You certainly know more than what is in the admin guide :)
dvijen

RonR:
US/Canada 11 digit numbers should go out SP1.

US/Canada 7 or 10 digit numbers should go out LINE.  10 digit numbers will have a prefix of 1 added.  7 digit numbers will have a prefix of 1225 added.

Internaltional numbers (011xx.) should go out SP2.

Anything else should go out LINE.

**2 can be used to force anything out SP2.

**8 can be used to force anything out LINE.

**1 will NOT force non-US/Canada 11 digit numbers out SP1.


Code:

PrimaryLine: SP1 Service



PHONE Port DigitMap (Default):

([1-9]x?*(Mpli)|[1-9]|[1-9][0-9]|911|**0|***|#|**1(Msp1)|**2(Msp2)|**8(Mli)|**9(Mpp)|(Mpli))



PHONE Port OutboundCallRoute (Default):

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



LINE Port DigitMap:

(xxxxxxxS4|<1>[2-9]xxxxxxxxxS0|1xxxxxxxxxxS0|xx.)



ITSPA DigitMap:

(1xxxxxxxxxxS0|<**81>[2-9]xxxxxxxxxS0|<**81225>xxxxxxxS4|<**2>011xx.|<**8>xx.)



ITSPB DigitMap:

(1xxxxxxxxxxS0|<1>[2-9]xxxxxxxxxS0|<1225>xxxxxxxS4|011xx.|xx.)

Navigation

[0] Message Index

[*] Previous page