OBiTALK Community

General Support => Installation and Set-Up (Devices) => Topic started by: augustin7725 on April 20, 2013, 05:37:19 PM

Title: Setting up obi110 to forward all PSTN calls to obi202
Post by: augustin7725 on April 20, 2013, 05:37:19 PM
Hi all I need some assistance for setting up my obi110 to forward all incoming calls on the PSTN port to my obi202.

I have 2 - obi110 each connected to a dedicated PSTN phone line and 1 - obi202 adaptor.

my ideal situation is for the obi110 #1 to call phone port #1 of the obi202 and obi110 #2 to call phone port #2 of the obi202. Auto Attendant function not required, all incoming calls must be forwarded.

thanks,
Augustin
Title: Re: Setting up obi110 to forward all PSTN calls to obi202
Post by: ianobi on April 21, 2013, 04:38:17 AM
Make the following changes:

OBi110 #1 (200111111) & OBi110 #2 (200222222)

Physical Interfaces > LINE Port > InboundCallRoute:
{ph,pp(ob500123456)}

This will ring the local OBi110 phone and fork the call to the OBi202. Whichever answers first will connect to the incoming call. If you do not wish to ring the OBi110 phone then use:
{pp(ob500123456)}


OBi202 (500123456)

Voice Services > OBiTALK Service > InboundCallRoute:
{(200111111):ph},{(200222222):ph2},{ph,ph2}

Title: Re: Setting up obi110 to forward all PSTN calls to obi202
Post by: augustin7725 on April 21, 2013, 06:20:06 AM
Impressive!!! it works, now I have 2 nights of sleep to make up for  ;)


thanks
Augustin
Title: Re: Setting up obi110 to forward all PSTN calls to obi202
Post by: willmw on March 19, 2014, 05:55:01 PM
Same scenario, one step further.  I want to make calls on my obi202 default to go out the PSTN port on the obi110.  How would one accomplish that?
Title: Re: Setting up obi110 to forward all PSTN calls to obi202
Post by: azrobert on March 19, 2014, 08:02:12 PM
OBi110

Voice services -> OBiTalk Service -> InboundCallRoute:
{200222222>(1xxxxxxxxxx|xxxxxxxxxx|xxxxxxx):li},{ph}

OBi202

Physical Interfaces -> Phone Port n

DigitMap:
(1xxxxxxxxxx|xxxxxxxxxx|xxxxxxx|......current rules.........)

OutboundCallRoute:
{(<ob200111111*>(1xxxxxxxxxx|xxxxxxxxxx|xxxxxx)):pp},....current rules.....

200111111 is the OBi number of the OBi110
200222222 is the OBi number of the OBi202
Any 11, 10 or 7 digit number dialed on the OBi202 will be routed out the OBi110's line port.
Title: Re: Setting up obi110 to forward all PSTN calls to obi202
Post by: 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?
Title: Re: Setting up obi110 to forward all PSTN calls to obi202
Post by: drgeoff on March 20, 2014, 05:27:21 PM
The syntax is in the OBi Device Administration Guide (http://obihai.com/docs-downloads) but if you are looking for a good tutorial ....  :(
Title: Re: Setting up obi110 to forward all PSTN calls to obi202
Post by: azrobert on March 20, 2014, 06:22:38 PM
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.

Title: Re: Setting up obi110 to forward all PSTN calls to obi202
Post by: willmw on March 21, 2014, 11:48:01 AM
Thanks for the replies.  Azrobert, especially appreciate your taking the time to type out that explanation.