Create digit maps

<< < (3/4) > >>

RonR:
Quote from: HenriqueBR on March 28, 2012, 06:47:32 am

also it isn't using the normal phone line whenever the number called is of a length different than 8 or 10 digits


I just tested it again and anything other than 8- and 10-digit numbers and numbers beginning with * get sent out the LINE Port.

HenriqueBR:
Numbers starting with * should go to the sip.

I tried but the manual is cryptic. In that rule, first you add 123 with <123> that is the same as <123:> right?
but why do the nesse rule catches 123xxxxxxxxx?
So the logic is, first you add the prefix to the number, then you match that number with prefix, right?
the entire rule goes from left to right

RonR:
Quote from: HenriqueBR on March 28, 2012, 01:42:27 pm

Numbers starting with * should go to the sip.


Any digit string starting with an asterisk goes to Service Provider 1 (SP1).  I've tested this numerous times.

Quote from: HenriqueBR on March 28, 2012, 01:42:27 pm

In that rule, first you add 123 with <123> that is the same as <123:> right?


<123> is the equivalent of <:123>.  When the value to the left of the : is empty, the colon can be omitted.

<123:> would match and remove the 123 digits.

Quote from: HenriqueBR on March 28, 2012, 01:42:27 pm

but why do the nesse rule catches 123xxxxxxxxx?
So the logic is, first you add the prefix to the number, then you match that number with prefix, right?
the entire rule goes from left to right


The OBi first processes the dialed number though the PHONE Port -> DigitMap.  There is no particular order involved in the processing of the PHONE Port -> DigitMap rules.  The winner is the best matched rule.  An 8-digit number will match the <123>xxxxxxxx rule resulting in 123 being added to it at the beginning.

Then the OBi processes the resulting number through the PHONE Port -> OutboundCallRoute.  The order here is left-to-right and the first matching rule wins.  The 123xxxxxxxx rule will match in this case.

HenriqueBR:
hi, thanks for all the feedback

I tweaked a bit the rule
(<*:>xx.|<:123>xxxxxxxx|123xxxxxxxx|<:321>xxxxxxxxxx|321xxxxxxxxxx|<999:321>xxxxxxxxxx|321xxxxxxxxxx|xx.)

with this setup I wanted to:
- any number starting with * goes to sip, without the *
- if number has 8 digits, prefix with 123
- if number has 10 digits, prefix with 321
- if number begins with 999 and has 10 digits, replace with 321

I removed the part with <**8> because it was passing **8 to sip and it wasnt understanding


but I just tried a 5 digit number, and it used the sip, not the normal line
also, why that rule (xx.) in the line port?

RonR:
Quote from: HenriqueBR on March 28, 2012, 04:42:34 pm

(<*:>xx.|<:123>xxxxxxxx|123xxxxxxxx|<:321>xxxxxxxxxx|321xxxxxxxxxx|<999:321>xxxxxxxxxx|321xxxxxxxxxx|xx.)


You have serious problems with this DigitMap.  If the number starts with an * and has 8 or 10 digits or begins with 999, the * will be removed, but it's then going to be transformed again when it's processed by the OutboundCallroute using the <:123>xxxxxxxx, <:321>xxxxxxxxxx, or <999:321>xxxxxxxxxx rules.

The two-pass nature of the PHONE Port DigitMap/OutboundCallRoute can be pretty tricky when transformations are involved.

Quote from: HenriqueBR on March 28, 2012, 04:42:34 pm

I removed the part with <**8> because it was passing **8 to sip and it wasnt understanding

but I just tried a 5 digit number, and it used the sip, not the normal line


The <**8> is required to redirect all unaccounted for patterns to the LINE Port.

Quote from: HenriqueBR on March 28, 2012, 04:42:34 pm

also, why that rule (xx.) in the line port?


To allow any digit string to be sent through the LINE Port.

Quote from: HenriqueBR on March 28, 2012, 04:42:34 pm

with this setup I wanted to:
- any number starting with * goes to sip, without the *
- if number has 8 digits, prefix with 123
- if number has 10 digits, prefix with 321
- if number begins with 999 and has 10 digits, replace with 321


This following accomplishes the above and sends all unaccounted for patterns to the LINE Port:

Service Providers -> ITSP Profile A -> General -> DigitMap:

(<*:A>xx.|<A:>xx.|<OTT>xxxxxxxx|<OTT:123>xxxxxxxx|
<TTO>xxxxxxxxxx|<TTO:321>xxxxxxxxxx|<999:TTO>xxxxxxxxxx|<**8>xx.)

Navigation

[0] Message Index

[#] Next page

[*] Previous page