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
Trotsky40,
This is a question for infi8loop. He is the expert in such matters. Seek him out. Tell him I sent you. :D
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.
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)
;D
Thank you for the leads. This will give me something to play around with.