[Freeswitch-users] playAndGetDigits problem in LUA program

Sanath Prasanna ahe.sanath at gmail.com
Fri Nov 25 05:24:53 MSK 2011


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:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20111125/68b956e3/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list