[Freeswitch-users] playAndGetDigits problem in LUA program
Michael Collins
msc at freeswitch.org
Tue Nov 29 22:21:45 MSK 2011
Do you have a while(session:ready) wrapped around this?
-MC
On Thu, Nov 24, 2011 at 6:24 PM, Sanath Prasanna <ahe.sanath at gmail.com>wrote:
> Hi all,
> I used following to get phone number from caller in LUA program.
>
> function get_dest()
> new_number = session:playAndGetDigits(9, 11, 3, 3000, "#", lang_path ..
> "enter_dest_number.wav", lang_path .. "error.wav", "\\d+");
> session:say(new_number, "en", "number", "pronounced");
> session:setVariable("dest_numbers",new_number);
> end
>
> -- main --
> freeswitch.consoleLog("info", "Voicemail - select_main_menu:\n\r");
> reeswitch.consoleLog("info", "Voicemail - Select English :\n\r");
> get_dest();
> ..
> ..
>
> if caller hang off the phone without entering number(dtmf), I can see lot
> of same log lines in the freeswitch console log. (around 50000 lines in 1
> or 2 sec.Pls see below).
> *is it bug or just need to ignore. Pls advice. *
>
> Br,
> Sanath
>
> 2011-11-22 05:58:23.301593 [INFO] switch_cpp.cpp:1190 Voicemail -
> select_main_menu:
> 2011-11-22 05:58:23.301593 [INFO] switch_cpp.cpp:1190 Voicemail - Select
> English
> 2011-11-22 05:58:23.301593 [INFO] switch_cpp.cpp:1190 Voicemail -
> ./vm/en/
> 2011-11-22 05:58:23.301593 [INFO] switch_cpp.cpp:1190 Voicemail -
> select_main_menu:
> 2011-11-22 05:58:23.301593 [INFO] switch_cpp.cpp:1190 Voicemail - Select
> English
> 2011-11-22 05:58:23.301593 [INFO] switch_cpp.cpp:1190 Voicemail -
> ./vm/en/
> 2011-11-22 05:58:23.301593 [INFO] switch_cpp.cpp:1190 Voicemail -
> select_main_menu:
> 2011-11-22 05:58:23.301593 [INFO] switch_cpp.cpp:1190 Voicemail - Select
> English
> 2011-11-22 05:58:23.301593 [INFO] switch_cpp.cpp:1190 Voicemail -
> ./vm/en/
> 2011-11-22 05:58:23.301593 [INFO] switch_cpp.cpp:1190 Voicemail -
> select_main_menu:
> 2011-11-22 05:58:23.301593 [INFO] switch_cpp.cpp:1190 Voicemail - Select
> English
> 2011-11-22 05:58:23.301593 [INFO] switch_cpp.cpp:1190 Voicemail -
> ./vm/en/
> 2011-11-22 05:58:23.301593 [INFO] switch_cpp.cpp:1190 Voicemail -
> select_main_menu:
> 2011-11-22 05:58:23.301593 [INFO] switch_cpp.cpp:1190 Voicemail - Select
> English
> 2011-11-22 05:58:23.301593 [INFO] switch_cpp.cpp:1190 Voicemail -
> ./vm/en/
> 2011-11-22 05:58:23.301593 [INFO] switch_cpp.cpp:1190 Voicemail -
> select_main_menu:
> 2011-11-22 05:58:23.301593 [INFO] switch_cpp.cpp:1190 Voicemail - Select
> English
> 2011-11-22 05:58:23.301593 [INFO] switch_cpp.cpp:1190 Voicemail -
> ./vm/en/
> 2011-11-22 05:58:23.301593 [INFO] switch_cpp.cpp:1190 Voicemail -
> select_main_menu:
> 2011-11-22 05:58:23.301593 [INFO] switch_cpp.cpp:1190 Voicemail - Select
> English
> 2011-11-22 05:58:23.301593 [INFO] switch_cpp.cpp:1190 Voicemail -
> ./vm/en/
> 2011-11-22 05:58:23.301593 [INFO] switch_cpp.cpp:1190 Voicemail -
> select_main_menu:
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
>
>
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20111129/9bb8fd53/attachment.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list