I have tested the SVN trunk 15341. When the following scripts are executed, it seems to do the memory leak. Is the mistake found in the following scripts? Or Is there a problem in mod_spidermonkey? -- test script -- session.execute("ring_ready"); session.answer(); session.setVariable("ringback", "%(1000, 2000, 440, 460)"); var bleg = new Session(); var sound_wav = "sounds/test01.wav"; var sound_leg = "both"; var op = "api_on_answer=uuid_broadcast "+session.uuid+" "+sound_wav+" "+sound_leg; var ret = bleg.originate(session, "{"+op+"}" + "sofia/gateway/profile0_gateway1/1000"); if(!session.ready()){ return; } if(!ret){ // bleg not answered. var sound_wav = "sounds/test02.wav"; session.streamFile(sound_wav); if(session.ready()){ session.hangup(); } return; } if(bleg.ready()){ bridge(session, bleg); }
if you suspect a memory leak can you please update to the latest SVN trunk (over 1000 revs higher than yours) then reproduce the problem under valgrind and send the report in a jira http://jira.freeswitch.org valgrind --tool=memcheck --log-file=vg.log --leak-check=full --leak-resolution=high --show-reachable=yes /usr/local/freeswitch/bin/freeswitch -vg 2010/1/26 まつばら ともや <matomoya@yahoo.co.jp>
I have tested the SVN trunk 15341. When the following scripts are executed, it seems to do the memory leak. Is the mistake found in the following scripts? Or Is there a problem in mod_spidermonkey?
-- test script -- session.execute("ring_ready"); session.answer(); session.setVariable("ringback", "%(1000, 2000, 440, 460)");
var bleg = new Session(); var sound_wav = "sounds/test01.wav"; var sound_leg = "both"; var op = "api_on_answer=uuid_broadcast "+session.uuid+" "+sound_wav+" "+sound_leg; var ret = bleg.originate(session, "{"+op+"}" + "sofia/gateway/profile0_gateway1/1000"); if(!session.ready()){ return; }
if(!ret){ // bleg not answered. var sound_wav = "sounds/test02.wav"; session.streamFile(sound_wav); if(session.ready()){ session.hangup(); } return; }
if(bleg.ready()){ bridge(session, bleg); }
_______________________________________________ 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
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:+19193869900
participants (2)
-
Anthony Minessale
-
まつばら ともや