OBiTALK Community

General Support => Installation and Set-Up (Devices) => Topic started by: Trotsky40 on July 05, 2012, 06:01:56 PM

Title: Call Status URL?
Post by: Trotsky40 on July 05, 2012, 06:01:56 PM
Is there an accesible URL that will return the call status of the Obi? Ideally, it would return a true/false that there is an active call.

I am looking to set-up an implementation with my Vera Home Automation system where if there is an active call it will disable the door bell (my wife works from home and hates when the door bell rings when she is on a conference call).

Enabling and disabling the door bell in the Vera is easy, but I need somewhere for the Vera to look in the Obi that there is an active call.

Thanks,
Blake
Title: Re: Call Status URL?
Post by: QBZappy on July 05, 2012, 06:04:25 PM
Trotsky40,

This is a question for infi8loop. He is the expert in such matters. Seek him out. Tell him I sent you.  :D
Title: Re: Call Status URL?
Post by: infin8loop on July 05, 2012, 07:59:42 PM
Quote from: Trotsky40 on July 05, 2012, 06:01:56 PM
Is there an accesible URL that will return the call status of the Obi? Ideally, it would return a true/false that there is an active call.

It's not going to be that simple. Here are some URLs to get you started:

Replace 192.168.0.40 with the local IP address of your OBi100/110:

1. http://192.168.0.40/callstatus.htm  (I have nothing to parse this at the moment)

2. http://192.168.0.40/record.au  (returns nothing if no call is in progress)

See obi-recordcallinator.vbs script here: http://www.obitalk.com/forum/index.php?topic=2348.msg15158#msg15158
The script could be modified to not actually record the call (grab and save the audio stream) but just return true or false if a call is in progress.  The true or false could be a display message and/or an exit code (return code).

I think the above pages would be implemented as a "polling" function which I personally don't like.  A more elegant solution might be to leverage off the SYSLOG capability of the OBI and track the status of calls (offhook/call start -- call end/onhook) messages in the SYSLOG and then send notification to the automation system if the automation system has the ability to receive messages of some sort.

See obisyslogd.pl (perl) script here for a start: http://www.obitalk.com/forum/index.php?topic=185.msg9107#msg9107

Sorry I don't have an OBi202, the URLs may be different.
Title: Re: Call Status URL?
Post by: QBZappy on July 05, 2012, 08:37:51 PM
Hey, didn't I say that Infin8loop was the go to man for such matters.


--- 1 0 0 0 t h  Post Mark  ---


I am now retired. I'm getting my gold watch and pension plan from Obihai. Yahoo! (Good to share this thread with a voip buddy.  :D)
Title: Re: Call Status URL?
Post by: GregoryZ on July 05, 2012, 08:52:11 PM
 ;D
Title: Re: Call Status URL?
Post by: Trotsky40 on July 05, 2012, 09:08:38 PM
Thank you for the leads. This will give me something to play around with.