News:

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

Main Menu

add prefix to all calls?

Started by Omelas, March 31, 2014, 11:28:03 AM

Previous topic - Next topic

Omelas


One of the service providers I am testing to replace google voice suggested dialing a 5 char prefix (consisting of a * and 4 numbers) in front of each call in order to get better routing.

So, my question is, can I easily configure my obi to dial, for example, *1234, in front of every number I key in from my phone?

Thanks!

azrobert

#1
How are you dialing when routing calls to the test provider?

Are you dialing **218005551212

Edit:
This is the default Phone Port OutboundCallRoute for an OBi110:
{([1-9]x?*(Mpli)):pp},{(<#:>|911):li},{**0:aa},{***:aa2},{(<**1:>(Msp1)):sp1},{(<**2:>(Msp2)):sp2},{(<**8:>(Mli)):li},{(<**9:>(Mpp)):pp},{(Mpli):pli}

If you are dialing **2.....  do this:
{([1-9]x?*(Mpli)):pp},{(<#:>|911):li},{**0:aa},{***:aa2},{(<**1:>(Msp1)):sp1},{(<**2:*1234>(Msp2)):sp2},{(<**8:>(Mli)):li},{(<**9:>(Mpp)):pp},{(Mpli):pli}

Do this if you want to add the prefix to your Primary Route:
{([1-9]x?*(Mpli)):pp},{(<#:>|911):li},{**0:aa},{***:aa2},{(<**1:>(Msp1)):sp1},{(<**2:>(Msp2)):sp2},{(<**8:>(Mli)):li},{(<**9:>(Mpp)):pp},{<*1234>(Mpli):pli}


Omelas

Thanks - I will try it out.  At the moment I have sp2 set as the default for all calls - I also have 911 set to dial the 7 digit for the 911 center.  So, this is what my setup will look like, and I assume it will add the *1234 to which ever sp I have as the default.  Obviously I will want to take it back out if I got back to sp1 as the default.

{(<911:18450000000>):sp1},{(<#:>):li},{([1-9]x?*(Mpli)):pp},{**0:aa},{***:aa2},{(<**1:>(Msp1)):sp1},{(<**2:>(Msp2)):sp2},{(<**9:>(Mpp)):pp},{<*1234>(Mpli):pli}(Mpli):pli}

Omelas

This config works great for **2
{(<911:18005551212>):sp1},{(<#:>):li},{([1-9]x?*(Mpli)):pp},{**0:aa},{***:aa2},{(<**1:>(Msp1)):sp1},{(<**2:*1234>(Msp2)):sp2},{(<**9:>(Mpp)):pp},{(Mpli):pli}

For the default, I had to tweak your config just a bit.
{(<911:18005551212>):sp1},{(<#:>):li},{([1-9]x?*(Mpli)):pp},{**0:aa},{***:aa2},{(<**1:>(Msp1)):sp1},{(<**2:>(Msp2)):sp2},{(<**9:>(Mpp)):pp},{(<:*1234>(Mpli)):pli}

I kept getting "no route available" - adding the parens to your suggestion did the trick.  I also added the colon, but the parens were the last thing I added, so I don't know if the colon is needed. 

Thanks!

azrobert

Sorry about the parens.

The colon is optional when you are only adding characters.