<div dir="ltr">That was my mistake. With HTTP 404 dialplan fails over to local static XML Dialplan.<div>Thank you all.</div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-06-08 17:30 GMT+03:00 Vladyslav Zakhozhai <span dir="ltr"><<a href="mailto:v.zakhozhai@gmail.com" target="_blank">v.zakhozhai@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">Vallimamod,<br><div><br></div><div>Thank you for you clear answer. I appreciate that. I though that 200 "not found" is correct but I had some doubts. You cleared out this question for me.</div><div><br></div><div>I'll play with dialplan and failover to XML static config little bit later and give you feedback.</div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2017-06-08 15:53 GMT+03:00 Vallimamod Abdullah <span dir="ltr"><<a href="mailto:vma@vallimamod.org" target="_blank">vma@vallimamod.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
The correct reply is HTTP 200.<br>
Any non 200 body is discarded by mod_xml_curl and triggers a failover to a backup url if you have defined one or the static conf.<br>
<br>
If the failover to static conf does not occur in your case with a 200 'not found' reply, you need to investigate why. Can you post any full debug log?<br>
<br>
Best Regards,<br>
<span class="m_6709730319419161909HOEnZb"><font color="#888888">--<br>
Vallimamod Abdullah<br>
SIP Solutions<br>
VOIP Consulting<br>
<a href="mailto:vma@sipsolutions.fr" target="_blank">vma@sipsolutions.fr</a><br>
.<br>
</font></span><div class="m_6709730319419161909HOEnZb"><div class="m_6709730319419161909h5"><br>
> On 8 Jun 2017, at 13:43, Vladyslav Zakhozhai <<a href="mailto:v.zakhozhai@gmail.com" target="_blank">v.zakhozhai@gmail.com</a>> wrote:<br>
><br>
> Giovanni, thank you for your reply.<br>
><br>
> 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?<br>
><br>
> E.g. freeswitch requests configuration for non-existent user. Here we have two options:<br>
>   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.<br>
><br>
>  2. Freeswitch replies with XML not found and HTTP 404. Freeswitch reports an error. It do not wait HTTP 404 status code.<br>
><br>
> And once more about p.2 from freeswitch's log:<br>
><br>
> "[ERR] mod_xml_curl.c:315 Received HTTP error 404 trying to fetch ....."<br>
><br>
><br>
> 2017-06-08 12:18 GMT+03:00 Giovanni Maruzzelli <<a href="mailto:gmaruzz@gmail.com" target="_blank">gmaruzz@gmail.com</a>>:<br>
> """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 FreeSWITCH Configuration File. If it receives an invalid or 404 not found 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" rel="noreferrer" 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" rel="noreferrer" target="_blank">https://freeswitch.org/conflue<wbr>nce/display/FREESWITCH/mod_<wbr>xml_curl</a><br>
><br>
><br>
> On 8 June 2017 at 11:07, Vladyslav Zakhozhai <<a href="mailto:v.zakhozhai@gmail.com" target="_blank">v.zakhozhai@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> I am curious what HTTP status xml curl server must provide when no result is found for request with body<br>
><br>
> <?xml version="1.0" encoding="UTF-8" standalone="no"?><br>
> <document type="freeswitch/xml"><br>
>   <section name="result"><br>
>     <result status="not found" /><br>
>   </section><br>
> </document><br>
><br>
><br>
> 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.<br>
><br>
> Thank you in advance.<br>
><br>
> --<br>
> С уважением,<br>
> Владислав Захожай<br>
<br>
<br>
______________________________<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/<wbr>freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="m_6709730319419161909gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">С уважением,<br>Владислав Захожай<br><br></div></div>
</div>
</div></div></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>