[Freeswitch-users] Lua script hangup detect
Neil Patel
neilp at cs.stanford.edu
Thu Jun 10 10:01:29 PDT 2010
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:
session = freeswitch.Session(DIALSTRING)
session:setVariable("caller_id_number", phonenum)
session:setVariable("playback_terminators", "#");
session:setHangupHook("hangup");
while (session:ready() == true) do
...
<when call is never picked up, session stays true>
How do I detect if the call was never accepted?
-Neil
On Thu, Feb 11, 2010 at 2:51 PM, Mike van Lammeren <mike at van.lammeren.net>wrote:
> D'oh!
>
> 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.
>
> I wrote a Lua test script that makes 10 queries against a MySQL database,
> then ran it repeatedly.
>
> 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.
>
> Thanks, Brian, for the heads up!
>
> Mike van Lammeren
>
>
> On Thu, Feb 11, 2010 at 8:26 AM, Brian West <brian at freeswitch.org> wrote:
>
>> Yes ODBC doesn't seem to leak... while the native one leaks like a sieve.
>>
>> /b
>>
>> On Feb 11, 2010, at 2:56 AM, Nazim Agabekov wrote:
>>
>> > I'm using luasql with ODBC MySQL driver in production. I've never tried
>> > to use luasql with "native" mysql driver, but ODBC one works great.
>>
>>
>> _______________________________________________
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100610/ac7772db/attachment.html
More information about the FreeSWITCH-users
mailing list