VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
juanbackson at gmail.com Guest
|
Posted: Fri Nov 07, 2008 3:08 am Post subject: [Freeswitch-users] Issue with playAndGetDigit |
|
|
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 |
|
Back to top |
|
|
gservat at gmail.com Guest
|
Posted: Fri Nov 07, 2008 6:43 am Post subject: [Freeswitch-users] Issue with playAndGetDigit |
|
|
On Fri, Nov 7, 2008 at 6:08 AM, Juan Backson <juanbackson@gmail.com (juanbackson@gmail.com)> wrote:
Quote: | 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 |
|
Back to top |
|
|
juanbackson at gmail.com Guest
|
Posted: Fri Nov 07, 2008 6:55 am Post subject: [Freeswitch-users] Issue with playAndGetDigit |
|
|
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)
Thanks,
JB
|
|
Back to top |
|
|
gservat at gmail.com Guest
|
Posted: Fri Nov 07, 2008 6:58 am Post subject: [Freeswitch-users] Issue with playAndGetDigit |
|
|
On Fri, Nov 7, 2008 at 9:44 AM, Juan Backson <juanbackson@gmail.com (juanbackson@gmail.com)> wrote:
Quote: |
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 |
|
Back to top |
|
|
juanbackson at gmail.com Guest
|
Posted: Sat Nov 08, 2008 7:32 am Post subject: [Freeswitch-users] Issue with playAndGetDigit |
|
|
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:
Quote: | On Fri, Nov 7, 2008 at 9:44 AM, Juan Backson <juanbackson@gmail.com> wrote:
Quote: |
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
|
_______________________________________________
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 |
|
Back to top |
|
|
gservat at gmail.com Guest
|
Posted: Sat Nov 08, 2008 8:34 am Post subject: [Freeswitch-users] Issue with playAndGetDigit |
|
|
On Sat, Nov 8, 2008 at 10:30 AM, Juan Backson <juanbackson@gmail.com (juanbackson@gmail.com)> wrote:
Quote: | 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 |
|
Back to top |
|
|
juanbackson at gmail.com Guest
|
Posted: Wed Nov 12, 2008 1:59 am Post subject: [Freeswitch-users] Issue with playAndGetDigit |
|
|
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 (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 (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 (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 (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 (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 (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 (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 (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 (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 |
|
Back to top |
|
|
gservat at gmail.com Guest
|
Posted: Wed Nov 12, 2008 6:11 am Post subject: [Freeswitch-users] Issue with playAndGetDigit |
|
|
On Wed, Nov 12, 2008 at 4:56 AM, Juan Backson <juanbackson@gmail.com (juanbackson@gmail.com)> wrote:
Quote: | 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 |
|
Back to top |
|
|
juanbackson at gmail.com Guest
|
Posted: Wed Nov 12, 2008 11:07 am Post subject: [Freeswitch-users] Issue with playAndGetDigit |
|
|
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.
|
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|