[Freeswitch-users] fs crashs after more then 100 dtmf events on a call
Thomas Hoellriegel
admin at blindi.net
Mon Aug 13 05:37:23 MSD 2012
Hi all, i have writen a podcast system in lua.
After more then 100 dtmf input callback events fs crashs.
my luacode:
-- read potcast menu
function read_msg_menu( )
session:setInputCallback("onInput");
digits =
session:playAndGetDigits(1, 1, 3, 5000, "#",
"/usr/local/freeswitch/sounds/dorf/msgs_menu.alaw",
"/usr/local/freeswitch/sounds/ivr/falsche-eingabe.wav", "[*01-9]")
if (digits == "1") then
-- set the pointe to - 1 by pressing 1
msg_pointer_minus(1)
msg_file_play =
api:execute("hash", "select/mailbox_pointer_msg_file/" ..mailbox);
session:streamFile(msg_file_play)
read_msg_menu()
end
if (digits == "3") then
-- forward + 1
msg_pointer(1)
msg_file_play =
api:execute("hash", "select/mailbox_pointer_msg_file/" ..mailbox);
session:streamFile(msg_file_play)
read_msg_menu()
end
end
-- input callback
function onInput(s, type, obj)
if (obj.digit == "1") then
msg_pointer_minus(1)
msg_file_play =
api:execute("hash", "select/mailbox_pointer_msg_file/" ..mailbox);
session:streamFile(msg_file_play)
return("false");
end
if (obj.digit == "3") then
msg_pointer(1)
msg_file_play =
api:execute("hash", "select/mailbox_pointer_msg_file/" ..mailbox);
session:streamFile(msg_file_play)
return("false");
end
end
I play from next to next podcast
the inputcallback catch all dtmf tones correctly.
I terminate the playback before goto the next entry.
fs crashs now:
for example:
I have 200 podcastfiles, and i pressing 3 3 3 3 and so on, to skip the
long time of a playback.
Abbout 100 navigation entrys, fs crash.
fs_cli is dead.
what is the problem please?
can your help me please to creating a jira?
thanks
---------------
Du kannst mich jederzeit kostenlos per Festnetz erreichen unter:
http://www.blindi.net/callback
homepage: http://www.blindi.net
blinde-misc mailingliste für blinde. anmeldung unter:
http://www.blindi.net/mailman/listinfo/blinde-misc
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list