<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
That is indeed what I was looking for, thanks for your help.<br>
<br>
Adam<br>
<br>
On 3:59 PM, Gerald Weber wrote:
<blockquote
cite="mid:%3CD1925DECD316894DAADB84076C1B7D82366F0538@exchange.besharp.at%3E"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Word 14 (filtered
medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Vorformatiert Zchn";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Sprechblasentext Zchn";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        color:black;}
span.HTMLVorformatiertZchn
        {mso-style-name:"HTML Vorformatiert Zchn";
        mso-style-priority:99;
        mso-style-link:"HTML Vorformatiert";
        font-family:Consolas;
        color:black;}
span.E-MailFormatvorlage19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.SprechblasentextZchn
        {mso-style-name:"Sprechblasentext Zchn";
        mso-style-priority:99;
        mso-style-link:Sprechblasentext;
        font-family:"Tahoma","sans-serif";
        color:black;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size: 11pt; font-family:
"Calibri","sans-serif"; color: rgb(31,
73, 125);">Morning,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family:
"Calibri","sans-serif"; color: rgb(31,
73, 125);"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family:
"Calibri","sans-serif"; color: rgb(31,
73, 125);" lang="EN-US">i had the same problem a while ago,
reported the jira below and anthm made some changes tu
mod_lua.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family:
"Calibri","sans-serif"; color: rgb(31,
73, 125);" lang="EN-US">If you put “error()” as last command
in your hangup handler (see <a moz-do-not-send="true"
href="http://wiki.freeswitch.org/wiki/Mod_lua#session:setHangupHook">http://wiki.freeswitch.org/wiki/Mod_lua#session:setHangupHook</a>)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family:
"Calibri","sans-serif"; color: rgb(31,
73, 125);" lang="EN-US">No error is dumped in the log.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family:
"Calibri","sans-serif"; color: rgb(31,
73, 125);" lang="EN-US">Both ‘return “exit”’ and ‘return
“die”’ leave an error in the logfiles.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family:
"Calibri","sans-serif"; color: rgb(31,
73, 125);" lang="EN-US">A little bit misleading in my
opinion, but if you know how to handle it…it works.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family:
"Calibri","sans-serif"; color: rgb(31,
73, 125);" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family:
"Calibri","sans-serif"; color: rgb(31,
73, 125);" lang="EN-US">Tried 15mins ago with latest git
FreeSWITCH Version 1.0.head (git-ea975c3 2012-02-28 19-21-04
-0500)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family:
"Calibri","sans-serif"; color: rgb(31,
73, 125);" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family:
"Calibri","sans-serif"; color: rgb(31,
73, 125);" lang="EN-US">Regards<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family:
"Calibri","sans-serif"; color: rgb(31,
73, 125);" lang="EN-US">gw<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family:
"Calibri","sans-serif"; color: rgb(31,
73, 125);" lang="EN-US"> <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family:
"Calibri","sans-serif"; color: rgb(31,
73, 125);" lang="EN-US"><o:p> </o:p></span></p>
<div>
<div style="border-right: medium none; border-width: 1pt
medium medium; border-style: solid none none; border-color:
rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color;
padding: 3pt 0cm 0cm;">
<p class="MsoNormal"><b><span style="font-size: 10pt;
font-family:
"Tahoma","sans-serif"; color:
windowtext;" lang="EN-US">Von:</span></b><span
style="font-size: 10pt; font-family:
"Tahoma","sans-serif"; color:
windowtext;" lang="EN-US">
<a class="moz-txt-link-abbreviated" href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a> [mail</span><span
style="font-size: 10pt; font-family:
"Tahoma","sans-serif"; color:
windowtext;" lang="DE"><a class="moz-txt-link-abbreviated" href="mailto:to:freeswitch-users-bounces@lists.freeswitch.org">to:freeswitch-users-bounces@lists.freeswitch.org</a>]
<b>Im Auftrag von </b>Adam Kelloway<br>
<b>Gesendet:</b> Dienstag, 06. März 2012 18:36<br>
<b>An:</b> FreeSWITCH Users Help<br>
<b>Betreff:</b> Re: [Freeswitch-users] Any alternative
to repetitive lua session:ready() calls?<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Kind of, all of those solutions consider
the script exiting an 'error'. I am looking for something that
exits without considering it an error and thus does not emit
an [ERR] log.<br>
<br>
On 3:59 PM, Peter Olsson wrote: <o:p></o:p></p>
<pre>Maybe this is what you are looking for?<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>commit 09ad887948f7513725ca8b53bdfe721d9008e73b<o:p></o:p></pre>
<pre>Author: Anthony Minessale <a moz-do-not-send="true" href="mailto:anthm@freeswitch.org"><anthm@freeswitch.org></a><o:p></o:p></pre>
<pre>Date: Fri Jan 27 19:03:04 2012 -0600<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre> FS-3841 --resolve ok return the string "die" or "exit" from hanguphook to cause an error or call s:destroy("any err message"); either should now halt the script<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre>________________________________________<o:p></o:p></pre>
<pre>Från: <a moz-do-not-send="true" href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a> [<a moz-do-not-send="true" href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a>] f&#246;r Adam Kelloway [<a moz-do-not-send="true" href="mailto:adam.kelloway@newpace.ca">adam.kelloway@newpace.ca</a>]<o:p></o:p></pre>
<pre>Skickat: den 6 mars 2012 17:22<o:p></o:p></pre>
<pre>Till: FreeSWITCH Users Help<o:p></o:p></pre>
<pre>Ämne: [Freeswitch-users] Any alternative to repetitive lua session:ready() calls?<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Hi there,<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>If I am running a lua script during a call, and the call terminates<o:p></o:p></pre>
<pre>(caller hangs up, for instance), the lua script continues to execute<o:p></o:p></pre>
<pre>while the session has already been terminated. This causes ERR entries<o:p></o:p></pre>
<pre>in the freeswitch log, which I would like to try and minimize. The only<o:p></o:p></pre>
<pre>way I can see doing this is to frequently call session:ready() before<o:p></o:p></pre>
<pre>doing anything that could break the script. Is there a better way to<o:p></o:p></pre>
<pre>exit a script cleanly, without having to add X number of session:ready()<o:p></o:p></pre>
<pre>calls scattered about the script? Currently, I only call it once (at the<o:p></o:p></pre>
<pre>beginning of the script). I tried using the hangup hook, but I'm not<o:p></o:p></pre>
<pre>sure how I can get it to immediately exit the script.<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Thanks,<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Adam<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>_________________________________________________________________________<o:p></o:p></pre>
<pre>Professional FreeSWITCH Consulting Services:<o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a><o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>FreeSWITCH-powered IP PBX: The CudaTel Communication Server<o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="http://www.cudatel.com">http://www.cudatel.com</a><o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Official FreeSWITCH Sites<o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="http://www.freeswitch.org">http://www.freeswitch.org</a><o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a><o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="http://www.cluecon.com">http://www.cluecon.com</a><o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>FreeSWITCH-users mailing list<o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><o:p></o:p></pre>
<pre>UNSUBSCRIBE:<a moz-do-not-send="true" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="http://www.freeswitch.org">http://www.freeswitch.org</a><o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>!DSPAM:4f56388f32766945510869!<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">-- <br>
Adam<br clear="all">
-- <br clear="all">
<o:p></o:p></p>
<table class="MsoNormalTable" style="color: rgb(61, 35, 22);"
id="signature" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td rowspan="2" style="padding: 0.75pt;">
<p class="MsoNormal" style="text-align: center;"
align="center"><span style="font-size: 10pt;"><img
moz-do-not-send="true" id="_x0000_i1025"
src="imap://adam%2Ekelloway@imap.newpace.ca:993/fetch%3EUID%3E/freeswitch-dev%3E2467?part=1.2&filename=Re%3A%20%5BFreeswitch-users%5D%20Any%20alternative%20to.eml&realtype=message/rfc822&header=quotebody&filename=image001.png"
alt="NewPace Logo" border="0" height="50"
width="50"><o:p></o:p></span></p>
</td>
<td rowspan="5" style="padding: 0.75pt;"><br>
</td>
<td style="padding: 0.75pt;"><br>
</td>
<td rowspan="5" style="padding: 0.75pt;"><br>
</td>
<td style="padding: 0.75pt;">
<p class="MsoNormal"><b><span style="font-size: 11pt;">Adam
Kelloway</span></b><span style="font-size:
10pt;"><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td rowspan="4" style="background: none repeat scroll 0%
0% rgb(168, 207, 56); padding: 0.75pt;"><br>
</td>
<td style="padding: 0.75pt;">
<p class="MsoNormal"><span style="font-size: 10pt;">Software
Engineer, NewPace<o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="padding: 0.75pt;">
<p class="MsoNormal" style="text-align: right;"
align="right"><span style="font-size: 10pt;">phone<o:p></o:p></span></p>
</td>
<td style="padding: 0.75pt;">
<p class="MsoNormal"><span style="font-size: 10pt;">+1 (902) 406–8375 x1031<o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="padding: 0.75pt;">
<p class="MsoNormal" style="text-align: right;"
align="right"><span style="font-size: 10pt;">email<o:p></o:p></span></p>
</td>
<td style="padding: 0.75pt;">
<p class="MsoNormal"><span style="font-size: 10pt;"><a
moz-do-not-send="true"
href="mailto:Adam.Kelloway@newpace.com"><span
style="color: rgb(61, 35, 22);
text-decoration: none;">Adam.Kelloway@NewPace.com</span></a><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="padding: 0.75pt;">
<p class="MsoNormal" style="text-align: right;"
align="right"><span style="font-size: 10pt;"><a
moz-do-not-send="true"
href="aim:GoIm?screenname=Adam.Kelloway@newpace.com"><span
style="color: rgb(61, 35, 22);
text-decoration: none;">aim</span></a>/<a
moz-do-not-send="true"
href="msnim:chat?contact=Adam.Kelloway@newpace.com"><span
style="color: rgb(61, 35, 22);
text-decoration: none;">msn</span></a><o:p></o:p></span></p>
</td>
<td style="padding: 0.75pt;">
<p class="MsoNormal"><span style="font-size: 10pt;"><a
moz-do-not-send="true"
href="aim:GoIm?screenname=Adam.Kelloway@newpace.ca"><span
style="color: rgb(61, 35, 22);
text-decoration: none;">Adam.Kelloway</span></a>@NewPace.ca<o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span style="color: windowtext;"><o:p> </o:p></span></p>
</div>
</div>
</blockquote>
<br>
<div class="moz-signature">-- <br>
Adam<br clear="all">
-- <br clear="all">
<table id="signature" style="font-size: 85%; color: rgb(61, 35,
22);" border="0" cellpadding="1" cellspacing="0">
<tbody>
<tr>
<td rowspan="2" align="center" valign="middle"><img
moz-do-not-send="false"
src="cid:part1.07050105.09040504@newpace.ca"
alt="NewPace Logo" height="50" width="50"></td>
<td rowspan="6" width="6px"><br>
</td>
<td><br>
</td>
<td rowspan="6" width="6px"><br>
</td>
<td><font style="font-weight: bold; font-size: 110%;">Adam
Kelloway</font></td>
</tr>
<tr>
<td rowspan="6" style="font-weight: bold; font-size: 100%;"
bgcolor="#a8cf38" width="1px"><br>
</td>
<td>Software Engineer, NewPace</td>
</tr>
<tr>
<td align="right">phone</td>
<td>+1 (902) 406–8375 x1031</td>
</tr>
<tr>
<td align="right">email</td>
<td><a href="mailto:Adam.Kelloway@newpace.com"
style="text-decoration: none; color: rgb(61, 35, 22);">Adam.Kelloway@NewPace.com</a></td>
</tr>
<tr>
<td align="right"><a
href="aim:GoIm?screenname=Adam.Kelloway@newpace.com"
style="text-decoration: none; color: rgb(61, 35, 22);">aim</a>/<a
href="msnim:chat?contact=Adam.Kelloway@newpace.com"
style="text-decoration: none; color: rgb(61, 35, 22);">msn</a></td>
<td><a href="aim:GoIm?screenname=Adam.Kelloway@newpace.ca"
style="text-decoration: none; color: rgb(61, 35, 22);">Adam.Kelloway</a>@NewPace.ca</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>