<div dir="ltr">Hi, <br><br>I am finding some problems when using PlayAndGetDigits within lua.&nbsp; As seen in the log below, I set the retry count to &#39;3&#39; and valid digit to be 1,2,3, or 5.&nbsp; I pressed 9 for every retry attempt, and found that Freeswitch actually let me retry for more than 3 times.&nbsp; Moreover, Freeswitch reports DTMF of 99 is received even though I only pressed 9.&nbsp; At the end, it reports 99 as the final result.<br>
<br>Does anyone know if this is a config problem or a bug?<br><br>Thanks,<br>Keith<br><br><br><br>2008-10-17 20:07:20 [DEBUG] mod_dialplan_xml.c:117 parse_exten() Regex: [test9] destination_number(rule) =~ /(.*)/<br>2008-10-17 20:07:20 [NOTICE] switch_core_session.c:1219 switch_core_session_execute_exten() Execute answer()<br>
start ivr<br>2008-10-17 20:07:20 [NOTICE] switch_core_session.c:1219 switch_core_session_execute_exten() Execute lua(r<span style="color: rgb(255, 0, 0);">un_ivr.lua 1 1 3 3000 #&nbsp; /audio/admin_menu.wav&nbsp; /audio/invalid_input.wav 1|2|3|5&nbsp; admin_selection</span> )<br>
2008-10-17 20:07:20 [DEBUG] switch_ivr_play_say.c:1455 switch_play_and_get_digits() switch_play_and_get_digits(session, 1, 1, 3, 3000, #*, /audio/admin_menu.wav, /audio/invalid_input.wav, digit_buffer, 512, 1|2|3|5)<br>2008-10-17 20:07:20 [DEBUG] switch_ivr_play_say.c:928 switch_ivr_play_file() Codec Activated L16@8000hz 1 channels 20ms<br>
2008-10-17 20:07:20 [DEBUG] switch_core_session.c:435 switch_core_session_receive_message() Kill sofia/internal/<a href="mailto:2001@192.168.1.101">2001@192.168.1.101</a> [BREAK]<br>2008-10-17 20:07:21 [DEBUG] switch_ivr_play_say.c:1218 switch_ivr_play_file() done playing file<br>
2008-10-17 20:07:21 [DEBUG] switch_ivr_play_say.c:1473 switch_play_and_get_digits() play gave up 9<br>2008-10-17 20:07:21 [DEBUG] switch_ivr_play_say.c:1483 switch_play_and_get_digits() Checking regex [1|2|3|5] on <span style="color: rgb(255, 0, 0);">[9]</span><br>
2008-10-17 20:07:21 [DEBUG] switch_regex.c:198 switch_regex_match() number of matches: -1<br>2008-10-17 20:07:21 [DEBUG] switch_ivr_play_say.c:928 switch_ivr_play_file() Codec Activated L16@8000hz 1 channels 20ms<br>2008-10-17 20:07:21 [DEBUG] switch_core_session.c:435 switch_core_session_receive_message() Kill sofia/internal/<a href="mailto:2001@192.168.1.101">2001@192.168.1.101</a> [BREAK]<br>
2008-10-17 20:07:25 [DEBUG] switch_ivr_play_say.c:1218 switch_ivr_play_file() done playing file<br>2008-10-17 20:07:25 [DEBUG] switch_ivr_play_say.c:1507 switch_play_and_get_digits() Calling more digits try 3<br>2008-10-17 20:07:25 [DEBUG] switch_ivr_play_say.c:1524 switch_play_and_get_digits() Checking regex [1|2|3|5] on<span style="color: rgb(255, 0, 0);"> [99]</span><br>
2008-10-17 20:07:25 [DEBUG] switch_regex.c:198 switch_regex_match() number of matches: -1<br>2008-10-17 20:07:25 [DEBUG] switch_ivr_play_say.c:928 switch_ivr_play_file() Codec Activated L16@8000hz 1 channels 20ms<br>2008-10-17 20:07:25 [DEBUG] switch_core_session.c:435 switch_core_session_receive_message() Kill sofia/internal/<a href="mailto:2001@192.168.1.101">2001@192.168.1.101</a> [BREAK]<br>
2008-10-17 20:07:30 [DEBUG] switch_ivr_play_say.c:1218 switch_ivr_play_file() done playing file<br>2008-10-17 20:07:30 [DEBUG] switch_ivr_play_say.c:928 switch_ivr_play_file() Codec Activated L16@8000hz 1 channels 20ms<br>
2008-10-17 20:07:30 [DEBUG] switch_core_session.c:435 switch_core_session_receive_message() Kill sofia/internal/<a href="mailto:2001@192.168.1.101">2001@192.168.1.101</a> [BREAK]<br>2008-10-17 20:07:30 [DEBUG] switch_ivr_play_say.c:1218 switch_ivr_play_file() done playing file<br>
2008-10-17 20:07:30 [DEBUG] switch_ivr_play_say.c:1473 switch_play_and_get_digits() play gave up 9<br>2008-10-17 20:07:30 [DEBUG] switch_ivr_play_say.c:1483 switch_play_and_get_digits() Checking regex [1|2|3|5] on <span style="color: rgb(255, 0, 0);">[9]</span><br>
2008-10-17 20:07:30 [DEBUG] switch_regex.c:198 switch_regex_match() number of matches: -1<br>2008-10-17 20:07:30 [DEBUG] switch_ivr_play_say.c:928 switch_ivr_play_file() Codec Activated L16@8000hz 1 channels 20ms<br>2008-10-17 20:07:30 [DEBUG] switch_core_session.c:435 switch_core_session_receive_message() Kill sofia/internal/<a href="mailto:2001@192.168.1.101">2001@192.168.1.101</a> [BREAK]<br>
2008-10-17 20:07:34 [DEBUG] switch_ivr_play_say.c:1218 switch_ivr_play_file() done playing file<br>2008-10-17 20:07:34 [DEBUG] switch_ivr_play_say.c:1507 switch_play_and_get_digits() Calling more digits try 2<br>2008-10-17 20:07:35 [DEBUG] switch_ivr_play_say.c:1524 switch_play_and_get_digits() Checking regex [1|2|3|5] on <span style="color: rgb(255, 0, 0);">[99]</span><br>
2008-10-17 20:07:35 [DEBUG] switch_regex.c:198 switch_regex_match() number of matches: -1<br>2008-10-17 20:07:35 [DEBUG] switch_ivr_play_say.c:928 switch_ivr_play_file() Codec Activated L16@8000hz 1 channels 20ms<br>2008-10-17 20:07:35 [DEBUG] switch_core_session.c:435 switch_core_session_receive_message() Kill sofia/internal/<a href="mailto:2001@192.168.1.101">2001@192.168.1.101</a> [BREAK]<br>
2008-10-17 20:07:38 [DEBUG] sofia_reg.c:121 sofia_reg_check_gateway() registered nine<br>2008-10-17 20:07:39 [DEBUG] switch_ivr_play_say.c:1218 switch_ivr_play_file() done playing file<br>2008-10-17 20:07:39 [DEBUG] switch_ivr_play_say.c:928 switch_ivr_play_file() Codec Activated L16@8000hz 1 channels 20ms<br>
2008-10-17 20:07:39 [DEBUG] switch_core_session.c:435 switch_core_session_receive_message() Kill sofia/internal/<a href="mailto:2001@192.168.1.101">2001@192.168.1.101</a> [BREAK]<br>2008-10-17 20:07:39 [DEBUG] switch_ivr_play_say.c:1218 switch_ivr_play_file() done playing file<br>
2008-10-17 20:07:39 [DEBUG] switch_ivr_play_say.c:1473 switch_play_and_get_digits() play gave up 9<br>2008-10-17 20:07:39 [DEBUG] switch_ivr_play_say.c:1483 switch_play_and_get_digits() Checking regex [1|2|3|5] on<span style="color: rgb(255, 0, 0);"> [9]</span><br>
2008-10-17 20:07:39 [DEBUG] switch_regex.c:198 switch_regex_match() number of matches: -1<br>2008-10-17 20:07:39 [DEBUG] switch_ivr_play_say.c:928 switch_ivr_play_file() Codec Activated L16@8000hz 1 channels 20ms<br>2008-10-17 20:07:39 [DEBUG] switch_core_session.c:435 switch_core_session_receive_message() Kill sofia/internal/<a href="mailto:2001@192.168.1.101">2001@192.168.1.101</a> [BREAK]<br>
2008-10-17 20:07:43 [DEBUG] switch_ivr_play_say.c:1218 switch_ivr_play_file() done playing file<br>2008-10-17 20:07:43 [DEBUG] switch_ivr_play_say.c:1507 switch_play_and_get_digits() Calling more digits try 1<br>2008-10-17 20:07:45 [DEBUG] switch_ivr_play_say.c:1524 switch_play_and_get_digits() Checking regex [1|2|3|5] on <span style="color: rgb(255, 0, 0);">[99]</span><br>
2008-10-17 20:07:45 [DEBUG] switch_regex.c:198 switch_regex_match() number of matches: -1<br>2008-10-17 20:07:45 [DEBUG] switch_ivr_play_say.c:928 switch_ivr_play_file() Codec Activated L16@8000hz 1 channels 20ms<br>2008-10-17 20:07:45 [DEBUG] switch_core_session.c:435 switch_core_session_receive_message() Kill sofia/internal/<a href="mailto:2001@192.168.1.101">2001@192.168.1.101</a> [BREAK]<br>
digit=<span style="color: rgb(255, 0, 0);">99</span><br><br><br></div>