getDigits always missing the first digit
Hi, I'm having some issues retrieving a dtmf sequence using getDigits. The xml dialplan invokes a javascript file that in turn runs: var digits = ""; session.answer(); digits = session.getDigits(6,"#", 5000); console_log("info", "caller entered: " + digits); ... session.hangup(); The digits variable is always missing the first digit, no matter what I do. I've added some more debug messages, it looks like switch_channel_queue_dtmf() is only called from the second digit on. Has anyone experienced this before? Thanks, Cristian
what is the issue chris On Tue, Nov 11, 2008 at 5:52 AM, Cristian Talle <ctalle@voiceway.ca> wrote:
Hi,
I'm having some issues retrieving a dtmf sequence using getDigits. The xml dialplan invokes a javascript file that in turn runs:
var digits = ""; session.answer(); digits = session.getDigits(6,"#", 5000); console_log("info", "caller entered: " + digits); ... session.hangup();
The digits variable is always missing the first digit, no matter what I do. I've added some more debug messages, it looks like switch_channel_queue_dtmf() is only called from the second digit on.
Has anyone experienced this before?
Thanks, Cristian
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- AJ Singh CTO http://www.btel.ca http://starkom.com Starkom India (PVT) Ltd, 36B Begum Pur, Malviya Nagar, New Delhi - 110017 Btel Canada Inc., 151 Front Street, Suite 718 Toronto, Ontario Delhi Phone +91 98 7166 0553 Toronto Phone: +1 647-285-8677 efax: +1 416 273 7501 MSN: voipcanada@hotmail.com
participants (2)
-
AJ Singh
-
Cristian Talle