[Freeswitch-users] Issue with playAndGetDigit
Juan Backson
juanbackson at gmail.com
Tue Nov 11 22:56:08 PST 2008
Hi,
Here is the exact lua script:
digits = session:playAndGetDigits( 1, 1, 3, 3000, "#",
"phrase:enter_userid","phrase:invalid_input","[1|2|3|4|5|6]")
If I repeatedly enter "9", here is what would happen:
z
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)
2008-11-12 22:48:22 [DEBUG] switch_ivr_play_say.c:928 switch_ivr_play_file()
Codec Activated L16 at 8000hz 1 channels 30ms
2008-11-12 22:48:22 [DEBUG] switch_core_session.c:435
switch_core_session_receive_message() Kill
sofia/internal/1001 at 192.168.1.101[BREAK]
2008-11-12 22:48:22 [DEBUG] sofia.c:2233 sofia_handle_sip_i_state() Channel
sofia/internal/1001 at 192.168.1.101 entering state [ready]
2008-11-12 22:48:23 [DEBUG] switch_ivr_play_say.c:1218
switch_ivr_play_file() done playing file
2008-11-12 22:48:23 [DEBUG] switch_ivr_play_say.c:1473
switch_play_and_get_digits() play gave up 9
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]
2008-11-12 22:48:23 [DEBUG] switch_regex.c:198 switch_regex_match() number
of matches: -1
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)
2008-11-12 22:48:23 [DEBUG] switch_ivr_play_say.c:928 switch_ivr_play_file()
Codec Activated L16 at 8000hz 1 channels 30ms
2008-11-12 22:48:23 [DEBUG] switch_core_session.c:435
switch_core_session_receive_message() Kill
sofia/internal/1001 at 192.168.1.101[BREAK]
2008-11-12 22:48:25 [DEBUG] switch_ivr_play_say.c:1218
switch_ivr_play_file() done playing file
2008-11-12 22:48:25 [DEBUG] switch_ivr_play_say.c:1507
switch_play_and_get_digits() Calling more digits try 3
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]
2008-11-12 22:48:26 [DEBUG] switch_regex.c:198 switch_regex_match() number
of matches: -1
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)
2008-11-12 22:48:26 [DEBUG] switch_ivr_play_say.c:928 switch_ivr_play_file()
Codec Activated L16 at 8000hz 1 channels 30ms
2008-11-12 22:48:26 [DEBUG] switch_core_session.c:435
switch_core_session_receive_message() Kill
sofia/internal/1001 at 192.168.1.101[BREAK]
2008-11-12 22:48:28 [DEBUG] switch_ivr_play_say.c:1218
switch_ivr_play_file() done playing file
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)
2008-11-12 22:48:29 [DEBUG] switch_ivr_play_say.c:928 switch_ivr_play_file()
Codec Activated L16 at 8000hz 1 channels 30ms
2008-11-12 22:48:29 [DEBUG] switch_core_session.c:435
switch_core_session_receive_message() Kill
sofia/internal/1001 at 192.168.1.101[BREAK]
2008-11-12 22:48:32 [DEBUG] switch_ivr_play_say.c:1218
switch_ivr_play_file() done playing file
2008-11-12 22:48:32 [DEBUG] switch_ivr_play_say.c:1473
switch_play_and_get_digits() play gave up
2008-11-12 22:48:32 [DEBUG] switch_ivr_play_say.c:1507
switch_play_and_get_digits() Calling more digits try 2
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]
2008-11-12 22:48:33 [DEBUG] switch_regex.c:198 switch_regex_match() number
of matches: -1
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)
2008-11-12 22:48:33 [DEBUG] switch_ivr_play_say.c:928 switch_ivr_play_file()
Codec Activated L16 at 8000hz 1 channels 30ms
2008-11-12 22:48:33 [DEBUG] switch_core_session.c:435
switch_core_session_receive_message() Kill
sofia/internal/1001 at 192.168.1.101[BREAK]
2008-11-12 22:48:35 [DEBUG] switch_ivr_play_say.c:1218
switch_ivr_play_file() done playing file
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)
2008-11-12 22:48:35 [DEBUG] switch_ivr_play_say.c:928 switch_ivr_play_file()
Codec Activated L16 at 8000hz 1 channels 30ms
2008-11-12 22:48:35 [DEBUG] switch_core_session.c:435
switch_core_session_receive_message() Kill
sofia/internal/1001 at 192.168.1.101[BREAK]
2008-11-12 22:48:36 [DEBUG] switch_ivr_play_say.c:1218
switch_ivr_play_file() done playing file
2008-11-12 22:48:36 [DEBUG] switch_ivr_play_say.c:1473
switch_play_and_get_digits() play gave up 9
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]
2008-11-12 22:48:36 [DEBUG] switch_regex.c:198 switch_regex_match() number
of matches: -1
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)
2008-11-12 22:48:36 [DEBUG] switch_ivr_play_say.c:928 switch_ivr_play_file()
Codec Activated L16 at 8000hz 1 channels 30ms
2008-11-12 22:48:36 [DEBUG] switch_core_session.c:435
switch_core_session_receive_message() Kill
sofia/internal/1001 at 192.168.1.101[BREAK]
2008-11-12 22:48:38 [DEBUG] switch_ivr_play_say.c:1218
switch_ivr_play_file() done playing file
2008-11-12 22:48:38 [DEBUG] switch_ivr_play_say.c:1507
switch_play_and_get_digits() Calling more digits try 1
2008-11-12 22:48:40 [DEBUG] switch_ivr_play_say.c:1524
switch_play_and_get_digits()
Checking regex [[1|2|3|4|5|6]] on [99]
2008-11-12 22:48:40 [DEBUG] switch_regex.c:198 switch_regex_match() number
of matches: -1
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)
2008-11-12 22:48:40 [DEBUG] switch_ivr_play_say.c:928 switch_ivr_play_file()
Codec Activated L16 at 8000hz 1 channels 30ms
2008-11-12 22:48:40 [DEBUG] switch_core_session.c:435
switch_core_session_receive_message() Kill
sofia/internal/1001 at 192.168.1.101[BREAK]
2008-11-12 22:48:42 [DEBUG] switch_ivr_play_say.c:1218
switch_ivr_play_file() done playing file
digit=99 reg =\d+
nil
store digit = 99 to username
exit ivr
start ivr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20081112/3dfe459e/attachment-0002.html
More information about the FreeSWITCH-users
mailing list