Hi, I am encountering an issue when using playAndGetDigit. I have the regex set as 1|2|3|4|5|6, and then pressed 9, it gives error as expected. Then, I pressed 2. This time it passes, but the digit being returned by playAndGetDigit is 92, instead of just 2. Also, the voice prompt seems a bit strange as well. For the first time I entered an invalid response, I would hear just the invalid prompt defined as one of the parameter, but for the second time I entered an invalid response, I would hear both the invalid prompt and the normal prompt. Is this normal? JB
On Fri, Nov 7, 2008 at 6:08 AM, Juan Backson <juanbackson@gmail.com> wrote:
Hi,
I am encountering an issue when using playAndGetDigit. I have the regex set as 1|2|3|4|5|6, and then pressed 9, it gives error as expected. Then, I pressed 2. This time it passes, but the digit being returned by playAndGetDigit is 92, instead of just 2.
Also, the voice prompt seems a bit strange as well. For the first time I entered an invalid response, I would hear just the invalid prompt defined as one of the parameter, but for the second time I entered an invalid response, I would hear both the invalid prompt and the normal prompt. Is this normal?
Show us the relevant code you're using. - Gonzalo
Hi Gonzalo, Here is the lua code I am using 1. 2. digits = session:playAndGetDigits(1, 1, 3, 3000, #*, phrase:admin_menu, phrase:invalid_input, 1|2|3|4|5|6) Thanks, JB
Show us the relevant code you're using.
- Gonzalo
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
On Fri, Nov 7, 2008 at 9:44 AM, Juan Backson <juanbackson@gmail.com> wrote:
Hi Gonzalo,
Here is the lua code I am using
1. 2. digits = session:playAndGetDigits(1, 1, 3, 3000, #*, phrase:admin_menu, phrase:invalid_input, 1|2|3|4|5|6)
Try with:
digits = session:playAndGetDigits( 1, 1, 3, 3000, "[#*]", "phrase:admin_menu", "phrase:invalid_input", "[1-6]" ) - Gonzalo
Hi Gonzalo, I tried changing to digits = session:playAndGetDigits( 1, 1, 3, 3000, "[#*]", "phrase:admin_menu", "phrase:invalid_input", "[1-6]" ) Freeswitch still returns 92 for if I pressed 9 the first time and the 2 for the second time. I hope to fix this or else I would have to replace this function with line-by-line lua script to reproduce this feature. JB On Fri, Nov 7, 2008 at 7:57 PM, Gonzalo Servat <gservat@gmail.com> wrote:
On Fri, Nov 7, 2008 at 9:44 AM, Juan Backson <juanbackson@gmail.com> wrote:
Hi Gonzalo,
Here is the lua code I am using
digits = session:playAndGetDigits(1, 1, 3, 3000, #*, phrase:admin_menu, phrase:invalid_input, 1|2|3|4|5|6)
Try with:
digits = session:playAndGetDigits( 1, 1, 3, 3000, "[#*]", "phrase:admin_menu", "phrase:invalid_input", "[1-6]" )
- Gonzalo
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
On Sat, Nov 8, 2008 at 10:30 AM, Juan Backson <juanbackson@gmail.com> wrote:
Hi Gonzalo,
I tried changing to digits = session:playAndGetDigits( 1, 1, 3, 3000, "[#*]", "phrase:admin_menu", "phrase:invalid_input", "[1-6]" )
Freeswitch still returns 92 for if I pressed 9 the first time and the 2 for the second time.
I hope to fix this or else I would have to replace this function with line-by-line lua script to reproduce this feature.
What version of FS are you running? Can you paste your entire script? Gonzalo
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@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@192.168.1.101[BREAK] 2008-11-12 22:48:22 [DEBUG] sofia.c:2233 sofia_handle_sip_i_state() Channel sofia/internal/1001@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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
On Wed, Nov 12, 2008 at 4:56 AM, Juan Backson <juanbackson@gmail.com> wrote:
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:
[..snip..] Hi Juan, I hadn't realized this but it looks like I have the same issue. This is one for the FS devs. - Gonzalo
Hi, I have been testing this feature for the last two week. If it is a confirmed issue, then I guess probably I should reproduce this feture seperately using Lua.
I hadn't realized this but it looks like I have the same issue. This is one for the FS devs.
- Gonzalo
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (2)
-
Gonzalo Servat
-
Juan Backson