[Freeswitch-users] Catching hangups

Michael Jerris mike at jerris.com
Tue Dec 9 08:01:51 PST 2008


On Dec 9, 2008, at 9:10 AM, Joe Bain wrote:

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

>> 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
>
>
> Ah, I should have read more carefully!
>
> The dialplan is here and the two important lua scripts are here and  
> here, 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

We just tested this with current svn trunk and it appears to work  
fine, could you try updating and see if it is still a problem for you

Mike

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20081209/d13969c1/attachment-0002.html 


More information about the FreeSWITCH-users mailing list