I've noticed that session:ready() stays set to true when initiating a call from lua and the end point never picks up or rejects the call:<div><br></div><div><div>session = freeswitch.Session(DIALSTRING)</div><div>session:setVariable("caller_id_number", phonenum)</div>
<div>session:setVariable("playback_terminators", "#");</div><div>session:setHangupHook("hangup");</div><div><br></div><div>while (session:ready() == true) do</div><div>...</div><div><when call is never picked up, session stays true></div>
<div><br></div><div>How do I detect if the call was never accepted?</div><div><br></div><div>-Neil</div><br><div class="gmail_quote">On Thu, Feb 11, 2010 at 2:51 PM, Mike van Lammeren <span dir="ltr"><<a href="mailto:mike@van.lammeren.net">mike@van.lammeren.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">D'oh!<br><br><div>I am currently working on a project that uses Lua and the native MySQL driver, so as soon as I read this comment, I decided that I had better do a bit of research.</div>
<div><br></div><div>I wrote a Lua test script that makes 10 queries against a MySQL database, then ran it repeatedly.</div>
<div><br></div><div>My results show that "leaks like a sieve" is quite correct. To me, it doesn't look like any memory is released, ever. After only 5000 queries or so, the memory allocated for FreeSWITCH balloons from 15 Mb to 50 Mb, and never goes back down.</div>
<div><br></div><div>Thanks, Brian, for the heads up!</div><div><br></div><div>Mike van Lammeren</div><div><br><br><div class="gmail_quote"><div class="im">On Thu, Feb 11, 2010 at 8:26 AM, Brian West <span dir="ltr"><<a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a>></span> wrote:<br>
</div><div><div></div><div class="h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Yes ODBC doesn't seem to leak... while the native one leaks like a sieve.<br>
<font color="#888888"><br>
/b<br>
</font><div><br>
On Feb 11, 2010, at 2:56 AM, Nazim Agabekov wrote:<br>
<br>
> I'm using luasql with ODBC MySQL driver in production. I've never tried<br>
> to use luasql with "native" mysql driver, but ODBC one works great.<br>
<br>
<br>
</div><div><div></div><div>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div></div></div><br></div>
<br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>