<div dir="ltr"><div style="font-family:arial,sans-serif;font-size:13px">Daniel - in most cases you need only return the XML that is being requested.  It is not incorrect to return more, but not as efficient.</div><div style="font-family:arial,sans-serif;font-size:13px">
<br></div><div style="font-family:arial,sans-serif;font-size:13px">To be clear - you tried this XML and it is still failing?  (the configuration name is sofia.conf)</div><div style="font-family:arial,sans-serif;font-size:13px">
<br></div><div style="font-family:arial,sans-serif;font-size:13px">&lt;document type=&quot;freeswitch/xml&quot;&gt;<br></div><div style="font-family:arial,sans-serif;font-size:13px"><div><span style="white-space:pre-wrap">        </span>&lt;section name=&quot;<b>directory</b>&quot;&gt;</div>
<div><b>         &lt;configuration name=&quot;sofia.conf&quot; description=&quot;sofia gateway for user&quot;&gt;</b></div><div><b>          &lt;profiles&gt;</b></div><div><b>           &lt;profile name=&quot;user&quot;&gt;</b></div>
<div><b>            &lt;gateways&gt;</b></div><div class="im"><div><span style="white-space:pre-wrap">                        </span>&lt;gateway name=&quot;user_gw_1_foobar&quot;&gt;<br></div><div><span style="white-space:pre-wrap">                                </span>&lt;param name=&quot;username&quot; value=&quot;&quot;/&gt;</div>
<div><span style="white-space:pre-wrap">                                </span>&lt;param name=&quot;password&quot; value=&quot;&quot;/&gt;</div><div><span style="white-space:pre-wrap">                                </span>&lt;param name=&quot;proxy&quot; value=&quot;<a href="http://foobar.example.de/" target="_blank">foobar.example.de</a>&quot;/&gt;</div>
<div><span style="white-space:pre-wrap">                                </span>&lt;param name=&quot;register&quot; value=&quot;false&quot;/&gt;</div><div><span style="white-space:pre-wrap">                                </span>&lt;param name=&quot;expire-seconds&quot; value=&quot;300&quot;/&gt;</div>
<div><span style="white-space:pre-wrap">                                </span>&lt;param name=&quot;ping&quot; value=&quot;300&quot;/&gt;</div><div><span style="white-space:pre-wrap">                                </span>&lt;param name=&quot;retry-seconds&quot; value=&quot;300&quot;/&gt;</div>
<div><span style="white-space:pre-wrap">                                </span>&lt;param name=&quot;context&quot; value=&quot;default&quot;/&gt;</div><div><span style="white-space:pre-wrap">                                </span>&lt;param name=&quot;caller-id-in-from&quot; value=&quot;true&quot;/&gt;</div>
<div><span style="white-space:pre-wrap">                        </span>&lt;/gateway&gt;<br></div></div><div>&lt;/gateways&gt;</div><div>&lt;/profile&gt;</div><div>&lt;/profiles&gt;</div><div>&lt;/configuration&gt;</div><div><span style="white-space:pre-wrap">        </span>&lt;/section&gt;</div>
<div>&lt;/document&gt;</div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Apr 16, 2014 at 2:17 AM, Daniel Neubert <span dir="ltr">&lt;<a href="mailto:dnspyder@gmail.com" target="_blank">dnspyder@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    Unfortunately no success - what does your local profile xml look
    like? I assume that at leats sth. like this has to be defined:<br>
    <br>
    &lt;profile name=&quot;user&quot;&gt;<br>
      &lt;gateways&gt;<br>
      &lt;/gateways&gt;<br>
      &lt;aliases&gt;<br>
      &lt;/aliases&gt;<br>
      &lt;domains&gt;<br>
        &lt;domain name=&quot;user&quot; alias=&quot;false&quot; parse=&quot;true&quot;/&gt;<br>
      &lt;/domains&gt;<br>
    <br>
      &lt;settings&gt;<br>
        &lt;param name=&quot;debug&quot; value=&quot;0&quot;/&gt;<br>
        [...]<br>
    &lt;/settings&gt;<br>
    &lt;/profile&gt;<br>
    <br>
    <br>
    I fear I do not understand the concept of mod_xml_curl here - Why
    does it request &quot;gateways&quot; for a specific profile and expects a full
    profile?<div><div class="h5"><br>
    <br>
    <div>On 15.04.2014 19:14, Ian McMaster
      wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">Daniel,
        <div><br>
        </div>
        <div>Your XML is not complete.  Try this format, which I use
          successfully:</div>
        <div>
          <div style="font-family:arial,sans-serif;font-size:13px"><br>
          </div>
          <div style="font-family:arial,sans-serif;font-size:13px">
            &lt;document type=&quot;freeswitch/xml&quot;&gt;<br>
          </div>
          <div style="font-family:arial,sans-serif;font-size:13px">
            <div><span style="white-space:pre-wrap"> </span>&lt;section
              name=&quot;<b>directory</b>&quot;&gt;</div>
            <div>
              <b>         &lt;configuration name=&quot;sofia.c&quot;
                description=&quot;sofia gateway for user&quot;&gt;</b></div>
            <div><b>          &lt;profiles&gt;</b></div>
            <div><b>           &lt;profile name=&quot;user&quot;&gt;</b></div>
            <div><b>            &lt;gateways&gt;</b></div>
            <div><span style="white-space:pre-wrap"> </span>&lt;gateway
              name=&quot;user_gw_1_foobar&quot;&gt;<br>
            </div>
            <div><span style="white-space:pre-wrap"> </span>&lt;param
              name=&quot;username&quot; value=&quot;&quot;/&gt;</div>
            <div><span style="white-space:pre-wrap"> </span>&lt;param
              name=&quot;password&quot; value=&quot;&quot;/&gt;</div>
            <div><span style="white-space:pre-wrap"> </span>&lt;param
              name=&quot;proxy&quot; value=&quot;<a href="http://foobar.example.de/" target="_blank">foobar.example.de</a>&quot;/&gt;</div>
            <div><span style="white-space:pre-wrap"> </span>&lt;param
              name=&quot;register&quot; value=&quot;false&quot;/&gt;</div>
            <div><span style="white-space:pre-wrap"> </span>&lt;param
              name=&quot;expire-seconds&quot; value=&quot;300&quot;/&gt;</div>
            <div><span style="white-space:pre-wrap"> </span>&lt;param
              name=&quot;ping&quot; value=&quot;300&quot;/&gt;</div>
            <div><span style="white-space:pre-wrap"> </span>&lt;param
              name=&quot;retry-seconds&quot; value=&quot;300&quot;/&gt;</div>
            <div><span style="white-space:pre-wrap"> </span>&lt;param
              name=&quot;context&quot; value=&quot;default&quot;/&gt;</div>
            <div><span style="white-space:pre-wrap"> </span>&lt;param
              name=&quot;caller-id-in-from&quot; value=&quot;true&quot;/&gt;</div>
            <div><span style="white-space:pre-wrap"> </span>&lt;/gateway&gt;<br>
            </div>
            <div>&lt;/gateways&gt;</div>
            <div>&lt;/profile&gt;</div>
            <div>&lt;/profiles&gt;</div>
            <div>&lt;/configuration&gt;</div>
            <div><span style="white-space:pre-wrap"> </span>&lt;/section&gt;</div>
            <div>&lt;/document&gt;</div>
          </div>
        </div>
        <div><br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">On Tue, Apr 15, 2014 at 7:20 AM, Daniel
          Neubert <span dir="ltr">&lt;<a href="mailto:dnspyder@gmail.com" target="_blank">dnspyder@gmail.com</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">I&#39;ve tried to include custom gateways via
              mod_xml_curl. 
              <div><br>
              </div>
              <div>
                <div>The request is correctly issued by mod_xml_curl and
                  received by the backend:</div>
                <div><br>
                </div>
                <div>&quot;hostname=fire&amp;section=directory&amp;tag_name=domain&amp;key_name=name&amp;key_value=user&amp;Event-Name=REQUEST_PARAMS&amp;Core-UUID=18b2b698-c487-11e3-bcc9-39daad6bb1f3&amp;FreeSWITCH-Hostname=fire&amp;FreeSWITCH-Switchname=fire&amp;FreeSWITCH-IPv4=192.123.321.123&amp;FreeSWITCH-IPv6=%3A%3A1&amp;Event-Date-Local=2014-04-15%2012%3A48%3A57&amp;Event-Date-GMT=Tue,%2015%20Apr%202014%2010%3A48%3A57%20GMT&amp;Event-Date-Timestamp=1397558937493970&amp;Event-Calling-File=sofia.c&amp;Event-Calling-Function=config_sofia&amp;Event-Calling-Line-Number=5174&amp;Event-Sequence=1510&amp;purpose=gateways&amp;profile=user&quot;<br>

                </div>
              </div>
              <div><br>
              </div>
              <div>The backend interprets the request by
                &quot;purpose=gateways&quot; and &quot;profile=user&quot; to send back all
                gateways required for profile &quot;user&quot;</div>
              <div><br>
              </div>
              <div>&lt;document type=&quot;freeswitch/xml&quot;&gt;<br>
              </div>
              <div>
                <div><span style="white-space:pre-wrap"> </span>&lt;section
                  name=&quot;configuration&quot;&gt;</div>
                <div><br>
                </div>
                <div><span style="white-space:pre-wrap"> </span>&lt;include&gt;</div>
                <div><span style="white-space:pre-wrap"> </span>&lt;gateway
                  name=&quot;user_gw_1_foobar&quot;&gt;</div>
                <div><span style="white-space:pre-wrap"> </span>&lt;param
                  name=&quot;username&quot; value=&quot;&quot;/&gt;</div>
                <div><span style="white-space:pre-wrap"> </span>&lt;param
                  name=&quot;password&quot; value=&quot;&quot;/&gt;</div>
                <div><span style="white-space:pre-wrap"> </span>&lt;param
                  name=&quot;proxy&quot; value=&quot;<a href="http://foobar.example.de" target="_blank">foobar.example.de</a>&quot;/&gt;</div>
                <div><span style="white-space:pre-wrap"> </span>&lt;param
                  name=&quot;register&quot; value=&quot;false&quot;/&gt;</div>
                <div><span style="white-space:pre-wrap"> </span>&lt;param
                  name=&quot;expire-seconds&quot; value=&quot;300&quot;/&gt;</div>
                <div><span style="white-space:pre-wrap"> </span>&lt;param
                  name=&quot;ping&quot; value=&quot;300&quot;/&gt;</div>
                <div><span style="white-space:pre-wrap"> </span>&lt;param
                  name=&quot;retry-seconds&quot; value=&quot;300&quot;/&gt;</div>
                <div><span style="white-space:pre-wrap"> </span>&lt;param
                  name=&quot;context&quot; value=&quot;default&quot;/&gt;</div>
                <div><span style="white-space:pre-wrap"> </span>&lt;param
                  name=&quot;caller-id-in-from&quot; value=&quot;true&quot;/&gt;</div>
                <div><span style="white-space:pre-wrap"> </span>&lt;/gateway&gt;<br>
                </div>
                <div><span style="white-space:pre-wrap"> </span>&lt;/include&gt;</div>
                <div><br>
                </div>
                <div><span style="white-space:pre-wrap"> </span>&lt;/section&gt;</div>
                <div>&lt;/document&gt;</div>
              </div>
              <div><br>
              </div>
              <div>I&#39;ve tried to remove &quot;document&quot;, &quot;section&quot;, &quot;include&quot;
                but no effect. </div>
              <div><br>
              </div>
              <div>Removing all gateway xml files from local filesystem
                does not change anything, either.</div>
              <div><br>
              </div>
              <div>Unfortunately the wiki <a href="https://wiki.freeswitch.org/wiki/Mod_xml_curl#Example:_purpose.3Dgateways" target="_blank">https://wiki.freeswitch.org/wiki/Mod_xml_curl#Example:_purpose.3Dgateways</a>
                does not give a proper example</div>
              <div><br>
              </div>
              <div>Thx and regards</div>
              <span><font color="#888888">
                  <div>Daniel</div>
                </font></span></div>
            <br>
_________________________________________________________________________<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" target="_blank">http://www.freeswitchsolutions.com</a><br>
            <br>
            FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
            <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
            <br>
            Official FreeSWITCH Sites<br>
            <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
            <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
            <a href="http://www.cluecon.com" 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.freeswitch.org</a><br>
            <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
            UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
            <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a>

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a>

Official FreeSWITCH Sites
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a>

FreeSWITCH-users mailing list
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
</pre>
    </blockquote>
    <br>
  </div></div></div>

<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" 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.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>