Hi,<br><br>Here is the exact lua script:<br><br>digits = session:playAndGetDigits( 1, 1, 3, 3000, "#", "phrase:enter_userid","phrase:invalid_input","[1|2|3|4|5|6]")<br><br>If I repeatedly enter "9", here is what would happen:<br>
z<br>2008-11-12 22:48:22 [DEBUG] switch_ivr_play_say.c:269 switch_ivr_phrase_macro() Handle play-file:[accadmin/enter_userid.wav] (en:en)<br>2008-11-12 22:48:22 [DEBUG] switch_ivr_play_say.c:928 switch_ivr_play_file() Codec Activated L16@8000hz 1 channels 30ms<br>
2008-11-12 22:48:22 [DEBUG] switch_core_session.c:435 switch_core_session_receive_message() Kill sofia/internal/<a href="mailto:1001@192.168.1.101">1001@192.168.1.101</a> [BREAK]<br>2008-11-12 22:48:22 [DEBUG] sofia.c:2233 sofia_handle_sip_i_state() Channel sofia/internal/<a href="mailto:1001@192.168.1.101">1001@192.168.1.101</a> entering state [ready]<br>
2008-11-12 22:48:23 [DEBUG] switch_ivr_play_say.c:1218 switch_ivr_play_file() done playing file<br>2008-11-12 22:48:23 [DEBUG] switch_ivr_play_say.c:1473 switch_play_and_get_digits() play gave up 9<br>2008-11-12 22:48:23 [DEBUG] switch_ivr_play_say.c:1483 switch_play_and_get_digits() Checking regex [[1|2|3|4|5|6]] on [9]<br>
2008-11-12 22:48:23 [DEBUG] switch_regex.c:198 switch_regex_match() number of matches: -1<br>2008-11-12 22:48:23 [DEBUG] switch_ivr_play_say.c:269 switch_ivr_phrase_macro() Handle play-file:[general/invalid_input.wav] (en:en)<br>
2008-11-12 22:48:23 [DEBUG] switch_ivr_play_say.c:928 switch_ivr_play_file() Codec Activated L16@8000hz 1 channels 30ms<br>2008-11-12 22:48:23 [DEBUG] switch_core_session.c:435 switch_core_session_receive_message() Kill sofia/internal/<a href="mailto:1001@192.168.1.101">1001@192.168.1.101</a> [BREAK]<br>
2008-11-12 22:48:25 [DEBUG] switch_ivr_play_say.c:1218 switch_ivr_play_file() done playing file<br>2008-11-12 22:48:25 [DEBUG] switch_ivr_play_say.c:1507 switch_play_and_get_digits() Calling more digits try 3<br>2008-11-12 22:48:26 [DEBUG] switch_ivr_play_say.c:1524 switch_play_and_get_digits() Checking regex [[1|2|3|4|5|6]] on [99]<br>
2008-11-12 22:48:26 [DEBUG] switch_regex.c:198 switch_regex_match() number of matches: -1<br>2008-11-12 22:48:26 [DEBUG] switch_ivr_play_say.c:269 switch_ivr_phrase_macro() Handle play-file:[general/invalid_input.wav] (en:en)<br>
2008-11-12 22:48:26 [DEBUG] switch_ivr_play_say.c:928 switch_ivr_play_file() Codec Activated L16@8000hz 1 channels 30ms<br>2008-11-12 22:48:26 [DEBUG] switch_core_session.c:435 switch_core_session_receive_message() Kill sofia/internal/<a href="mailto:1001@192.168.1.101">1001@192.168.1.101</a> [BREAK]<br>
2008-11-12 22:48:28 [DEBUG] switch_ivr_play_say.c:1218 switch_ivr_play_file() done playing file<br>2008-11-12 22:48:29 [DEBUG] switch_ivr_play_say.c:269 switch_ivr_phrase_macro() Handle play-file:[accadmin/enter_userid.wav] (en:en)<br>
2008-11-12 22:48:29 [DEBUG] switch_ivr_play_say.c:928 switch_ivr_play_file() Codec Activated L16@8000hz 1 channels 30ms<br>2008-11-12 22:48:29 [DEBUG] switch_core_session.c:435 switch_core_session_receive_message() Kill sofia/internal/<a href="mailto:1001@192.168.1.101">1001@192.168.1.101</a> [BREAK]<br>
2008-11-12 22:48:32 [DEBUG] switch_ivr_play_say.c:1218 switch_ivr_play_file() done playing file<br>2008-11-12 22:48:32 [DEBUG] switch_ivr_play_say.c:1473 switch_play_and_get_digits() play gave up<br>2008-11-12 22:48:32 [DEBUG] switch_ivr_play_say.c:1507 switch_play_and_get_digits() Calling more digits try 2<br>
2008-11-12 22:48:33 [DEBUG] switch_ivr_play_say.c:1524 switch_play_and_get_digits() Checking regex [[1|2|3|4|5|6]] on [9]<br>2008-11-12 22:48:33 [DEBUG] switch_regex.c:198 switch_regex_match() number of matches: -1<br>2008-11-12 22:48:33 [DEBUG] switch_ivr_play_say.c:269 switch_ivr_phrase_macro() Handle play-file:[general/invalid_input.wav] (en:en)<br>
2008-11-12 22:48:33 [DEBUG] switch_ivr_play_say.c:928 switch_ivr_play_file() Codec Activated L16@8000hz 1 channels 30ms<br>2008-11-12 22:48:33 [DEBUG] switch_core_session.c:435 switch_core_session_receive_message() Kill sofia/internal/<a href="mailto:1001@192.168.1.101">1001@192.168.1.101</a> [BREAK]<br>
2008-11-12 22:48:35 [DEBUG] switch_ivr_play_say.c:1218 switch_ivr_play_file() done playing file<br>2008-11-12 22:48:35 [DEBUG] switch_ivr_play_say.c:269 switch_ivr_phrase_macro() Handle play-file:[accadmin/enter_userid.wav] (en:en)<br>
2008-11-12 22:48:35 [DEBUG] switch_ivr_play_say.c:928 switch_ivr_play_file() Codec Activated L16@8000hz 1 channels 30ms<br>2008-11-12 22:48:35 [DEBUG] switch_core_session.c:435 switch_core_session_receive_message() Kill sofia/internal/<a href="mailto:1001@192.168.1.101">1001@192.168.1.101</a> [BREAK]<br>
2008-11-12 22:48:36 [DEBUG] switch_ivr_play_say.c:1218 switch_ivr_play_file() done playing file<br>2008-11-12 22:48:36 [DEBUG] switch_ivr_play_say.c:1473 switch_play_and_get_digits() play gave up 9<br>2008-11-12 22:48:36 [DEBUG] switch_ivr_play_say.c:1483 switch_play_and_get_digits() Checking regex [[1|2|3|4|5|6]] on [9]<br>
2008-11-12 22:48:36 [DEBUG] switch_regex.c:198 switch_regex_match() number of matches: -1<br>2008-11-12 22:48:36 [DEBUG] switch_ivr_play_say.c:269 switch_ivr_phrase_macro() Handle play-file:[general/invalid_input.wav] (en:en)<br>
2008-11-12 22:48:36 [DEBUG] switch_ivr_play_say.c:928 switch_ivr_play_file() Codec Activated L16@8000hz 1 channels 30ms<br>2008-11-12 22:48:36 [DEBUG] switch_core_session.c:435 switch_core_session_receive_message() Kill sofia/internal/<a href="mailto:1001@192.168.1.101">1001@192.168.1.101</a> [BREAK]<br>
2008-11-12 22:48:38 [DEBUG] switch_ivr_play_say.c:1218 switch_ivr_play_file() done playing file<br>2008-11-12 22:48:38 [DEBUG] switch_ivr_play_say.c:1507 switch_play_and_get_digits() Calling more digits try 1<br>2008-11-12 22:48:40 [DEBUG] switch_ivr_play_say.c:1524 <span style="color: rgb(255, 0, 0);">switch_play_and_get_digits() Checking regex [[1|2|3|4|5|6]] on [99]</span><br>
2008-11-12 22:48:40 [DEBUG] switch_regex.c:198 switch_regex_match() number of matches: -1<br>2008-11-12 22:48:40 [DEBUG] switch_ivr_play_say.c:269 switch_ivr_phrase_macro() Handle play-file:[general/invalid_input.wav] (en:en)<br>
2008-11-12 22:48:40 [DEBUG] switch_ivr_play_say.c:928 switch_ivr_play_file() Codec Activated L16@8000hz 1 channels 30ms<br>2008-11-12 22:48:40 [DEBUG] switch_core_session.c:435 switch_core_session_receive_message() Kill sofia/internal/<a href="mailto:1001@192.168.1.101">1001@192.168.1.101</a> [BREAK]<br>
2008-11-12 22:48:42 [DEBUG] switch_ivr_play_say.c:1218 switch_ivr_play_file() done playing file<br>digit=99 reg =\d+<br>nil<br>store digit = 99 to username<br>exit ivr<br>start ivr<br><br><br>