Quote from: willmw on March 20, 2014, 04:58:11 PM
Thanks for this. I'd love to gain a better understanding of how to figure these types of things out myself, is there a definitive guide to the syntax, etc. of such?
Not that I know. You have to learn it by playing.
I'll explain what I did here.
OBI202
The Phone Port DigitMap validates the dialed number. I didn't know how your DigitMap was defined, so I added a test for 11, 10 and 7 digit dialed numbers to the beginning of your DigitMap.
1xxxxxxxxxx|xxxxxxxxxx|xxxxxxx|
The OutboundCallRoute will check for a dialed string and on a match will route the dialed number to a destination. This is the format:
{dialed_string:destination}
PP is the OBiTalk network.
When you send a number to OBiTalk it must be in this format:
Destination Obi as OB200111111
Followed by a *
Followed by the dialed number
Like this:
ob200111111*18005551212
(1xxxxxxxxxx|xxxxxxxxxx|xxxxxx):pp
The above will check for 11, 10 or 7 digit number and send it to OBiTalk
(<ob200111111*>(1xxxxxxxxxx|xxxxxxxxxx|xxxxxx)):pp
The above will prefix any of the patterns enclosed in parentheses with ob200111111* before sending the number to OBiTalk.
If I didn't enclose the patterns with parentheses like this:
(<ob200111111*>1xxxxxxxxxx|xxxxxxxxxx|xxxxxx):pp
Only 11 digit numbers will be prefixed with ob200111111*
OBI110
InboundCallRoute format when bridging a call:
{userid>DialedNumber:destination}
When a call is coming from OBiTalk the userid is the originating OBi number.
{200222222>(1xxxxxxxxxx|xxxxxxxxxx|xxxxxxx):li}
You are checking if the call is coming from the OBi202 and the dialed number is 11, 10 or 7 digits. When there is a match the number is routed out the Line port.
Hope This helps.