Off Hook Detection

Community based support for the Digium Phone Application Programming Interface (API).

Moderators: jwitt, sruffell, malcolmd, Moderator

Off Hook Detection

Postby mollett » Thu Feb 06, 2014 8:24 pm

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).
mollett
Newsterisk
 
Posts: 25
Joined: Mon Apr 01, 2013 12:03 pm

Re: Off Hook Detection

Postby malcolmd » Fri Feb 07, 2014 9:42 am

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.
Malcolm Davenport
Digium, Inc. | Senior Product Manager
malcolmd
Moves Like Spencer
 
Posts: 3019
Joined: Wed Aug 03, 2005 3:53 pm
Location: Huntsville, AL, US

Re: Off Hook Detection

Postby mollett » Fri Feb 07, 2014 9:57 am

Would receiving a call, a page, or going into the menus also generate the digium.app.idle_screen_hide event?
mollett
Newsterisk
 
Posts: 25
Joined: Mon Apr 01, 2013 12:03 pm

Re: Off Hook Detection

Postby malcolmd » Fri Feb 07, 2014 10:16 am

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.
Malcolm Davenport
Digium, Inc. | Senior Product Manager
malcolmd
Moves Like Spencer
 
Posts: 3019
Joined: Wed Aug 03, 2005 3:53 pm
Location: Huntsville, AL, US

Re: Off Hook Detection

Postby hiltonmw » Fri Feb 07, 2014 11:07 am

"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!!!
hiltonmw
Oldsterisk
 
Posts: 390
Joined: Mon Apr 30, 2012 1:30 pm

Re: Off Hook Detection

Postby malcolmd » Fri Feb 07, 2014 3:39 pm

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
Malcolm Davenport
Digium, Inc. | Senior Product Manager
malcolmd
Moves Like Spencer
 
Posts: 3019
Joined: Wed Aug 03, 2005 3:53 pm
Location: Huntsville, AL, US

Re: Off Hook Detection

Postby mollett » Fri Feb 07, 2014 3:48 pm

Where's that "Like" button?? :D
mollett
Newsterisk
 
Posts: 25
Joined: Mon Apr 01, 2013 12:03 pm

Re: Off Hook Detection

Postby malcolmd » Fri Feb 07, 2014 3:49 pm

It's still just a feature request. Don't go getting all gushy on me until it's real. Rapidly changing priorities 'n stuff. ;)
Malcolm Davenport
Digium, Inc. | Senior Product Manager
malcolmd
Moves Like Spencer
 
Posts: 3019
Joined: Wed Aug 03, 2005 3:53 pm
Location: Huntsville, AL, US


Return to Digium Phone API

Who is online

Users browsing this forum: No registered users and 0 guests