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
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