<div dir="auto"><div>Hi, </div><div dir="auto"><br></div><div dir="auto">If you don't wish to serve an action from your Lua script, you must return not found. </div><div dir="auto"><br></div><div dir="auto">This is from confluence doc:</div><div dir="auto"><br></div><div dir="auto"><p style="margin:0px 0px 1em;padding:0px;border:0px;outline:0px;font-size:16.5px;font-family:sans-serif;color:rgb(41,41,41);background-color:rgb(255,255,255)">If your LUA application receives a request and you don't wish to serve dialplan or like to fallback to plain XML dialplan, then you should return the following "not found" result.</p><div style="margin:0px;padding:0px;border:1px solid;outline:0px;font-size:15px;font-family:sans-serif;background-color:rgb(255,255,255);color:rgb(41,41,41)" dir="auto"><div style="margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit"><pre style="margin-top:0px;margin-bottom:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;line-height:1.3"><?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="freeswitch/xml">
  <section name="result">
    <result status="not found" />
  </section>
</document></pre></div></div><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr"><br></div><div dir="ltr" class="gmail_attr"><br></div><div dir="ltr" class="gmail_attr">Best regards, </div><div dir="ltr" class="gmail_attr">Mircea </div><div dir="ltr" class="gmail_attr"><br></div><div dir="ltr" class="gmail_attr">mar., 30 mar. 2021, 22:05 Stefan Kainz <<a href="mailto:s.kainz@wnt.at">s.kainz@wnt.at</a>> a scris:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div style="word-wrap:break-word;line-break:after-white-space">
Hi, 
<div><br>
</div>
<div>The lua script is called on a directory request. </div>
<div>Your know, autoload_configs, lua.conf.xml: </div>
<div><br>
</div>
<div>
<div><param name="xml-handler-script" value="register.lua"/></div>
<div><param name="xml-handler-bindings" value="directory,dialplan”/></div>
</div>
<div><br>
</div>
<div>Maybe the dialplan in the xml-handler-bindings is doing something I don’t want … </div>
<div><br>
</div>
<div>In the register.lua I do basic sanity checks, and of course a database query that returns the user-data.</div>
<div>After that I generate the xml that gets sent to freeswitch. </div>
<div><br>
</div>
<div>Yesterday I added cacheable=“120" to the <user> tag.</div>
<div>Thats no solution of course, but it looks like when the data is in the cache the lua script doesn’t get called. </div>
<div>So maybe the error won’t occur as often as before … </div>
<div><br>
</div>
<div>But, I have an idea, maybe you can confirm this. </div>
<div>With dialplan enabled in xml-handler-bindings, the lua script is also called on calls, not just on registrations. </div>
<div>( I think that’s necessary to authenticate the users on an outgoing call, please correct me if im wrong )</div>
<div>In the register.lua I only handle directory-requests and action==user_call.</div>
<div>All other requests to my register.lua are unhandled and therefore I don’t return any xml at all. </div>
<div><br>
</div>
<div>Maybe I get a request to my register.lua that is not a directory-request and not a user_call and since I don’t return a xml, Sofia hangs.</div>
<div><br>
</div>
<div>Does that sound plausible?</div>
<div><br>
</div>
<div>Thank you in advance!</div>
<div><br>
</div>
<div>Regards, </div>
<div>Stefan</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div><br>
<blockquote type="cite">
<div>On 29.03.2021, at 23:57, David Villasmil <<a href="mailto:david.villasmil.work@gmail.com" target="_blank" rel="noreferrer">david.villasmil.work@gmail.com</a>> wrote:</div>
<br>
<div>
<div dir="auto">That was going to be my next question: what’s lua doing and at what point?</div>
<div dir="auto"><br>
</div>
<div dir="auto">
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Mon, 29 Mar 2021 at 16:09, Stefan Kainz <<a href="mailto:s.kainz@wnt.at" target="_blank" rel="noreferrer">s.kainz@wnt.at</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">
<div lang="DE" link="blue" vlink="purple" style="word-wrap:break-word">
<div>
<p class="MsoNormal"><span lang="EN-US">I just found an issue on jira, where it seems someone had the same problem I have.
<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><a href="https://freeswitch.org/jira/browse/FS-3328" target="_blank" rel="noreferrer">https://freeswitch.org/jira/browse/FS-3328</a><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">I don’t have mod_xml_curl enabled though.
<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">But knowing that sofia can handle only one register at a time and then blocking all subsequent Registers is a good starting point …
<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Regards, <u></u><u></u></span></p>
</div>
</div>
<div lang="DE" link="blue" vlink="purple" style="word-wrap:break-word">
<div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<div>
<div style="border-style:solid none none;border-top-width:1pt;padding:3pt 0cm 0cm;border-top-color:rgb(225,225,225)">
<p class="MsoNormal"><b>Von:</b> FreeSWITCH-users <<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank" rel="noreferrer">freeswitch-users-bounces@lists.freeswitch.org</a>>
<b>Im Auftrag von </b>Bote Man<br>
<b>Gesendet:</b> Montag, 29. März 2021 15:45<br>
<b>An:</b> 'FreeSWITCH Users Help' <<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank" rel="noreferrer">freeswitch-users@lists.freeswitch.org</a>><br>
<b>Betreff:</b> Re: [Freeswitch-users] Internal Interface suddenly freezes<u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><span lang="EN-US">The one common element is your Lua script.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">I am certainly no expert on script writing, but I have seen a number of problems on the mailing list over the years with scripts doing “too much” work during critical sections of the dialplan. Perhaps there is
 a race condition?<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Hope this helps.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10pt;color:rgb(127,127,127)">---
<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10pt;color:rgb(127,127,127)">John Boteler
<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10pt;color:rgb(127,127,127)">BnC Group U.S.A.
<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<div>
<div style="border-style:solid none none;border-top-width:1pt;padding:3pt 0cm 0cm;border-top-color:rgb(225,225,225)">
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> FreeSWITCH-users <<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank" rel="noreferrer">freeswitch-users-bounces@lists.freeswitch.org</a>>
<b>On Behalf Of </b>Stefan Kainz<br>
<b>Sent:</b> Monday, 29 March, 2021 07:49<br>
<b>To:</b> FreeSWITCH Users Help <<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank" rel="noreferrer">freeswitch-users@lists.freeswitch.org</a>><br>
<b>Subject:</b> Re: [Freeswitch-users] Internal Interface suddenly freezes<u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Thank you for your answer!<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Hmm, I also tested it on two completely different servers ( no virtualization ) and the problem exists on both.
<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Im also going to try it on a third server, also completely different, but I cant really image that this is a hardware-thing …
<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">We also have many freeswitch servers in production ( Exactly the same hardware as the server with the problem ).
<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">The only difference is that one of those servers handles registrations, and one doesn’t.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">The one handling the registrations has the problem, the other one doesn’t.
<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Its really strange … <u>
</u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Regards,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<div style="border-style:solid none none;border-top-width:1pt;padding:3pt 0cm 0cm;border-top-color:rgb(225,225,225)">
<p class="MsoNormal"><b>Von:</b> FreeSWITCH-users <<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank" rel="noreferrer">freeswitch-users-bounces@lists.freeswitch.org</a>>
<b>Im Auftrag von </b>David Villasmil<br>
<b>Gesendet:</b> Montag, 29. März 2021 13:12<br>
<b>An:</b> FreeSWITCH Users Help <<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank" rel="noreferrer">freeswitch-users@lists.freeswitch.org</a>><br>
<b>Betreff:</b> Re: [Freeswitch-users] Internal Interface suddenly freezes<u></u><u></u></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">That looks to be more on the hardware side than software. It’d be an extremely coincidence those versions and all those OS have some issue somewhere.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Change hardware. <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">On Sun, 28 Mar 2021 at 09:12, Stefan Kainz <<a href="mailto:s.kainz@wnt.at" target="_blank" rel="noreferrer">s.kainz@wnt.at</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border-style:none none none solid;border-left-width:1pt;padding:0cm 0cm 0cm 6pt;margin:5pt 0cm 5pt 4.8pt;border-left-color:rgb(204,204,204)">
<p class="MsoNormal">Hi everbody, <br>
<br>
I have a little bit of a problem. <br>
Im using Version 1.10.3. ( but this problem also occurs on version 1.4.18 )<br>
<br>
Sometimes the internal Sofia interface just stops responding to SIP Requests. <br>
It sometimes happens once every day, and sometimes once a week. <br>
It happens at completely random times, like one day in the morning, and the next day in the middle of the night.
<br>
The freeswitch.log gives me nothing, its like the Sofia interface was stopped. <br>
<br>
When I try to restart the interface with "sofia profile internal restart” nothing happens. The fs_cli just remains stuck with that command.<br>
<br>
The solution is to restart the freeswitch service.<br>
<br>
Sometimes when I recognise it too late, for example in the middle of the night, it seems like the problem solves itself after about 2 hours.
<br>
The profile just starts working again, without somebody doing anything.<br>
<br>
I have checked a variety of things, including the firewall & fail2ban, network connection, made sure watchdog is disabled, and also tested it on different Debian-versions and freeswitch versions.
<br>
It seems this problem occurs on every freeswitch version i have tested. <br>
<br>
The external-profile on the other hand, keeps working like nothing happened. <br>
<br>
Both Interfaces listen on the same network-device with a public ip. <br>
The only difference is, the internal profile uses a Lua file to handle registrations. 
<br>
<br>
Has anybody come across anything similar? <br>
<br>
Any help is much appreciated!<br>
<br>
Regards, <br>
<br>
_________________________________________________________________________<br>
<br>
The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com/" target="_blank" rel="noreferrer">
https://signalwire.com</a><br>
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br>
Build your next product on our scalable cloud platform.<br>
<br>
Join our online community to chat in real time <a href="https://signalwire.community/" target="_blank" rel="noreferrer">
https://signalwire.community</a><br>
<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank" rel="noreferrer">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com/" target="_blank" rel="noreferrer">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" target="_blank" rel="noreferrer">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" target="_blank" rel="noreferrer">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com/" target="_blank" rel="noreferrer">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank" rel="noreferrer">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank" rel="noreferrer">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank" rel="noreferrer">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com/" target="_blank" rel="noreferrer">https://freeswitch.com</a><u></u><u></u></p>
</blockquote>
</div>
</div>
<p class="MsoNormal">-- <u></u><u></u></p>
<div>
<div>
<div>
<p class="MsoNormal">Regards,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p class="MsoNormal">David Villasmil<u></u><u></u></p>
<div>
<p class="MsoNormal">email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank" rel="noreferrer">
david.villasmil.work@gmail.com</a><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">phone: +34669448337<u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
_________________________________________________________________________<br>
<br>
The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com/" rel="noreferrer noreferrer" target="_blank">
https://signalwire.com</a><br>
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br>
Build your next product on our scalable cloud platform.<br>
<br>
Join our online community to chat in real time <a href="https://signalwire.community/" rel="noreferrer noreferrer" target="_blank">
https://signalwire.community</a><br>
<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank" rel="noreferrer">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com/" rel="noreferrer noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com/" rel="noreferrer noreferrer" target="_blank">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank" rel="noreferrer">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com/" rel="noreferrer noreferrer" target="_blank">https://freeswitch.com</a></blockquote>
</div>
</div>
-- <br>
<div dir="ltr" data-smartmail="gmail_signature">
<div dir="ltr">
<div>Regards,</div>
<div><br>
</div>
David Villasmil
<div>email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank" rel="noreferrer">
david.villasmil.work@gmail.com</a></div>
<div>phone: +34669448337</div>
</div>
</div>
_________________________________________________________________________<br>
<br>
The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" target="_blank" rel="noreferrer">
https://signalwire.com</a><br>
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br>
Build your next product on our scalable cloud platform.<br>
<br>
Join our online community to chat in real time <a href="https://signalwire.community" target="_blank" rel="noreferrer">
https://signalwire.community</a><br>
<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank" rel="noreferrer">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" target="_blank" rel="noreferrer">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" target="_blank" rel="noreferrer">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" target="_blank" rel="noreferrer">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" target="_blank" rel="noreferrer">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank" rel="noreferrer">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank" rel="noreferrer">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank" rel="noreferrer">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com" target="_blank" rel="noreferrer">https://freeswitch.com</a></div>
</blockquote>
</div>
<br>
</div>
</div>

_________________________________________________________________________<br>
<br>
The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer noreferrer" target="_blank">https://signalwire.com</a><br>
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br>
Build your next product on our scalable cloud platform.<br>
<br>
Join our online community to chat in real time <a href="https://signalwire.community" rel="noreferrer noreferrer" target="_blank">https://signalwire.community</a><br>
<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank" rel="noreferrer">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer noreferrer" target="_blank">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank" rel="noreferrer">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer noreferrer" target="_blank">https://freeswitch.com</a></blockquote></div></div></div>