Use Keys When App is Open

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

Moderators: jwitt, sruffell, malcolmd, Moderator

Use Keys When App is Open

Postby billychia » Tue Nov 26, 2013 12:58 pm

I received this message and was wondering if anyone else experienced this behavior and/or had a fix?

I noticed on the caller Id app that you provide it blocks keys while displayed. For example if I called the app launches and shows the callerid from the server sample file. If I try to transfer or press any digium keys such as a number key they are blocked and nothing happens (I.e can't get a key pad sound or anything). The work around is to press the X to close the caller id then all the buttons work. Is there any way to fix this or are number keys and others all disabled until the foreground window is closed?
Digium, Inc. | Asterisk Marketing Manager
billychia
Newsterisk
 
Posts: 12
Joined: Wed Oct 27, 2010 3:00 pm

Re: Use Keys When App is Open

Postby tomdemoor » Fri Nov 29, 2013 2:21 am

Hi Billy,

I noticed this behaviour:
When i push a numeric key in a foregrouned app, I don't hear the dtmf-tone.
Although the tone is sent/recevied correctly in Asterisk.
When I let Asterisk send a DTMF-tone back to the phone, I don't hear it either.

But the keys do work, I have interaction based on the keys I'm pressing.
tomdemoor
Oldsterisk
 
Posts: 133
Joined: Mon Jan 16, 2012 4:24 am

Re: Use Keys When App is Open

Postby malcolmd » Mon Dec 02, 2013 9:27 am

There was a conversation thread about this that was started via the features e-mail address also. It looks like we're dealing with the shotgun approach here - which usually doesn't work as well as you want since you get different replies and it just leads to lots of extra work.

When your custom app is in the foreground, you've got control of the keys, and pressing the hardkeys or DTMF keys doesn't push those events down into the phone application. With what we have, making that kind of a change isn't a simple-to-do.

You do have access to the onkey (http://phones.digium.com/content/onkeykey) handler, that'll let you grab a key and then perform other things, e.g. http://phones.digium.com/methods/digiumphonesenddtmf
or the other methods at http://phones.digium.com/phone-api/refe ... igiumphone

The best advice currently is to just grab a softkey that backgrounds your app into an idle screen app, with your important information, then the user can interact however they want with a call, and you can use a BLF key to bring that app back into the foreground.

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 0 guests