<div dir="ltr">Giovanni, thank you for your reply.<div><br></div><div>Yes of course, I've read it. And the main question is - what is appropriate way to inform freeswitch with "not found". And once more why freeswitch treats 404 response as an error?</div><div><br></div><div>E.g. freeswitch requests configuration for non-existent user. Here we have two options:</div><div>  1. Freeswitch replies with XML not found and HTTP 200. Freeswitch understands it pretty correct and in logs I can see that freeswitch warns me it was not able to find user in some domain. This is ok and correct.</div><div><br></div><div> 2. Freeswitch replies with XML not found and HTTP 404. Freeswitch reports an error. It do not wait HTTP 404 status code.</div><div><br></div><div>And once more about p.2 from freeswitch's log:</div><div><br></div><div>"[ERR] mod_xml_curl.c:315 Received HTTP error 404 trying to fetch ....."</div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">2017-06-08 12:18 GMT+03:00 Giovanni Maruzzelli <span dir="ltr"><<a href="mailto:gmaruzz@gmail.com" target="_blank">gmaruzz@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">"""If it receives a valid response from your web application, then it will 
load the configuration just like it would if you had put it into the <a href="https://wiki.freeswitch.org/wiki/Freeswitch.xml" title="Freeswitch.xml" class="m_2991333986989288029m_3170047098858419158external-link" rel="nofollow" target="_blank">FreeSWITCH Configuration File</a>. If it receives an invalid or 404 <i>not found</i> response, then it will attempt to look for the file on disk instead."""<br><br>"""<a href="https://freeswitch.org/confluence/display/FREESWITCH/mod_xml_curl#mod_xml_curl-Section:notfound" target="_blank">https://freeswitch.org/conf<wbr>luence/display/FREESWITCH/mod_<wbr>xml_curl#mod_xml_curl-Section:<wbr>notfound</a>"""<br><br><a href="https://freeswitch.org/confluence/display/FREESWITCH/mod_xml_curl" target="_blank">https://freeswitch.org/conflue<wbr>nce/display/FREESWITCH/mod_<wbr>xml_curl</a><br><br><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On 8 June 2017 at 11:07, Vladyslav Zakhozhai <span dir="ltr"><<a href="mailto:v.zakhozhai@gmail.com" target="_blank">v.zakhozhai@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hi,<div><br></div><div>I am curious what HTTP status xml curl server must provide when no result is found for request with body</div><div><br></div><div><pre style="margin-top:10px;margin-bottom:0px;padding:0px;font-family:ConfluenceInstalledFont,monospace;color:rgb(51,51,51);font-size:14px"><?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="freeswitch/xml">
  <section name="result">
    <result status="not found" />
  </section>
</document></pre><pre style="margin-top:10px;margin-bottom:0px;padding:0px;font-family:ConfluenceInstalledFont,monospace;color:rgb(51,51,51);font-size:14px"><br></pre>I mean HTTP 200 or HTTP 404.<br><br><br>My problem is the following:<br><br>1. When freeswitch gets 404 for directory request it reports error:<br><br>[ERR] mod_xml_curl.c:315 Received HTTP error 404 trying to fetch<br><br><br>2. When freeswitch gets 200 with status "not found" on dialplan request failover to file xml config does not occure.</div><div><br></div><div>Thank you in advance.</div><span class="m_2991333986989288029m_3170047098858419158HOEnZb"><font color="#888888"><div><br></div><div>-- <br><div class="m_2991333986989288029m_3170047098858419158m_-5835988449857265572gmail_signature"><div dir="ltr">С уважением,<br>Владислав Захожай<br><br></div></div>
</div></font></span></div>
<br></div></div>______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions<wbr>.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.o<wbr>rg</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswi<wbr>tch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/ma<wbr>ilman/listinfo/freeswitch-user<wbr>s</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.frees<wbr>witch.org/mailman/options/free<wbr>switch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><span class="HOEnZb"><font color="#888888"><br></font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><br>-- <br><div class="m_2991333986989288029gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><span><span><br>Sincerely,<br></span><span><font color="#888888"><br>
Giovanni Maruzzelli<br>
OpenTelecom.IT</font></span><br><span>cell: +39 347 266 56 18<span><font color="#888888"><br></font></span></span></span></div></div></div>

</font></span></div></div>
<br>______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">С уважением,<br>Владислав Захожай<br><br></div></div>
</div></div>