October 15, 2019, 10:25:58 pm *
Welcome, Guest. Please login or register.
News:
 
   Forum Home   Search Login Register OBiTALK  
Pages: [1]
  Print  
Author Topic: Setting up obi110 to forward all PSTN calls to obi202  (Read 3208 times)
augustin7725
Newbie
*
Posts: 5


« 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
Logged
ianobi
Hero Member & Beta Tester
*****
Posts: 1831


« Reply #1 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}

Logged
augustin7725
Newbie
*
Posts: 5


« Reply #2 on: April 21, 2013, 06:20:06 am »

Impressive!!! it works, now I have 2 nights of sleep to make up for  Wink


thanks
Augustin
Logged
willmw
Newbie
*
Posts: 14


« Reply #3 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?
Logged
azrobert
Hero Member & Beta Tester
*****
Posts: 3920


« Reply #4 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.
Logged
willmw
Newbie
*
Posts: 14


« Reply #5 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?
Logged
drgeoff
Hero Member & Beta Tester
*****
Posts: 4427


« Reply #6 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 ....  Sad
Logged
azrobert
Hero Member & Beta Tester
*****
Posts: 3920


« Reply #7 on: March 20, 2014, 06:22:38 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.

Logged
willmw
Newbie
*
Posts: 14


« Reply #8 on: March 21, 2014, 11:48:01 am »

Thanks for the replies.  Azrobert, especially appreciate your taking the time to type out that explanation.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC