Re: [Freeswitch-users] fs crashs after more then 100 dtmf events on a call
Please read this, it will describe most of it: http://wiki.freeswitch.org/wiki/Reporting_Bugs /Peter -----Ursprungligt meddelande----- Från: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] För covici@ccs.covici.com Skickat: den 13 augusti 2012 09:38 Till: FreeSWITCH Users Help Ämne: Re: [Freeswitch-users] fs crashs after more then 100 dtmf events on a call OK, here I go showing my ignorance -- what is gcore --sounds like it could be quite useful, but I don't seem to have it in the repository, except as a package manager! Ken Rice <krice@freeswitch.org> wrote:
get a back trace and open a jira.. also if you can atach the script you are using to the jira... if its just hanging use gcore to get the coredump then follow the rest of the back trace guidelines on the wiki
Ken Sent from my iPad
On Aug 12, 2012, at 10:34 PM, covici@ccs.covici.com wrote:
Not sure that is a good design, but I think you are running in to the maximum number of forwards. There is a variable for that, check the wiki.
Thomas Hoellriegel <admin@blindi.net> wrote:
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 ___________________________________________________________________ ______ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
Join Us At ClueCon - Aug 7-9, 2012
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
-- Your life is like a penny. You're going to lose it. The question is: How do you spend it?
John Covici covici@ccs.covici.com
____________________________________________________________________ _____ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
Join Us At ClueCon - Aug 7-9, 2012
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-u sers http://www.freeswitch.org
______________________________________________________________________ ___ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
Join Us At ClueCon - Aug 7-9, 2012
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-use rs http://www.freeswitch.org
-- Your life is like a penny. You're going to lose it. The question is: How do you spend it? John Covici covici@ccs.covici.com _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com Join Us At ClueCon - Aug 7-9, 2012 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 !DSPAM:5028add332761199412569!
Hi peter, thanks for you helpful message. I describe a easy way to crash fs. You can reproduce this situation. step1 recording 3 soundfiles and store in a directory. step2 the luacode: -- simply script to crash freeswitch -- session:sleep(100); session:answer() session:sleep(200); session:setInputCallback("onInput", ""); function onInput(s, type, obj) freeswitch.consoleLog("info", "Callback with type " .. type .. "\n"); -- freeswitch.consoleLog("info", "DTMF Digit: " .. obj.digit .. "\n"); if ( obj['digit'] == '1' ) then -- if (obj.digit == "1") then -- session:streamFile(msg_file_play) session:streamFile("/usr/local/freeswitch/sounds/nummer1.alaw") read_msg_menu() return("false"); end if ( obj['digit'] == '2' ) then -- if (obj.digit == "2") then -- session:streamFile(msg_file_play) session:streamFile("/usr/local/freeswitch/sounds/nummer2.alaw") read_msg_menu() return("false"); end if ( obj['digit'] == '3' ) then -- if (obj.digit == "3") then -- session:streamFile(msg_file_play) session:streamFile("/usr/local/freeswitch/sounds/nummer3.alaw") read_msg_menu() return("false"); end end function read_msg_menu( ) session:setInputCallback("onInput"); session:streamFile("/usr/local/freeswitch/sounds/nummer1.alaw") end read_msg_menu() step3 put this in your dialplan. for example: <!-- crash fs via simply luascript --> <extension name="crashtest" > <condition field="destination_number" expression="^104$"> <action application="lua" data="simply-crash.lua"/> </condition> </extension> step4 ring the extension. Heare the testprompt. Press 60 70 times 1 during the announcement. fs crashs. The system is from current git: FreeSWITCH Version 1.2.0-rc2+git~20120813T041310Z~aad07c6243 (1.2.0-rc2; git at commit aad07c6243 on Mon, 13 Aug 2012 04:13:10 Z) This is very danger, then to plan a phonecast (newsystem) or public voiceforums. 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
Please report to Jira, or it will probably just get lost somewhere on this list. /Peter 13 aug 2012 kl. 16:58 skrev "Thomas Hoellriegel" <admin@blindi.net>:
Hi peter, thanks for you helpful message.
I describe a easy way to crash fs.
You can reproduce this situation.
step1 recording 3 soundfiles and store in a directory.
step2 the luacode:
-- simply script to crash freeswitch -- session:sleep(100); session:answer() session:sleep(200); session:setInputCallback("onInput", ""); function onInput(s, type, obj) freeswitch.consoleLog("info", "Callback with type " .. type .. "\n"); -- freeswitch.consoleLog("info", "DTMF Digit: " .. obj.digit .. "\n");
if ( obj['digit'] == '1' ) then -- if (obj.digit == "1") then -- session:streamFile(msg_file_play) session:streamFile("/usr/local/freeswitch/sounds/nummer1.alaw") read_msg_menu() return("false");
end
if ( obj['digit'] == '2' ) then -- if (obj.digit == "2") then -- session:streamFile(msg_file_play) session:streamFile("/usr/local/freeswitch/sounds/nummer2.alaw") read_msg_menu() return("false");
end
if ( obj['digit'] == '3' ) then -- if (obj.digit == "3") then -- session:streamFile(msg_file_play) session:streamFile("/usr/local/freeswitch/sounds/nummer3.alaw") read_msg_menu() return("false");
end
end
function read_msg_menu( ) session:setInputCallback("onInput"); session:streamFile("/usr/local/freeswitch/sounds/nummer1.alaw") end
read_msg_menu()
step3 put this in your dialplan. for example: <!-- crash fs via simply luascript --> <extension name="crashtest" > <condition field="destination_number" expression="^104$"> <action application="lua" data="simply-crash.lua"/> </condition> </extension>
step4 ring the extension. Heare the testprompt. Press 60 70 times 1 during the announcement. fs crashs.
The system is from current git: FreeSWITCH Version 1.2.0-rc2+git~20120813T041310Z~aad07c6243 (1.2.0-rc2; git at commit aad07c6243 on Mon, 13 Aug 2012 04:13:10 Z)
This is very danger, then to plan a phonecast (newsystem) or public voiceforums. 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
!DSPAM:5029127b32767892227582! _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
Join Us At ClueCon - Aug 7-9, 2012
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
!DSPAM:5029127b32767892227582!
Hi Peter, sorry, im.m a blind user. I can only use a textbased browser lynx on linux. The pastebin interface can.t be used with text only browsers. I have store the cord dump on my website: You can download at: www.blindi.net/core.gz wget wget www.blindi.net/core.gz fs breaks with a segfault. 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
I use pastebin all the time with lynx with no problems -- write me off list for more information. Thomas Hoellriegel <admin@blindi.net> wrote:
Hi Peter, sorry, im.m a blind user. I can only use a textbased browser lynx on linux. The pastebin interface can.t be used with text only browsers.
I have store the cord dump on my website: You can download at: www.blindi.net/core.gz wget wget www.blindi.net/core.gz
fs breaks with a segfault.
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 _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
Join Us At ClueCon - Aug 7-9, 2012
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
-- Your life is like a penny. You're going to lose it. The question is: How do you spend it? John Covici covici@ccs.covici.com
Am 14.08.12 um 02:16 schrieb covici@ccs.covici.com:
I use pastebin all the time with lynx with no problems -- write me off list for more information.
How can you pate or upload a logfile? I using debian squeeze in a text only console with a brailledisplay. I can cut an paste with the brailledisplay only 25x80 blocks. This is my problem. I have tested with screen. Screen don.t pate a big logfile correctly. I have create the copedump from fs. This is not the problem. The problem ist: to paste the needed informations. 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
If you are using lynx, and you are on an edit field, you can do control-x e and this will get you into your preferred editor -- please make sure you have selected that in the lynx options and then you can do whatever you want. Hope this helps. Thomas Hoellriegel <admin@blindi.net> wrote:
Am 14.08.12 um 02:16 schrieb covici@ccs.covici.com:
I use pastebin all the time with lynx with no problems -- write me off list for more information.
How can you pate or upload a logfile? I using debian squeeze in a text only console with a brailledisplay.
I can cut an paste with the brailledisplay only 25x80 blocks. This is my problem. I have tested with screen. Screen don.t pate a big logfile correctly.
I have create the copedump from fs. This is not the problem. The problem ist: to paste the needed informations.
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 _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
Join Us At ClueCon - Aug 7-9, 2012
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
-- Your life is like a penny. You're going to lose it. The question is: How do you spend it? John Covici covici@ccs.covici.com
participants (3)
-
covici@ccs.covici.com
-
Peter Olsson
-
Thomas Hoellriegel