window.onkeyspkr when app is not in focus

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

Moderators: jwitt, sruffell, malcolmd, Moderator

window.onkeyspkr when app is not in focus

Postby mhurley » Tue Mar 11, 2014 10:17 pm

We're looking for a way to disable the digium speakerphone button due to problems with sound in/around the cubicles. Using the window.onkeyspkr event handler I have it such that the speakerphone button is hijacked while a app is in focus. However, the moment the app is placed into the background, the window.onkeyspkr handler is skipped and the phone goes back to dial tone. Is there a means to use the window.onkeyspkr while at the idlescreen?

thanks in advance!

mark
mhurley
Newsterisk
 
Posts: 2
Joined: Tue Mar 11, 2014 10:10 pm

Re: window.onkeyspkr when app is not in focus

Postby malcolmd » Wed Mar 12, 2014 8:57 am

Howdy,

There's a thread about this here:
viewtopic.php?f=16&t=89595&start=0

and I also have an e-mail thread in my Inbox about this.

Perhaps you're related to the same original query?

If your application is not in the foreground, it will not control the keys. Trying to build an app to foreground itself constantly through all of the various state changes that can occur for outgoing and incoming calls (where you're trying to force the normal function of the phone into the background) is not going to end well. I suspect it's going to frustrate users.

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


Return to Digium Phone API

Who is online

Users browsing this forum: No registered users and 1 guest