[Freeswitch-users] Catching hangups

Joe Bain mrjoebain at gmail.com
Tue Dec 9 06:10:00 PST 2008


Ok I have been testing more and I have reduced my problem to a pretty short
and simple Lua script. I've posted it at
http://pastebin.freeswitch.org/6373 and
this gets called straight from the dialplan. From my experience so far it
only exits after a caller hangup about 1 in 10 times. Most of the time it
continues to loop until I do 'hupall'.

Thanks in advance if anyone can solve this or offer any advice.

Joe

2008/12/9 Joe Bain <mrjoebain at gmail.com>

> 2008/12/9 Ivan C Myrvold <ivan at myrvold.org>
>
>  Did you read carefully when asked to provide login and password? The
>> login and password is there, don't use your own freeswitch login.
>>
>> Ivan
>>
>>  Den 9. des.. 2008 kl. 10:27 skrev Joe Bain:
>>
>>  On Mon, Dec 8, 2008 at 8:57 AM, Joe Bain <mrjoebain at gmail.com> wrote:
>> > Hi,
>> >
>> > I'm writing an IVR in Lua and am having problems dealing with hangups
>> > cleanly. Very often session:ready() reports true long after I have hung
>> up
>> > and the hangup hook function I have set doesn't get called either. It
>> seems
>> > to report that the session is active indefinitely in some cases where a
>> loop
>> > keeps trying to get some dtmf key presses. Is there any trick to using
>> > session:ready() or the hangup hook that I might have missed?
>> >
>> > On a slightly related point I can't seem to access the session
>> properties,
>> > e.g. session.caller_id_num has a value of nil. Any thoughts here?
>> >
>> > Thanks in advance,
>> >
>> > Joe Bain
>> > _______________________________________________
>> > 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
>> 2008/12/8 Michael Collins <msc at freeswitch.org>
>>
>>> Joe,
>>>
>>> A few questions... what svn rev are you running? Which operating
>>> system? Finally, is it possible for you to put your dialplan and Lua
>>> script up at pastebin.freeswitch.org?
>>>
>>> Thanks,
>>> MC
>>>
>> Hi,
>>
>> I'm running "FreeSWITCH Version 1.0.trunk (10175M)" on Windows. I can post
>> the dialplan and lua script though at the moment I can't seem to log in to
>> the pastebin, I just became a member on the freeswitch homepage but the
>> pass/username isn't being accepted.
>>
>> Joe
>> _______________________________________________
>> 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
>>
>>
> Ah, I should have read more carefully!
>
> The dialplan is here <http://pastebin.freeswitch.org/6372> and the two
> important lua scripts are here <http://pastebin.freeswitch.org/6371> and
> here <http://pastebin.freeswitch.org/6370>, the first calls the second. I
> didn't include all the Lua script as the problem appears right at the start
> (as well as throughout) if the user hangs up when the IVR is speaking
> (asking for an id number) then it seems to never get a hangup and loops
> trying to get the id number.
>
> Joe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20081209/c481ef43/attachment-0002.html 


More information about the FreeSWITCH-users mailing list