OBiTALK Community

General Support => Installation and Set-Up (Devices) => Topic started by: jpc82 on February 07, 2015, 06:42:29 PM

Title: Help setting up outbound routing based on number
Post by: jpc82 on February 07, 2015, 06:42:29 PM
Hi, I currently have my Obi202 setup as

SP1: Voip.ms Premium
SP2: Voip.ms Value

SP1 is the default for PH1 and SP2 is the default for PH2.  So far this is working fine.  However, I was wanting to set it up so that I can list some (~10) numbers that when dialed from PH1 it would use SP2.  I am not sure what I need to do to get this working.  I have been trying to read up on outbound routing but am still confused on what I would need to do.

Any help would be appreciated.
Title: Re: Help setting up outbound routing based on number
Post by: azrobert on February 07, 2015, 07:02:53 PM
Define a User Defined DigitMap with all the numbers you want to route to SP2.

User Settings -> User Defined Digit Maps -> Pick any User Map number
Label: ud1
DigitMap: (12223334444|12223334445|12223334446|12223334447)

Then
Physical Interfaces -> Phone Port 1
Add to the beginning of the OutboundCallRoute:
{(Mud1):sp2},

Use OBi Expert to make the changes.
Title: Re: Help setting up outbound routing based on number
Post by: jpc82 on February 07, 2015, 07:43:53 PM
Thank you very much.  Got it working.  I sort of understood what needed to be done but with your example in finally made sense.
Title: Re: Help setting up outbound routing based on number
Post by: 202Owner on February 08, 2015, 12:00:49 PM
Note that prepending 033- or 044- will force VoIP.ms to use Value or Premium routing, respectively.  Using these prefixes would allow setting the SP1 and SP2 accounts to a preferred default routing.  And would allow keeping PH1 and PH2 outbound routed to their respective SP1 and SP2 accounts for separate CDR reporting (if that matters).

OBi Speed Dials such as SP1(033-1-xxx-xxx-xxxx) would not require dial plan support if the trunk is specified.

For dial plan support, the VoIP.ms digit map (Msp1) = (Msp2) could look something like this:

|(<>|033|044)(...)|  ;default or Value or Premium local/long-distance dialing.

|(<00:011>|011|033|044)xx.|  ;default or Value or Premium International dialing.

Using these prefixes may or may not suit your needs, but they can avoid dedicating PHONE port use by rate.  Any phone can be used to call any number using either Value or Premium routing.