[Freeswitch-users] DTMF detection error

Hamit Türkü Kaya hamit.turku.kaya at bulutfon.com
Mon Apr 3 19:24:06 MSD 2017


Hi I’m using FreeSWITCH Version 1.7.0+git~20151120T222441Z~3ac546fbf1~64bit (git 3ac546f 2015-11-20 22:24:41Z 64bit) on our media server with mod_pyhton.

When i try to detect dtmf answers with playAndGetDigits, it behaves weird. For instance i’m accepting 3 - 4 digits, when i press 42 it plays error sound as usual, but after then when i press 4256, it continues to play error sound.
When i checked detected tones i get strange results. Sometimes it detects 4256 as 426 or 456 with skipping digits. Sometimes it merges with failed digits like 12425

what can be possibly cause this. I couldn’t find any solution.

My related python script codes are below.

gather_result = session.playAndGetDigits(
    int(min_digits),
    int(max_digits),
    int(max_attempts)
    gather_timeout,
    "#",
    ask_sound,
    error_sound,
    "\\d+"
    )
if gather_result:
    session.setVariable(variable_name), gather_result)
    session_vars_list.append(variable_name + "=" + session.getVariable("appvar_"+str(arguments["variable_name"])))


Regards.
—

Hamit Türkü KAYA, Geliştirici
BULUTFON AŞ | www.bulutfon.com | 0 (850) 885 0000




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20170403/a96b1357/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list