<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Dec 9, 2008, at 9:10 AM, Joe Bain wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>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 <a href="http://pastebin.freeswitch.org/6373">http://pastebin.freeswitch.org/6373</a> 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'.</div> <div> </div> <div>Thanks in advance if anyone can solve this or offer any advice.</div> <div> </div> <div>Joe<br><br></div> <div class="gmail_quote">2008/12/9 Joe Bain <span dir="ltr"><<a href="mailto:mrjoebain@gmail.com">mrjoebain@gmail.com</a>></span><br> <blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"> <div class="gmail_quote">2008/12/9 Ivan C Myrvold <span dir="ltr"><<a href="mailto:ivan@myrvold.org" target="_blank">ivan@myrvold.org</a>></span> <div> <div></div> <div class="Wj3C7c"><br> <blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"> <div style="WORD-WRAP: break-word">Did you read carefully when asked to provide login and password? <div>The login and password is there, don't use your own freeswitch login.</div> <div><br></div> <div>Ivan</div> <div><br> <div> <div>Den 9. des.. 2008 kl. 10:27 skrev Joe Bain:</div> <div> <div></div> <div><br> <blockquote type="cite"> <div class="gmail_quote">On Mon, Dec 8, 2008 at 8:57 AM, Joe Bain <<a href="mailto:mrjoebain@gmail.com" target="_blank">mrjoebain@gmail.com</a>> wrote:<br>> Hi,<br>><br>> I'm writing an IVR in Lua and am having problems dealing with hangups<br> > cleanly. Very often session:ready() reports true long after I have hung up<br>> and the hangup hook function I have set doesn't get called either. It seems<br>> to report that the session is active indefinitely in some cases where a loop<br> > keeps trying to get some dtmf key presses. Is there any trick to using<br>> session:ready() or the hangup hook that I might have missed?<br>><br>> On a slightly related point I can't seem to access the session properties,<br> > e.g. session.caller_id_num has a value of nil. Any thoughts here?<br>></div></blockquote></div></div></div></div></div></blockquote></div></div></div></blockquote></div></blockquote><br><blockquote type="cite"><div class="gmail_quote"><blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><div class="gmail_quote"><div><div class="Wj3C7c"><blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><div style="WORD-WRAP: break-word"><div><div><div><div><blockquote type="cite"><div class="gmail_quote"><span class="Apple-style-span" style="-webkit-text-stroke-width: -1; ">Joe,</span></div><div class="gmail_quote"><blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><br>A few questions... what svn rev are you running? Which operating<br>system? Finally, is it possible for you to put your dialplan and Lua<br> script up at <a href="http://pastebin.freeswitch.org/" target="_blank">pastebin.freeswitch.org</a>?<br><br>Thanks,<br>MC<br></blockquote> <div>Hi,</div> <div> </div> <div>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.</div> <div> </div> <div>Joe</div></div></blockquote></div></div></div></div></div></blockquote></div></div></div><div><br>Ah, I should have read more carefully!</div> <div> </div> <div>The dialplan is <a href="http://pastebin.freeswitch.org/6372" target="_blank">here</a> and the two important lua scripts are <a href="http://pastebin.freeswitch.org/6371" target="_blank">here</a> and <a href="http://pastebin.freeswitch.org/6370" target="_blank">here</a>, 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.</div> <div> </div><font color="#888888"> <div>Joe</div></font></blockquote></div></blockquote></div><br><div>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</div><div><br></div><div>Mike</div><div><br></div></body></html>