News:

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

Main Menu

Digitmaps for Spain

Started by Nakar81, August 19, 2012, 10:52:58 AM

Previous topic - Next topic

Nakar81

I live in Spain.
I want make all call from PSTN, excep international call (00number). The number 112 is a emergency number (PSTN line).

Are correct this values?:

--- PHONE Port ---
DigitMap:
(112(Mli)|00[1-9]x?(Msp1)|**0|***|#|**1(Msp1)|**2(Msp2)|**8(Mli)|**9(Mpp)|(Mpli))

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

CallReturnDigitMaps:
{pli:(xx.)},{sp1:(<**1>xx.)},{sp2:(<**2>xx.)},{li:(<**8>xx.)},{pp:(<**9>xx.)}

PrimaryLine:
PSTN Line

And the same value in "Auto Attendant 1".

ianobi

This should work for you:

Phone Port DigitMap:
([1-9]x?*(Mpli)|[1-9]S9|[1-9][0-9]S9|112|**0|***|#|**1(Msp1)|**2(Msp2)|**8(Mli)|**9(Mpp)|(Mpli))

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

ITSP A
DigitMap (Msp1)
(00xx.)

It is best not to change Phone Port DigitMap or Phone Port OutboundCallRoute to achieve routing changes. I have only replaced 911 with 112.

No need to change CallReturnDigitMaps, just leave at default.

Nakar81

#2
I dont change Phone Port DigitMap, Phone Port OutboundCallRoute and CallReturnDigitMaps (only 911 -> 112)

PrimaryLine: PSTN Line
ITSP A DigitMap (Msp1): ( 00xx. | <:0034>[5-9]xxxxxxxxS0 )
ITSP B DigitMap (Msp2): ( 00xx. | <:0034>[5-9]xxxxxxxxS0 )

Its a good config?

when change PrimaryLine to PSTN Line, this is automatically changed to SP1 Service
:(
Act: ObiTalk (web) overwrite change to device.

ianobi

Let us know what 00 numbers you wish to call. If they all start 0034 followed by one digit in range 5 to 9, then another eight digits then (0035[5-9]xxxxxxxx) will work fine. Add the 00xx. rule to allow any number starting with 00.

When you make the changes to the PrimaryLine you need to uncheck the two boxes to the right of that setting and leave them unchecked, then press submit.

Let me know how you get on - it's a learning process. Have a go, make mistakes - we all have :)

Signing off for today - back sometime tomorrow.


Nakar81

#5
I set default values.
I disconect PSTN Line.
I set SP1 Map:
(00xxxxxxxxxx|<:0034>[5-8]xxxxxxxxS0|<:0034>9[1-9]xxxxxxxS0|(Mipd)|[^*#]@@.)

I try call **1912345678 -> OK
I try call **10034912345678 -> OK

I want call number 00x* throw SP2 (without **1), but PSTN values not work:

PSTN
DigitMap:
(112(Mli)|00[1-9]x?*(Msp1)|[1-9]S9|[1-9][0-9]S9|**0|***|#|**1(Msp1)|**2(Msp2)|**8(Mli)|**9(Mpp)|(Mpli))

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


ACT1
I try this values:
DigitMap: (0034912345678)
OutboundCallRoute: (0034912345678:sp1)

And WORKS.

I try this other values:
DigitMap: (112(Mli)|00[1-9]x?*(Msp1)|[1-9]S9|1-9][0-9]S9|**0|***|#|**1(Msp1)|**2(Msp2)|**8(Mli)|**9(Mpp)|(Mpli))
OutboundCallRoute: (0034912345678:sp1)

And NO WORKS



Nakar81

#6
Works with:

PSTN
DigitMap:
(112|0034912345678|[1-9]S9|[1-9][0-9]S9|**0|***|#|**1(Msp1)|**2(Msp2)|**8(Mli)|**9(Mpp)|(Mpli))

OutboundCallRoute
{112:li},{0034912345678:sp1},{**0:aa},{***:aa2},{(<**1:>(Msp1)):sp1},{(<**2:>(Msp2)):sp2},{(<**8:>(Mli)):li},{(<**9:>(Mpp)):pp},{(Mpli):pli}

But i need convert this number to generic pattern.

Note1:
In DigitMap 00x?* dont work.

Nota2:
In DigitMap 00x. dont work

ianobi

Nakar81,

I think that too many things are changing at each attempt to get a clear idea of what is happening. I suggest that I give you a configuration which will work mostly as you want, then you fine tune it one step at a time after you have proved it works.

This assumes that PrimaryLine = PSTN

Phone Port DigitMap:
([1-9]x?*(Mpli)|[1-9]S9|[1-9][0-9]S9|112|**0|***|#|**1(Msp1)|**2(Msp2)|**8(Mli)|**9(Mpp)|(Mpli))

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

ITSP A
DigitMap (Msp1)
(0035[5-9]xx.|(Mipd)|[^*#]@@.'@'@@.)

ITSP B
DigitMap (Msp2)
(00xx.|(Mipd)|[^*#]@@.'@'@@.)

Line Port
DigitMap (Mli) In this case Mli = Mpli
(<**1>(Msp1)|<**2>(Msp2)|xx.)

After you have proved this works, then Mli can be improved by replacing the xx. rule with what suits the Spanish numbering system.

I have left in rules such as [^*#]@@.'@'@@. from default digit maps as you may require them in the future.

After each "submit and reboot" I suggest waiting a couple of minutes to let the Obi servers to catch up. They seem to get confused if we do too many changes too quickly  :)

Now, dialling directly from the phone with no ** codes you should have:

0035 go directly to sp1
00 go directly to sp2
All other numbers go to PSTN via line port.


Nakar81

#8
WORKS PEFERCTLY, but i dont understand.

Can you explain me?.

When i call 0035number, PhonePortDigitMap uses Mpli.
Mpli is equal to Mli (in my case).
Mli is (<**1>(Msp1)|<**2>(Msp2)|xx.)
In this moment, Mli add prefix **1 to my call if Msp1 match?.

ianobi

Exactly right! Seems to me that you understand perfectly :)

The DMP (Digit Map Processor) is making two passes through the digit maps. First the PhonePortDigitMap prepends **1 to any number that matches Msp1 in Mpli. Second pass then routes the number via the Phone Port OutboundCallRoute to sp1 and removes the **1 before sending out to sp1.

I salute you! You have overcome the problems in buying the OBi, then finding power and line adapters, then changing from the North American defaults and having a manual that's not written in your first language. Quite an achivement  8)

Have fun fine tuning your Obi. Anywhere you see xx you may be able to cut down dialling out times by finding more exact matches to suit your normally dialled numbers.

For more information look at posts by RonR. That's where I learnt most about digit maps.

Good luck!

Nakar81

Thanks for your help.

I need find a power adapter, but line adapter not is necesary.

This night post a final values for Spain.

Nakar81

Correct values (Obi110) for Spanish people.

Call to nacional numbers -> PSTN
Call to international numbers -> Voip1
Call to nacional especial free numbers 900 -> PSTN
Call to nacional especial nonfree numbers 90[1-9] is not allowed.
Call to emergency number (112) -> PSTN

This assumes that PrimaryLine = PSTN

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

Line port
DigitMap:
(<**1>(Msp1)|<**2>(Msp2)|[5-8]xxxxxxxxS0|9[1-9]xxxxxxxS0|900xxxxxxS0)

ITSP Profile A
DigitMap: (00xx.|(Mipd)|[^*#]@@.'@'@@.)

Note: Sorry for my bad english.

Thanks to ianobi for your help.

ianobi

You are very welcome. Your post will help other Spanish OBi users. Also, it's another example that others can adapt to their own national numbering formats.