Dial plan explanation
azrobert:
Quote from: lifeisfun on October 25, 2013, 02:53:43 am
I like to have one main provider that will be used by default when I pick up the phone, and by dialing #1 (#2 #3) it would route the call to provider 2 3 4. On any choice of provider I like to be able to dial any digit/*/# combination.
# is an OBi reserved character and has a special function. It indicates end of string and any digits dialed BEFORE the # will be immediately processed by the OBi. However the OBi will allow the 1st character dialed to be a #, so you can accomplish most of what you want.
x on a DigitMap indicates a single digit. Upper case X indicates a digit or asterisk. Placing a period after the x indicates zero or more occurrences.
You did not specify any requirement on length of the dialed string, so this example is crude.
In the Phone Port DigitMap place the following AFTER the beginning parenthesis:
#[123]XX.|
Place the following at the beginning of the Phone Port OutboundCallRoute:
{(<#1:>XX.:sp2},{(<#2:>XX.:sp3},{(<#3:>XX.:sp4},
The above will allow 1 or more digits/asterisks to be routed out your trunks.
You are specifying an unlimited length string when using XX., so the OBi will wait up to 10 seconds after you stop dialing for additional digits. You can dial a # after the last digit to eliminate the pause.
If you want to send the string with a trailing # do this:
{(<#1:>XX.<#>:sp2}
azrobert:
Quote from: affled on September 13, 2013, 09:17:10 pm
I've got a question about automatically injecting a Star Code into a dialed number and have the commands in the corresponding Star Code apply to that call. Is it possible using DigitMap in the Phone port or DigitMap in the ITSP profile?
my original post is here: http://www.obitalk.com/forum/index.php?topic=6625.0
Thanks in advance.
I got it to work by adding a Star Code entry like this:
1623(<1623>xxxxxxx), Modem Call, set($Noji1,200),set($Noec1,1),set($Cdm1,3), call($Code)
Then I dialed 16231234567
There is a disagreement on this forum on the sequence of events after dialing a Star Code.
I believe the Phone Port DigitMap gets control first. If the DigitMap gets a match it passes control directly to the OutboundCallRoute, bypassing the Star Code profile. The dialed string must FAIL in the Phone Port DigitMap before the Star Code profile gets control, therefore you MUST REMOVE any rule in the DigitMap that will match the dialed string.
lifeisfun:
Quote from: azrobert on October 25, 2013, 04:08:11 pm
Quote from: lifeisfun on October 25, 2013, 02:53:43 am
I like to have one main provider that will be used by default when I pick up the phone, and by dialing #1 (#2 #3) it would route the call to provider 2 3 4. On any choice of provider I like to be able to dial any digit/*/# combination.
# is an OBi reserved character and has a special function. It indicates end of string and any digits dialed BEFORE the # will be immediately processed by the OBi. However the OBi will allow the 1st character dialed to be a #, so you can accomplish most of what you want.
x on a DigitMap indicates a single digit. Upper case X indicates a digit or asterisk. Placing a period after the x indicates zero or more occurrences.
You did not specify any requirement on length of the dialed string, so this example is crude.
In the Phone Port DigitMap place the following AFTER the beginning parenthesis:
#[123]XX.|
Place the following at the beginning of the Phone Port OutboundCallRoute:
{(<#1:>XX.:sp2},{(<#2:>XX.:sp3},{(<#3:>XX.:sp4},
The above will allow 1 or more digits/asterisks to be routed out your trunks.
You are specifying an unlimited length string when using XX., so the OBi will wait up to 10 seconds after you stop dialing for additional digits. You can dial a # after the last digit to eliminate the pause.
If you want to send the string with a trailing # do this:
{(<#1:>XX.<#>:sp2}
Thanks for the detailed explanation and help!
I'll try that, and most likely will ask for help if I'm in trouble again :)
Quote from: Shale on October 25, 2013, 07:14:48 am
Quote from: lifeisfun on October 25, 2013, 02:53:43 am
Just purchased obi200 but the configuration is so different from Sipura I would need some help.
I like to have one main provider that will be used by default when I pick up the phone, and by dialing #1 (#2 #3) it would route the call to provider 2 3 4. On any choice of provider I like to be able to dial any digit/*/# combination.
Already built in is that to call 9876543210 on provider 2, you can dial **29876543210. If you dial just 9876543210, it goes via the provider you had set as the default.
Thanks
Shale:
Quote from: lifeisfun on October 26, 2013, 04:53:42 am
I presume that sp1 is set as default line, just out of curiosity where do you change that? I didn't find that option.
If using OBiTalk, in the setup for SP1, there is a box to tick: Primary Line for Outgoing Calls. With my OBi202, each SP has 2 boxes to tick or not, because there are two phone ports.
affled:
Quote from: azrobert on October 25, 2013, 05:58:53 pm
Quote from: affled on September 13, 2013, 09:17:10 pm
I've got a question about automatically injecting a Star Code into a dialed number and have the commands in the corresponding Star Code apply to that call. Is it possible using DigitMap in the Phone port or DigitMap in the ITSP profile?
my original post is here: http://www.obitalk.com/forum/index.php?topic=6625.0
Thanks in advance.
I got it to work by adding a Star Code entry like this:
Thank you, I hope to give that a try
1623(<1623>xxxxxxx), Modem Call, set($Noji1,200),set($Noec1,1),set($Cdm1,3), call($Code)
Then I dialed 16231234567
There is a disagreement on this forum on the sequence of events after dialing a Star Code.
I believe the Phone Port DigitMap gets control first. If the DigitMap gets a match it passes control directly to the OutboundCallRoute, bypassing the Star Code profile. The dialed string must FAIL in the Phone Port DigitMap before the Star Code profile gets control, therefore you MUST REMOVE any rule in the DigitMap that will match the dialed string.
Navigation
[0] Message Index
[#] Next page
[*] Previous page