News:

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

Main Menu

PSTN and VOIP Account

Started by Sunfiregt, January 25, 2012, 12:06:21 PM

Previous topic - Next topic

Sunfiregt

Hi,

Can someone tell me how I would setup my OBI110 to allow all local / 911 / Toll free calls to route through PSTN and all long distance to route through the obi device automatically. I don't want to dial 9 or and special combination on my phone.. I want this to be seemless to the end user.

Thanks

RonR

911 calls are routed to the the LINE Port (PSTN line) by default.

Assuming you have Google Voice configured on SP1:


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

(1xxxxxxxxxx|<1>[2-9]xxxxxxxxx|<**8>[2-9]xxxxxx|
<**8>(18(00|88|77|66|55)xxxxxxx|<1>8(00|88|77|66|55)xxxxxxx)|011xx.|(Mipd)|[^*#]@@.'@'@@.)


Physical Interfaces -> PHONE Port -> PrimaryLine -> SP1 Service


Physical Interfaces -> LINE Port -> DigitMap : ([2-9]11|[2-9]xxxxxx|1xxxxxxxxxx)


           911  ->  LINE Port
      7 digits  ->  LINE Port
     Toll Free  ->  LINE Port
10/11 digits  ->  SP1 Service
         011+  ->  SP1 Service

Sunfiregt

sorry not Google voice but another sip provider ( voip.ms)

Also how are inbound calls handled on the pstn

RonR

Quote from: Sunfiregt on January 25, 2012, 03:22:25 PM
sorry not Google voice but another sip provider ( voip.ms)

I just checked the VoIP.ms dialing format and what I posted should work equally well for them.

Quote from: Sunfiregt on January 25, 2012, 03:22:25 PM
Also how are inbound calls handled on the pstn

By default, inbound calls from all trunks (SP1/SP2/OBiTALK/LINE) ring the PHONE Port.

Sunfiregt

awesome.. i guess my next thing to do is order one... This is great

jalapeno19104

I think the correct digit map is the following, otherwise I could not get [2-9]11 to work via the LINE port:

(<**8>[2-9]11|1xxxxxxxxxx|<1>[2-9]xxxxxxxxx|<**8>[2-9]xxxxxx| <**8>(18(00|88|77|66|55)xxxxxxx|<1>8(00|88|77|66|55)xxxxxxx)|011xx.|(Mipd)|[^*#]@@.'@'@@.)

RonR

If you want [2-9]11 redirected to the LINE Port, that's what you need.

Felix

Ron's DigitMap assumes that "local" == "7-digits". In more and more places this is not the case. In fact, in Los Angeles (at least in 310 and 818 area codes) for PSTN calls you *have* to dial 11 digits. And which one is free and which one is not you typically don't know until you get a bill...

So, you may as well have voip.ms on SP1, Google Voice on SP2, and Line for 911 calls. I realize, there are some caller ID considerations - neither solution is perfect!

TimDan

Quote from: Felix on January 26, 2012, 08:52:45 PM
... In fact, in Los Angeles (at least in 310 and 818 area codes) for PSTN calls you *have* to dial 11 digits.

To illucidate the fortunate rest of the country, area codes here in L.A. County
simply ran out of 7-digit telephone nos.  Area code 310 (Westside of L.A.) and
818 (San Fernando Valley) now have area codes 424 and 747 laid over them,
respectively, so that a single household can have 2 area codes, possibly having
the same last 7 digits.  And calling the other phone line in the same household,
even if they have the same area code, involves dialing 11 digits - as if it were
a long distance call.

TimDan

Sunfiregt

Can i use Google voice as well but dial a special number to use it?

Sunfiregt

Isn't this telling toll free numbers to go through your voip provider instead of line port?


Quote from: RonR on January 25, 2012, 12:19:09 PM
911 calls are routed to the the LINE Port (PSTN line) by default.

Assuming you have Google Voice configured on SP1:


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

(1xxxxxxxxxx|<1>[2-9]xxxxxxxxx|<**8>[2-9]xxxxxx|
<**8>(18(00|88|77|66|55)xxxxxxx|<1>8(00|88|77|66|55)xxxxxxx)|011xx.|(Mipd)|[^*#]@@.'@'@@.)


Physical Interfaces -> PHONE Port -> PrimaryLine -> SP1 Service


Physical Interfaces -> LINE Port -> DigitMap : ([2-9]11|[2-9]xxxxxx|1xxxxxxxxxx)


           911  ->  LINE Port
      7 digits  ->  LINE Port
     Toll Free  ->  LINE Port
10/11 digits  ->  SP1 Service
         011+  ->  SP1 Service


RonR

Quote from: Sunfiregt on January 31, 2012, 05:01:24 PM
Isn't this telling toll free numbers to go through your voip provider instead of line port?

The **8 that's added to the beginning of 7-digit and toll free numbers redirects them to the LINE Port.

Sunfiregt

When I type this :
Quote from: RonR on January 25, 2012, 12:19:09 PM

(1xxxxxxxxxx|<1>[2-9]xxxxxxxxx|<**8>[2-9]xxxxxx|
<**8>(18(00|88|77|66|55)xxxxxxx|<1>8(00|88|77|66|55)xxxxxxx)|011xx.|(Mipd)|[^*#]@@.'@'@@.)


It defaults to this after reboot

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

RonR

If you're making changes to the OBi directly, you must also set:

System Management -> Auto Provisioning -> ITSP Provisioning -> Method : Disabled
System Management -> Auto Provisioning -> OBiTALK Provisioning -> Method : Disabled

or the OBiTALK Web Portal will overwrite your changes.

Sunfiregt

Which one am i supposed to use to get the 2-9(11) working on pstn line

This one:
(<**8>[2-9]11|1xxxxxxxxxx|<1>[2-9]xxxxxxxxx|<**8>[2-9]xxxxxx| <**8>(18(00|88|77|66|55)xxxxxxx|<1>8(00|88|77|66|55)xxxxxxx)|011xx.|(Mipd)|[^*#]@@.'@'@@.)

Or this one:

(1xxxxxxxxxx|<1>[2-9]xxxxxxxxx|<**8>[2-9]xxxxxx|
<**8>(18(00|88|77|66|55)xxxxxxx|<1>8(00|88|77|66|55)xxxxxxx)|011xx.|(Mipd)|[^*#]@@.'@'@@.)


RonR

The first one will divert [2-9]11 calls to the LINE Port.

JHamCell

Quote from: Sunfiregt on February 01, 2012, 11:44:16 AM

(<**8>[2-9]11|1xxxxxxxxxx|<1>[2-9]xxxxxxxxx|<**8>[2-9]xxxxxx| <**8>(18(00|88|77|66|55)xxxxxxx|<1>8(00|88|77|66|55)xxxxxxx)|011xx.|(Mipd)|[^*#]@@.'@'@@.)


I consider myself to be a smart & technical guy, but this stuff is blowing my mind!

Please help me interpret what I am seeing.
<nnn> is a prefix to be added if the pattern that follows matches.
<**8> is the prefix that somewhere later says, send this to PSTN.

If <**n> is not specified, I assume that means nothing explicitly specified so route the call to the "default" PrimaryLine.

<**8>[2-9]11   - Matches if [2-9]11 is dialed. Prefixes the number with **8 (to force PSTN).

The pipe "|" means "or" (like || in ksh or awk).

1xxxxxxxxxx   - Matches an 11 digit number starting with a  1. No ** prefix so off to PrimaryLine it goes.

<1>[2-9]xxxxxxxxx   - Matches 10 digit number starting with [2-9] (Area Code) and add the "long distance" 1.  No ** prefix so off to PrimaryLine it goes.

<**8>[2-9]xxxxxx   - Matches 7 digit "local" number, Prefixes the number with **8 (to force PSTN).

<**8>(18(00|88|77|66|55)xxxxxxx|<1>8(00|88|77|66|55)xxxxxxx) - Covers all the "free" phone numbers and prefixes the number with **8 (to force PSTN).

011xx.   - For International dialing, No prefix so off to PrimaryLine it goes.
I assume this would work to route international via SP1?:  <**1>011xx.

(Mipd)|[^*#]@@.'@'@@.)   - Is this condition for something more than just number pattern matching? 
No clue what the Mipd bit means.
Maybe wilcard@wildcard for some kind of IP telephony address?

Living in Metro Atlanta we have 10-digit dialing for 404, 770 & 678 area codes.  All other domestic LD area codes require a 1 prefix (inter & intra state).

When a pattern is matched, does it stop searching?
So if I insert the "<**8>(404|770|678)xxxxxxx" test before "<1>[2-9]xxxxxxxxx" will it route my 10 digit local numbers (404/770/678) to PSTN?

If so, I'm thinking my digit map would look something like this, note I am explicitly routing everything and not relying on the PrimaryLine to be set to anything in particular:

(<**8>[2-9]11|<**8>(404|770|678)xxxxxxx|<**1>1xxxxxxxxxx|<**11>[2-9]xxxxxxxxx|<**8>(18(00|88|77|66|55)xxxxxxx|<**81>8(00|88|77|66|55)xxxxxxx)|<**1>011xx.|(Mipd)|[^*#]@@.'@'@@.)

Am I close or am I as lost as I feel? (If I am close then writing it all down has clarified some of it in my mind).

I appreciate the time of ANYONE that wants to wade through this with me :)

Many Thanks In Advance.

JHam

RonR

#17
You'll find an explanation of DigitMap syntax and a description of the Digit Map Processor in the OBi Device Administration Guide.

Quote from: JHamCell on February 06, 2012, 08:13:55 PM
(Mipd)|[^*#]@@.'@'@@.)   - Is this condition for something more than just number pattern matching?  

ipd is a User Defined DigitMap for handling IP Dialing:

18005551212*76*10*223*207  ->  18005551212@sip.tollfreegateway.com

[^*#]@@.'@'@@. is a rule to allow SIP URI's in Speed Dials:

18005551212@sip.tollfreegateway.com

Quote from: JHamCell on February 06, 2012, 08:13:55 PM
When a pattern is matched, does it stop searching?

No.  When everything has been evaluated, the best match is chosen.

Quote from: JHamCell on February 06, 2012, 08:13:55 PM
So if I insert the "<**8>(404|770|678)xxxxxxx" test before "<1>[2-9]xxxxxxxxx" will it route my 10 digit local numbers (404/770/678) to PSTN?

Yes, because it's a better match, not because of its position.

Quote from: JHamCell on February 06, 2012, 08:13:55 PM
If so, I'm thinking my digit map would look something like this, note I am explicitly routing everything and not relying on the PrimaryLine to be set to anything in particular:

(<**8>[2-9]11|<**8>(404|770|678)xxxxxxx|<**1>1xxxxxxxxxx|<**11>[2-9]xxxxxxxxx|<**8>(18(00|88|77|66|55)xxxxxxx|<**81>8(00|88|77|66|55)xxxxxxx)|<**1>011xx.|(Mipd)|[^*#]@@.'@'@@.)

You're only making it unnecessarily complex as this set of rules would normally reside at the PrimaryLine's DigitMap.

infin8loop

Quote from: JHamCell on February 06, 2012, 08:13:55 PM
I consider myself to be a smart & technical guy, but this stuff is blowing my mind!

The OBi is like learning to ride a bike.

If the bike is designed like this...


"This has not only been fun, it's been a major expense." - Gallagher

Wilbour

Quote from: Sunfiregt on January 25, 2012, 12:06:21 PM
Hi,

Can someone tell me how I would setup my OBI110 to allow all local / 911 / Toll free calls to route through PSTN and all long distance to route through the obi device automatically. I don't want to dial 9 or and special combination on my phone.. I want this to be seemless to the end user.

Thanks

This is exactly what I wish to do exept all local calls require 10 digit dialing. In order to keep it as simple as possible I would not want to have OBI prefill my area code on local dialing since we are so accustom to using all 10 digits. Therefore I would require the following:

911 PSTN
10 DIGIT PSTN
800 # PSTN
11 DIGIT GOOGLE VOICE