Page 1 of 1

Off Hook Detection

PostPosted: Thu Feb 06, 2014 8:24 pm
by mollett
I have some old Aastra phones that have this autodial feature which is really handy in an unattended lobby application. Someone picks up the phone, and it automatically dials a preset number. Well, I have a potential client that could use something like that, and I'd love to be able to put a Digium phone in there, rather than an Aastra. The API has no trouble dialing a number, but I don't see an event that would let me know that the phone had gone off hook. Is there a direct or indirect way to determine that? It looks like I might be able to set an idle screen app, and then watch for a digium.app.idle_screen_hide event, but that could get triggered, I think, by events other than the phone going off hook (like a Switchvox config update).

Re: Off Hook Detection

PostPosted: Fri Feb 07, 2014 9:42 am
by malcolmd
Howdy,

Perhaps you could combine that with digium.phone.new_config - wait a bit to see if that event was observed and if not, assume that it wasn't a config updating coming down.

Re: Off Hook Detection

PostPosted: Fri Feb 07, 2014 9:57 am
by mollett
Would receiving a call, a page, or going into the menus also generate the digium.app.idle_screen_hide event?

Re: Off Hook Detection

PostPosted: Fri Feb 07, 2014 10:16 am
by malcolmd
The first two, yes, but you'd also have an active call, so that's another event to watch for. The third, probably, but I don't know off-hand.

Re: Off Hook Detection

PostPosted: Fri Feb 07, 2014 11:07 am
by hiltonmw
"ringdown", i think that's what it's called, is a feature I've been asking for - since before the Digium phones came out. You could do it with custom polycom configs but not the feature packs.

hint hint, wink wink.

digium, ringdown as a default menu item on the phones - would BE AMAAZING!!!

Re: Off Hook Detection

PostPosted: Fri Feb 07, 2014 3:39 pm
by malcolmd
hrm..I didn't have your name on that one (we've had it on the books for a while). I've added both of you to the request.

PLAR - private line automatic ringdown. :D

Cheers

Re: Off Hook Detection

PostPosted: Fri Feb 07, 2014 3:48 pm
by mollett
Where's that "Like" button?? :D

Re: Off Hook Detection

PostPosted: Fri Feb 07, 2014 3:49 pm
by malcolmd
It's still just a feature request. Don't go getting all gushy on me until it's real. Rapidly changing priorities 'n stuff. ;)