News:

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

Main Menu

Solved: Shorten Dial Plan

Started by mrjoe, August 25, 2012, 05:19:47 PM

Previous topic - Next topic

mrjoe

Can anyone shorten this Dial Plan for me?
It is to Dial default to the Line which is an Israeli Cell connected through an Xlink Gateway
**6 Localphone/**7 Comms.com are UK lines
**3 Voip512 International
**2 GV

Thanks

(<02>[2356789]xxxxxx<#>|02[23456789]xxxxxx<#>|0[49]xxxxxxx<#>|03[125689]xxxxxx<#>|08[1235689]xxxxxx<#>|087[456789]xxxxx<#>|084[1267890]xxxxx<#>|0[57]xxxxxxxx<#>|1[278]xxxxxxxx<#>|*xxxx<#>S2|*xxxxx<#>|1xx<#>S2|1xxx<#>|12[12]2xxxx<#>|1255xxx<#>|00(46|34|351|48|31|39|36|30|49|33|32|43|852|86|65|90|27|41|64|353|352|613|39|54|868)xx.<#>|0044[123]xxxxxxxxx<#>|0<044>292xxxxxxx<#>|0<044>28[2346789]xxxxxxx<#>|0<044>3[0347]xxxxxxxx<#>|<0044191>4xxxxxx<#>|0<044>20xxxxxxxx<#>|0<044>1xxxxxxxxx<#>|<**3>00447xxxxxxxxx|<**3>00xx.|<**7>0(500|800|808)xxxxxxS2|<**7>0(500|800|808|870)xxxxxxx|<**6>084[345]xxxxxxx|<**6>087[123]xxxxxxx|<**2>1xxxxxxxxxx|<00:**2>1xxxxxxxxxx)

ianobi

Mrjoe,

That's a very big digitmap! I think the maximum allowed digits in a digit map is 512 – you must be very close!

You seem to have a lot of ways to dial UK landlines:
|0044[123]xxxxxxxxx<#>|0<044>292xxxxxxx<#>|0<044>28[2346789]xxxxxxx<#>|0<044>3[0347]xxxxxxxx<#>|<0044191>4xxxxxx<#>|0<044>20xxxxxxxx<#>|0<044>1xxxxxxxxx<#>|

Could that section of the digt map be replaced with:
|0044[123]xxxxxxxxx<#>|0<044>[123]xxxxxxxxx<#>|<0044191>4xxxxxx<#>|

There is a slight danger of conflict if users slowly dial UK 02 and 03 numbers with shorter numbers in the first line of your digit map, but that conflict already exists in your original digit map. You may wish to consider adding S4 to the end of the shorter numbers.

mrjoe

Hi Ianobi,

Thanks for your reply.
My key is to be able to call phones in Israel as if I'm in the 02 are and phones in England as if I'm in the 01914 area as fast as possible without much thought.

If you look very closely you will see that I avoided the conflict between 02/03 numbers in both countries by making them delicately avoid each other.

I have tried lots of different variations but it doesn't seem like I can leave anything else out.

I have changed it a little bit and it now looks like this:

(3S0|02[3-9]xxxxxx<#>|<02>[5-9]xxxxxx<#>|0[49]xxxxxxx<#>|03[125689]xxxxxx<#>|0[5][0-57-9]xxxxxxx<#>|07[23]xxxxxxx<#>|07[4-8]xxxxxxx<#>S2|08[135689]xxxxxx<#>|087[4-9]xxxxx<#>|084[126-90]xxxxx<#>|1[2578]xxxxxxxx<#>|*xxxx<#>S2|*xxxxx<#>|1xx<#>S2|1xxx<#>|12[12]2xxxx<#>|1255xxx<#>|00(46|34|351|48|31|39|36|30|49|33|32|43|852|86|65|90|27|41|64|353|352|613|39|54|868)xx.<#>|<**3>00xx.|<**2>1xxxxxxxxxx|<00:**2>1xxxxxxxxxx|0044[123]xxxxxxxxx<#>|0<044>1xxxxxxxxx<#>|<0044191>4xxxxxx<#>|0<044>20xxxxxxxx<#>|0<044>2[34]xxxxxxxxx<#>|0<044>28[2346-9]xxxxxxx<#>|0<044>292xxxxxxx<#>|0<044>3[0347]xxxxxxxx<#>|<0:**344>7xxxxxxxxx|<**7>0(500|800|808)xxxxxxS2|<**7>0(500|800|808|870)xxxxxxx|<**6>084[345]xxxxxxx|<**6>087[123]xxxxxxx)

ianobi

mrjoe,

The main thing is it all works! If you need that level of precision, then it looks like you will have to live with that very big digit map  :)

mrjoe

I suppose so, if I'd have more info on the numbering system in both countries it would make things a lot more simple though.

|00(46|34|351|48|31|39|36|30|49|33|32|43|852|86|65|90|27|41|64|353|352|613|39|54|868)xx.|

The above is because my Cellphone Company include free calls to the above countries.

It's a shame it is not possible to exclude a digit rather than having to write everything but that digit.

Does it make a difference what order you use, does it make it faster if you put things in a certain order?

Thanks

ianobi

This is the best explanation I have read of how OBi processes digit maps then outbound call routes:

http://www.obitalk.com/forum/index.php?topic=513.msg3001#msg3001

Just read the first post.

Short version: All digit maps are really just part of one giant PhonePort DigitMap and OBi will look for the best matched rule. Then Obi will look at the expanded PhonePort OutBoundCall Route one rule at a time from left to right until it finds the first exactly matched rule. Therefore, it will make a difference what order rules are in the OutBoundCallRoute.

I guess the OBi is fast enough for us humans to not notice much difference in times  :)

mrjoe

Thanks,
It looks like this is going to get a lot more complicated! ;)

mrjoe

Does that mean if I put <SP1>1718xxxxxxxx|<SP2>1xxxxxxxxxx
If I dial 1718xxxxxxx it will go through SP1 rather than SP2?

ianobi

I'm not sure what digit map your example is in, so it's hard to say.

Generally, it's a two stage process. If you dial 1718xxxxxxx, then PhonePort DigitMap will look for best match. If that is sp1, then it prepends **1 to the number. Stage 2: PhonePort OutBoundCallRoute will match the number using{(<**1:>(Msp1)):sp1} then remove the **1 and send the number out on sp1.

I hope that helps.

mrjoe

#9
Using Trunk 1 for all calls has enabled me to drastically reduce the size of my Dial Plan.
This is because since I'm putting all of the instructions in the individual SP/VG's Digit Map, I can arrange them in a specific order in the Trunks's Digit Map

For example since all UK numbers are longer than Israel, if I put the UK's VG before the Israel's VG I don't have to make sure they avoid each other.

I think using a trunk group is much better than using one Digit Map with **Xs

This also fixes the problem with dialing from a PAP2,AA or Obion App since there is no processing needed!

This also speeds up dialing very noticeably.

Thanks Ianobi for introducing me to Trunk Groups.

edit: See this for an explanation: http://www.obitalk.com/forum/index.php?topic=4036.msg28744#msg28744