OBiTALK Community

General Support => Installation and Set-Up (Devices) => Topic started by: maddawg on July 19, 2012, 04:42:36 AM

Title: Problems setting up a dial plan
Post by: maddawg on July 19, 2012, 04:42:36 AM
Need some assistance setting up a dial plan.  Tried a few and no luck so far.  I have a obi110 and trying to accomplish the following.  Signed up with freephoneline.ca and would like to restrict certain area codes.  FPL is setup on SP1 and voip.ms on SP2.  Would like to have all freephoneline (allow you to call certain area codes for free) area codes go through sp1 and long distance calls through sp2.  Still trying to wrap my head around this dialplan and wish it was a bit easier to create.
Title: Re: Problems setting up a dial plan
Post by: ianobi on July 20, 2012, 05:54:06 AM
I guess the friendly experts here are waiting for more details on this one:

Is there any service on your Line Port?
Which is your primary line - Line Port, sp1 or sp2?
Exactly what codes need to go to FPL?
Are all the numbers 11 digit?

Posting some of your attempts would help explain what you are trying to achieve.

Help is out here (some of the time :))

I am busy drinking tea and watching cricket for the next 24hrs. If nobody has picked your info up and helped by then, I will have a go after that. Good luck :)

Title: Re: Problems setting up a dial plan
Post by: QBZappy on July 20, 2012, 07:13:23 AM
ianobi,

Give it a shot. No one owns this forum. Have some fun with it.
Title: Re: Problems setting up a dial plan
Post by: jimates on July 20, 2012, 04:46:36 PM
See this thread http://www.obitalk.com/forum/index.php?topic=933.20
perhaps something in the second post will help out.
Title: Re: Problems setting up a dial plan
Post by: maddawg on July 22, 2012, 09:23:38 AM
There is no service on my line port.  Currently have phone service, but wanted to switch to voip exclusively.  Freephoneline is a service being offered in Canada and allows free calling to specific area's.  Looked at this thread, but again still trying to wrap my head around it all.

http://www.obitalk.com/forum/index.php?topic=3390.0

I will look at the link jimates provided.  Quickly read through it and seems lots of information for what I need to do.

Title: Re: Problems setting up a dial plan
Post by: ianobi on July 23, 2012, 02:25:14 AM
Page 1 of the link suggested by jimates contains a digit map worked out by RonR, so most of us cannot improve on that :)

However, with your configuration having FPL on sp1, then you need to set:

Physical Interfaces -> PHONE Port -> Primary Line : SP1 Service

RonR's digit map will then need to be on Service Providers -> ITSP Profile A -> General -> DigitMap

Also, where RonR uses <**1> you should use <**2> to direct long distance calls out to voip.ms on sp2.

If at some future date you wish to swith to voip exclusively, then you may need to consider changes to Phone Port OutboundCallRoute to direct services such as 911 to sp1.

Good luck! Let us know how it goes.

Title: Re: Problems setting up a dial plan
Post by: maddawg on July 23, 2012, 08:30:27 AM
So I created the following dialplan for Service Providers -> ITSP Profile A -> General -> DigitMap:

(911|*98|1xxxxxxxxxx |1905xxxxxxx|1289xxxxxxx|1365xxxxxxx|1519xxxxxxx|1226xxxxxxx|1343xxxxxxx|1613xxxxxxx|
1438xxxxxxx|1514xxxxxxx|1450xxxxxxx|1579xxxxxxx|1902xxxxxxx|1506xxxxxxx|1647xxxxxxx|
1709xxxxxxx|1403xxxxxxx|1780xxxxxxx|1587xxxxxxx|1778xxxxxxx|1236xxxxxxx|1250xxxxxxx|
1604xxxxxxx|1204xxxxxxx|1306xxxxxxx|1639xxxxxxx|1418xxxxxxx|1581xxxxxxx|1867xxxxxxx|1807xxxxxxx|1800xxxxxxxxxx|188xxxxxxxxxx|<1416>xxxxxxx| <**2>1xxxxxxxxxx|<**2>011xx.|(Mipd)|[^*]@@.'@'@@.)

I have run into a problem, whenever I attempt to call a 1876 number (long distance call to Jamaica), its directed through SP1 (FPL service) and not SP2 (voip.ms).  How do I setup a automatic dial for all long distance calls through SP2(voip.ms).
Title: Re: Problems setting up a dial plan
Post by: ianobi on July 23, 2012, 10:05:48 AM
Almost there!

It looks like you need to remove 1xxxxxxxxxx from the first part of the digit map (911|*98|1xxxxxxxxxx |... Also be careful not to leave spaces. The 1xxxxxxxxxx matches anything begining with 1 that does not match the more specific codes, so it's catching your 1876 code before <**2>1xxxxxxxxxx can catch it and send it to sp2.

The <**2>1xxxxxxxxxx is designed to catch anything that does not match your specific codes and then prepend **2 to the number which will then send it to sp2.

Anyhow, that's how I see it, but I'm no RonR :)



edit: append changed to prepend. Small things matter here!
Title: Re: Problems setting up a dial plan
Post by: maddawg on July 23, 2012, 03:08:27 PM
Thank you for catching the space, now I see how the dialplan is read.  I'm getting there slowly.
Title: Re: Problems setting up a dial plan
Post by: ianobi on July 23, 2012, 11:53:09 PM
We learn from our mistakes - I have made plenty  8)
Title: Re: Problems setting up a dial plan
Post by: maddawg on August 01, 2012, 06:21:45 PM
So I'm getting a headache with this dialplan setup.  I have the current dialplan for SP1:

(911|*98|1905xxxxxxx|1289xxxxxxx|1365xxxxxxx|1519xxxxxxx|1226xxxxxxx|1343xxxxxxx|1613xxxxxxx| 1438xxxxxxx|1514xxxxxxx|1450xxxxxxx|1579xxxxxxx|1902xxxxxxx|1506xxxxxxx|1647xxxxxxx| 1709xxxxxxx|1403xxxxxxx|1780xxxxxxx|1587xxxxxxx|1778xxxxxxx|1236xxxxxxx|1250xxxxxxx|1604xxxxxxx|1204xxxxxxx|1306xxxxxxx|1639xxxxxxx|1418xxxxxxx|1581xxxxxxx|1867xxxxxxx|1807xxxxxxx|1800xxxxxxx|188xxxxxxx|1866xxxxxxx|<1416>xxxxxxx| <**2>1xxxxxxxxxx|<**2>011xx.|(Mipd)|[^*]@@.'@'@@.)

Dialplan for SP2:

(1xxxxxxxxxx|<1416>[2-9]xxxxxxxxx|011xx.|xx.|(Mipd)|[^*#]@@.)

I am attempting to dial 16086611376 which a US number for rockauto.  My dialplan, should force it to use sp2 but for some reason, sp1 is being used.  I"m stumped, hoping obitalk will release so time of dialplan quick guide.  This is kicking my but. 
Title: Re: Problems setting up a dial plan
Post by: QBZappy on August 01, 2012, 06:26:06 PM
maddawg,


What is your Phone PrimaryLine set to?
Title: Re: Problems setting up a dial plan
Post by: QBZappy on August 01, 2012, 06:36:18 PM
Quote from: maddawg on August 01, 2012, 06:21:45 PM
So I'm getting a headache with this dialplan setup.  I have the current dialplan for SP1:

(911|*98|1905xxxxxxx|1289xxxxxxx|1365xxxxxxx|1519xxxxxxx|1226xxxxxxx|1343xxxxxxx|1613xxxxxxx| 1438xxxxxxx|1514xxxxxxx|1450xxxxxxx|1579xxxxxxx|1902xxxxxxx|1506xxxxxxx|1647xxxxxxx| 1709xxxxxxx|1403xxxxxxx|1780xxxxxxx|1587xxxxxxx|1778xxxxxxx|1236xxxxxxx|1250xxxxxxx|1604xxxxxxx|1204xxxxxxx|1306xxxxxxx|1639xxxxxxx|1418xxxxxxx|1581xxxxxxx|1867xxxxxxx|1807xxxxxxx|1800xxxxxxx|188xxxxxxx|1866xxxxxxx|<1416>xxxxxxx| SPACE<**2>1xxxxxxxxxx|<**2>011xx.|(Mipd)|[^*]@@.'@'@@.)

Remove the space
Title: Re: Problems setting up a dial plan
Post by: maddawg on August 02, 2012, 02:17:11 AM
QBZappy, thank you.  I worked on the string in Windows Office and never saw the spaces.  Using notepad to view the text and spaces were obvious.  Thanks again, so folks best to use notepad and a text editor whenever you are modifying your dial string.  Deleted the spaces and everything is now golden.