[Freeswitch-users] DTMF detection error

Brian West brian at freeswitch.org
Mon Apr 3 20:45:36 MSD 2017


I'd start by updating, thats very old unreleased revision.

/b


On Mon, Apr 3, 2017 at 10:24 AM, Hamit Türkü Kaya <
hamit.turku.kaya at bulutfon.com> wrote:

> 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 <(850)%20885-0000>
>
>
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>



-- 

*Brian West*
brian at freeswitch.org

*Twitter: @FreeSWITCH , @briankwest*

http://www.freeswitchbook.com
http://www.freeswitchcookbook.com

Allison prompts for FreeSWITCH:

*https://www.gofundme.com/allison-prompts-for-freeswitch*
<https://www.gofundme.com/allison-prompts-for-freeswitch>

Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit:
/r/freeswitch <https://www.reddit.com/r/freeswitch>

*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378)
*Skype:*briankwest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20170403/443443f5/attachment.html 


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