OBiTALK Community

General Support => Installation and Set-Up (Devices) => Topic started by: acsscott on September 25, 2011, 04:11:29 PM

Title: I can't make the pbxExtension Application work with Obi110's
Post by: acsscott on September 25, 2011, 04:11:29 PM
I contacted sales last week about buying two Obi110's, and using them to connect an ATA on the PBX at work, to a phone at my house.  When the ATA rings, it rings the phone at the house.  When you pick up the phone at the house, it connects it to the ATA at the office.  Same goes if you pick up the phone at the house, it connects to the ATA at the office, and I can press numbers on the keypad to access the PBX.

Sales pointed me to an Obi application at: http://www.obihai.com/pbxExtension.html.  I purchased two Obi110's.  I connected Both Obi110's to the computer.  They both connected fine.  I added both of them to ObiTalk.  They both seemed to work fine.  I ran the pbxextension application, and the Home unit stopped working.  Every key I press on the home units phone, I get a fast busy.  I sent an email back to sales saying that something is wrong, but haven't heard back.

So, I decided to do more investigation this weekend.

(2) Obi110 Office to Home Bridge project:
Home 200xxxxx4  Numbers x'd out here and below to protect phone number
Office 200xxxxx7  Numbers x'd out here and below to protect phone number


Before running the application @ http://www.obihai.com/pbxExtension.html:
Both units light up.  I can dial **9222222222, and get the talk back.  I can call each unit from the other, and it rings the phone on the other end.  I don't know how to connect to the line on what would be the office end, from the home end.

After running the application @ http://www.obihai.com/pbxExtension.html:

On the OBi110 for home, if any button is pressed when you pick up the phone, you get the fast busy.  You can't even dial **9222222222.  As soon as the 9 is pressed, you get the fast busy.
The application above seems to change two values in the Obi110 for home.
Physical Interface:PhonePort:DigitMap, it changes to : (%5B1-9%5D%7C%5B1-9%5D%5B0-9%5D%7C911%7C**0%7C***%7C%23%7C(Mpli)%7C**1(Msp1)%7C**2(Msp2)%7C**9(Mpp))
Physical Interface:PhonePort:OutboundCallRoute, it changes to : %7B(%3C%23:ob200xxxxx7%3E):pp%7D,%7B**0:aa%7D,%7B***:aa2%7D,%7B(Mpli):pli%7D,%7B(%3C**1:%3E(Msp1)):sp1%7D,%7B(%3C**2:%3E(Msp2)):sp2%7D,%7B(%3C**9:%3E(Mpp)):pp%7D
If I default both of these, the home unit can dial **9222222222 or the other office Obi110, and it works without the fast busy.

On the Obi110 for the office, it seems to work pretty much as normal.

So, what am I doing wrong, or what is the pbxextension application doing wrong?

Scott
Title: Re: I can't make the pbxExtension Application work with Obi110's
Post by: acsscott on September 25, 2011, 04:39:49 PM
Update:

Making headway.  It hit me like a done of bricks when I was reading my post.  The pbxExtension application was sending the html characters to the Home Obi110 as ASCII heax values.  So, I converted:

Physical Interface:PhonePort:DigitMap to:
([1-9]|[1-9][0-9]|911|**0|***|#|(Mpli)|**1(Msp1)|**2(Msp2)|**9(Mpp))

&

Physical Interface:PhonePort:OutboundCallRoute to:
{(<#:ob200xxxxx7>):pp},{**0:aa},{***:aa2},{(Mpli):pli},{(<**1:>(Msp1)):sp1},{(<**2:>(Msp2)):sp2},{(<**9:>(Mpp)):pp}

I submited/saved, rebooted, and now the Obi110 at home will let me dial the **9222222222.  The echo back now works.  When I try and dial a land line phone #, I get the three tones, then it says there is no service available to make my call.
So, it appears that the Home Obi110 might be connecting to the office Obi110, but says there is no service to make the call on, even though the office Obi110 has the phone line connected to it.  Maybe it isn't connecting to the Office Obi110.  I don't see any LED's change on the Office Obi110.
Title: Re: I can't make the pbxExtension Application work with Obi110's
Post by: RonR on September 25, 2011, 04:57:47 PM
Are you connecting the office OBi to a PBX extension port (a line intended to be connected to a regular telephone)?  If so, the PBX extension line will have to be connected to the LINE Port on the OBi.

Are you sure you have OBi110's (with a LINE Port) and not OBi100's?  I ask because I don't see any LINE Port rules in what you posted:

DigitMap : ...|**8(Mli)|...

OutboundCallRoute : ...,{(<**8:>(Mli)):li},...
Title: Re: I can't make the pbxExtension Application work with Obi110's
Post by: acsscott on September 25, 2011, 05:01:22 PM
More Progress:

I remembered the last time I ran the PbxExtension application, I didn't click the checkbox "Make the Home OBi a hot line to the Office OBi. When you pick up the phone at the Home OBi you will be automatically connected to the office. You do not need to press #.".  So I ran it again, and converted the html ASCII hex.  It changed the DigitMap to:
(<S0:#>|[1-9]|[1-9][0-9]|911|**0|***|#|(Mpli)|**1(Msp1)|**2(Msp2)|**9(Mpp))

Now it rings the office Obi110.  The Office's Obi attendent answers.  Says press 1, 2, or 3.  I press 1, and it starts ringing again.  While it is ringing, it doesn't connect to the Office ATA(Line Connector), but is flashing the Phone LED on the Office Obi110, like it would be ringing a phone(Phone Connector) if it was attached.

What do I change in the strings to make the Office Obi110 connect to the Line(ATA), rather than ring the phone connector that has nothing connected?  Do I need to change the office Obi110 to route inbound calls to the line connector, rather than the phone connector?


Title: Re: I can't make the pbxExtension Application work with Obi110's
Post by: acsscott on September 25, 2011, 05:04:39 PM
RonR,

Yes, I have Obi110's on both ends.

I wish I knew the syntax of the Obi Rules.  Is it documented somewhere?

Scott
Title: Re: I can't make the pbxExtension Application work with Obi110's
Post by: acsscott on September 25, 2011, 05:11:41 PM
RonR,

Sorry.  Yes the ATA on our pbx has a cordless phone and the Obi110 on it. 

More info:
I just called the office.  Both the Phone & Line LED's on the office obi110 were flashing when it was ringing, but the Home Obi110 never flashed the LED's, or made the phone attached to it ring.
Title: Re: I can't make the pbxExtension Application work with Obi110's
Post by: RonR on September 25, 2011, 05:24:12 PM
I don't know how or where an ATA at the office comes into this picture.  If you're wanting to remote a PBX extension to your home using two OBi's, you'd connect the PBX extension port (FXS) to the LINE Port (FXO) of the office OBi.


Start both OBi's at factory defaults and configure them as follows:


OBi #1 (Home):

Physical Interfaces -> PHONE Port -> DigitMap:

([1-9]x?*(Mpli)|[1-9]|[1-9][0-9]|911|**0|***|#|**1(Msp1)|**2(Msp2)|**8(Mli)|**9(Mpp)|<2*>xx.)

Physical Interfaces -> PHONE Port -> OutboundCallRoute:

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

User Settings -> Speed Dials -> 2 : PP(ob200123456)

where 200123456 is the OBiTALK Number of OBi #2.


OBi #2 (Office):

Voice Services -> OBiTALK Service -> InboundCallRoute: {200654321>(xx.):li},{200654321:aa},{ph}

Physical Interfaces -> LINE Port -> InboundCallRoute : {pp(ob200654321)}

where 200654321 is the OBiTALK Number of OBi #1.


Calls placed on the Home phone (OBi #1 PHONE Port) should dial through the Office PBX extension (OBi #2 LINE Port).

Calls to the Office PBX extension (OBi #2 LINE Port) should ring the Home phone (OBi #1 PHONE Port).


OBi Device Administration Guide (http://www.obihai.com/docs/OBiDeviceAdminGuide.pdf)
Title: Re: I can't make the pbxExtension Application work with Obi110's
Post by: acsscott on September 25, 2011, 05:50:41 PM
Thanks for all the help.

Ok,  I can get everything entered but:
Physical Interfaces -> LINE Port -> InboundCallRoute : {pp(ob200654321)}

I put this in with my units #.  Hit submit, hit reboot.  It reboots, my number is there, then it resets again, and it is back to "ph"
Title: Re: I can't make the pbxExtension Application work with Obi110's
Post by: RonR on September 25, 2011, 05:54:30 PM
If you're configuring the OBi's directly (as opposed to through the OBiTALK Web Portal), you must disable Auto Provisioning in the OBi's or the OBiTALK Web Portal will keep reconfiguring them to all of its settings:

System Management -> Auto Provisioning -> ITSP Auto Provisioning -> Method : Disabled
Title: Re: I can't make the pbxExtension Application work with Obi110's
Post by: acsscott on September 25, 2011, 06:11:49 PM
Thank you for all your time.  We are getting very close.

I can call out from the home to the office no problem.  It grabs the pbx, and I can dial out.

When the office line is ringing, after about 4 rings, it answers and gives the obi attendent -> 1 to continue the call, 2, 3.  How do I make it do #1 automatically, so it just go's through and rings the phone connected to the phone connector at home.

Thanks again for all your help.

Scott
Title: Re: I can't make the pbxExtension Application work with Obi110's
Post by: RonR on September 25, 2011, 06:18:54 PM
The Home phone OBi nneds to have the following Default setting:

Voice Services -> OBiTALK Service -> InboundCallRoute : ph

You were supposed to start both OBi's at factory defaults, but if you didn't disable Auto Provisioning before they had access to the Internet and rebooted, the OBiTALK Web Portal could have overwritten a bunch of your settings.

I would recommend you check all pages in both OBi's and make sure everything is at Default except the the changes I outlined.
Title: Re: I can't make the pbxExtension Application work with Obi110's
Post by: acsscott on September 25, 2011, 06:21:14 PM
RonR,

Is Physical Interfaces -> LINE Port -> RingDelay that amount of time in msec that the Obi110 at the office waits before answering(off hook) the ring on the LINE connector? 

If so, I believe I could increase this to more than 4000, to give the office time to answer the phone before it forwards it to the Home Obi110.
Title: Re: I can't make the pbxExtension Application work with Obi110's
Post by: RonR on September 25, 2011, 06:25:11 PM
No.  Leave RingDelay alone.  It doesn't do what you're thinking.

Your problem should be in the Home phone OBi OBiTALK Service InboundCallRoute being set to aa instead of ph.
Title: Re: I can't make the pbxExtension Application work with Obi110's
Post by: acsscott on September 25, 2011, 06:31:27 PM
aa makes the Obi Attendent come up asking 1, 2, 3.  I just want it to go through after like six rings.
Title: Re: I can't make the pbxExtension Application work with Obi110's
Post by: RonR on September 25, 2011, 06:36:54 PM
In OBi #1 (Home), set:

Voice Services -> OBiTALK Service -> InboundCallRoute : ph

It should already be there if you started the OBi out at factory defaults.  That causes all calls coming in from the OBiTALK Service (which is what we're using to relay the call) to go to the PHONE Port.

Since incoming calls are going to the Auto Attendant, it probably got set to something containing an aa rule by the OBiTALK Web Portal before you got Auto Provisioning disabled.

Title: Re: I can't make the pbxExtension Application work with Obi110's
Post by: acsscott on September 25, 2011, 06:39:44 PM
OK, I'll put that back to ph.

How do I adjust on the office Obi, how many rings it sees before it takes the line off hook, and forwards it to home Obi?

Thanks,
Title: Re: I can't make the pbxExtension Application work with Obi110's
Post by: RonR on September 25, 2011, 06:41:59 PM
The office OBi starts ringing the home OBi immediately without going off-hook.  It will only go off-hook if someone ansers the home phone.
Title: Re: I can't make the pbxExtension Application work with Obi110's
Post by: acsscott on September 25, 2011, 06:51:40 PM
That's perfect.  It didn't seem like it was working that way.  It seemed like the office going off hook right away.  It might have been a delay over the internet making it look that way.  I'll check it again tomorrow.

Thanks for all your help.  I should have used the forum to set this up rather than the pbxextension app.  It would have saved me a lot of time figuring out what was going on.

I'll have to read the guide to learn more.  It's a little more complicated than the stick figure cartoon on the webpage, but because of its complexity it can do almost anything.

Scott
Title: Re: I can't make the pbxExtension Application work with Obi110's
Post by: RonR on September 25, 2011, 07:07:30 PM
I just replicated your lash-up here and verified that the LINE Port does not go off-hook until the other OBi answers.

The OBiTALK Service that Obihai provides which is being used to relay the calls from one OBi to the other has been very flaky for at least a week and continues to be so at the moment.  I'm also getting long delays like you were probably experiencing.  When the OBiTALK Service is running properly, it's a pretty quick and smooth transition from one OBi to another.  Unfortunately, Obihai hasn't been communicating with us on numerous problems like this for some time now, so it's hard to tell if/when this and other problems might be corrected.
Title: Re: I can't make the pbxExtension Application work with Obi110's
Post by: acsscott on September 27, 2011, 12:22:12 PM
RonR,

A couple of issues with the home to office pbx bridge.

When the ATA on the Norstar DR5 rings, it rings about 6 seconds later on the phone connectd to the home Obi.  You were correct that it does not take the office Obi off hook until you take the phone connected to the home obi off hook.  This direction seems to work pretty good.

If I pick up the phone on the home Obi, I can't get it to connect to the office obi until I dial a 7 or 10 digit number.  When the ATA connected to the Norstar sees the 7 digit number, it drops the line(Hangs up).

The ATA connected to the office Obi wants commands like:
21 (To call station 21)
HOOKFLASH 2 (To place a call on hold, or pickup a call on hold)
HOOKFLASH * 6010 (To page )
HOOKFLASH * 6461 (To grab an available external line from the line pool)

How do I to this over the Obi's?

Can I setup Speed Dials, and then just do a speed dial when I pickup the home phone?

Thanks,

Scott
Title: Re: I can't make the pbxExtension Application work with Obi110's
Post by: RonR on September 27, 2011, 12:42:27 PM
Quote from: acsscott on September 27, 2011, 12:22:12 PM
When the ATA on the Norstar DR5 rings, it rings about 6 seconds later on the phone connectd to the home Obi.  You were correct that it does not take the office Obi off hook until you take the phone connected to the home obi off hook.  This direction seems to work pretty good.

Great!

Quote from: acsscott on September 27, 2011, 12:22:12 PM
If I pick up the phone on the home Obi, I can't get it to connect to the office obi until I dial a 7 or 10 digit number.  When the ATA connected to the Norstar sees the 7 digit number, it drops the line(Hangs up).

Are you sure the PHONE Port DigitMap and PHONE Port OutboundCallRoute are configured as I outlined?  One or more digits should be passed to the office OBi unchanged.  You can speed up the dialing process by terminating your dialing with the # key.

Quote from: acsscott on September 27, 2011, 12:22:12 PM
The ATA connected to the office Obi wants commands like:
21 (To call station 21)
HOOKFLASH 2 (To place a call on hold, or pickup a call on hold)
HOOKFLASH * 6010 (To page )
HOOKFLASH * 6461 (To grab an available external line from the line pool)

How do I to this over the Obi's?

You should be able to dial extension 21, but there's no way to pass a Hookflash.  If you need to pass * in addition to digits, we can easily accommodate that:

Physical Interfaces -> PHONE Port -> DigitMap:

([1-9]x?*(Mpli)|[1-9]|[1-9][0-9]|911|**0|***|#|**1(Msp1)|**2(Msp2)|**8(Mli)|**9(Mpp)|<2*>[x*][x*].)

Quote from: acsscott on September 27, 2011, 12:22:12 PM
Can I setup Speed Dials, and then just do a speed dial when I pickup the home phone?

Speed Dials should work.
Title: Re: I can't make the pbxExtension Application work with Obi110's
Post by: acsscott on September 27, 2011, 12:50:45 PM
If I dial 21, or 21#, on the home obi, i just get a fast busy signal.  It only connects through to the office Obi if I dial at least a 7 digit number.  It doesn't even put the 21 or 21# in the call history on the home Obi.

Not having the ability to HOOKFLASH on the office end is going to be very limiting.  No way to send a * code to make it happen?

Scott
Title: Re: I can't make the pbxExtension Application work with Obi110's
Post by: RonR on September 27, 2011, 01:43:01 PM
Quote from: acsscott on September 27, 2011, 12:50:45 PM
If I dial 21, or 21#, on the home obi, i just get a fast busy signal.  It only connects through to the office Obi if I dial at least a 7 digit number.  It doesn't even put the 21 or 21# in the call history on the home Obi.

Oops!  one- or two-digit numbers in the OBi are Speed Dials.  I'd have to do some testing to make sure, but I don't think there's any way around that.  How many extension numbers are you dealing with?  Are they all two digits?  We could come up with some scheme like dialing 921 from home and the OBi would strip the 9.  If you have any thoughts on this, let me know.

Quote from: acsscott on September 27, 2011, 12:50:45 PM
Not having the ability to HOOKFLASH on the office end is going to be very limiting.  No way to send a * code to make it happen?

No, Hookflash can only be initiated from the PHONE Port of the OBi local to the LINE Port (i.e. it cannot be passed or simulated across a bridged connection).
Title: Re: I can't make the pbxExtension Application work with Obi110's
Post by: acsscott on September 27, 2011, 01:58:39 PM
9 dials out.

Could we make it if the number started with 8, and was followed by two digits, strip the 8, and send the two digits?

I've been reading the book, but can't see where to strip/mask digits.
Title: Re: I can't make the pbxExtension Application work with Obi110's
Post by: acsscott on September 27, 2011, 02:09:05 PM
Is it the phone port Digitmap that is causing the Home Obi to speed dial #2, then send out the typed digits after the timeout expires?
|<2*>(xx.)

If so, what makes it pick this out of the entire string of:
([1-9]x?*(Mpli)|[1-9]|[1-9][0-9]|911|**0|***|#|**1(Msp1)|**2(Msp2)|**8(Mli)|**9(Mpp)|<2*>(xx.))

Or does the outbound call route to it, since speed dial #2 has pp(ob200xxxxxx)? 
{([1-9]x?*@@.):pp},{(<#:>|911):li},{**0:aa},{***:aa2},{(<**1:>(Msp1)):sp1},{(<**2:>(Msp2)):sp2},{(<**8:>(Mli)):li},{(<**9:>(Mpp)):pp},{(Mpli):pli}
Title: Re: I can't make the pbxExtension Application work with Obi110's
Post by: RonR on September 27, 2011, 02:50:54 PM
This PHONE Port DigitMap rule:

<2*>(xx.)

matches one or more digits and prepends 2* to the dialed number.

This PHONE Port OutboundCallRoute rule:

{([1-9]x?*@@.):pp}

matches one or two digits followed by an * followed by anything and sends the call to the OBiTALK trunk.  The OBiTALK trunk removes the one or two digits preceding the * (and the * also) and sends the call to the OBiTALK number stored in the Speed Dial addressed by the digit(s) that preceded the *.



BTW, the <2*>(xx.) DigitMap rule can actually be written : <2*>xx.

The parenthesis around the xx. are unnecessary (they're ignored, just superfluous).
Title: Re: I can't make the pbxExtension Application work with Obi110's
Post by: acsscott on September 27, 2011, 02:55:37 PM
Quote
No, Hookflash can only be initiated from the PHONE Port of the OBi local to the LINE Port (i.e. it cannot be passed or simulated across a bridged connection).

Wow, this would make it impossible to answer call waiting from the remote Obi or Android/Apple/PC?  I might have to make something that watches for the # DTMF tones, and open and close a relay in series with the line connection bewtween the Obi and the ATA.  How long will the Office Obi hang on the line when it sees the voltage go away?  Long enough for a hookflash?

Scott
Title: Re: I can't make the pbxExtension Application work with Obi110's
Post by: acsscott on September 27, 2011, 02:57:21 PM
Quote from: acsscott on September 27, 2011, 01:58:39 PM
9 dials out.

Could we make it if the number started with 8, and was followed by two digits, strip the 8, and send the two digits?

I've been reading the book, but can't see where to strip/mask digits.

How do I change the digit map to strip the 8 if it starts with 8?
Title: Re: I can't make the pbxExtension Application work with Obi110's
Post by: RonR on September 27, 2011, 02:59:40 PM
Quote from: acsscott on September 27, 2011, 02:55:37 PM
Wow, this would make it impossible to answer call waiting from the remote Obi or Android/Apple/PC?

That's correct.

Quote from: acsscott on September 27, 2011, 02:55:37 PM
I might have to make something that watches for the # DTMF tones, and open and close a relay in series with the line connection bewtween the Obi and the ATA.  How long will the Office Obi hang on the line when it sees the voltage go away?  Long enough for a hookflash?

I don't know the answer to that.
Title: Re: I can't make the pbxExtension Application work with Obi110's
Post by: RonR on September 27, 2011, 03:07:41 PM
Quote from: acsscott on September 27, 2011, 02:57:21 PM
How do I change the digit map to strip the 8 if it starts with 8?

Change the last rule:

<2*>xx.

to:

<2*>(<8:>xx.|xx.)

This should unconditionally strip any leading 8.

If this is for calling two-digit extensions, you might want to only strip the 8 from 2-digit numbers:

<2*>(<8:>xx|xx.)
Title: Re: I can't make the pbxExtension Application work with Obi110's
Post by: acsscott on September 27, 2011, 07:33:39 PM
That did it.  I can call all the offices by putting an 8 infront of the two digit station number.

Thanks for all your help.

We'll see how it goes.  If they don't upgrade the Obi110 to hookflash, I just might build my little DTMF detection box.

Scott
Title: Re: I can't make the pbxExtension Application work with Obi110's
Post by: acsscott on October 04, 2011, 09:18:59 AM
RonR,

The office to home Obi bridge setup seems to be working pretty good.  My only complaint would be that it takes 3-4 rings sometimes on the line at the office for the home Obi to start ringing the phone.  Once the home phone is picked up, the voice quality and delay is fine.  It's just the initial ring through delay.

It would be nice if the Office Obi cached the home Obi's connection information so that it didn't have to chase it down everytime through Obitalk.

Scott
Title: Re: I can't make the pbxExtension Application work with Obi110's
Post by: RonR on October 04, 2011, 09:44:12 AM
If you don't care about CallerID being passed from the office OBi's LINE Port to the home OBi's PHONE Port, I think you can shave 4 seconds off that delay with the following change to the office OBi:

Physical Interfaces -> LINE Port -> RingDelay : 0
Title: Re: I can't make the pbxExtension Application work with Obi110's
Post by: acsscott on October 05, 2011, 02:12:55 PM
Thanks.  I'll give it a try and let you know.