<div dir="ltr">I'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>"hostname=fire&section=directory&tag_name=domain&key_name=name&key_value=user&Event-Name=REQUEST_PARAMS&Core-UUID=18b2b698-c487-11e3-bcc9-39daad6bb1f3&FreeSWITCH-Hostname=fire&FreeSWITCH-Switchname=fire&FreeSWITCH-IPv4=192.123.321.123&FreeSWITCH-IPv6=%3A%3A1&Event-Date-Local=2014-04-15%2012%3A48%3A57&Event-Date-GMT=Tue,%2015%20Apr%202014%2010%3A48%3A57%20GMT&Event-Date-Timestamp=1397558937493970&Event-Calling-File=sofia.c&Event-Calling-Function=config_sofia&Event-Calling-Line-Number=5174&Event-Sequence=1510&purpose=gateways&profile=user"<br>
</div></div><div><br></div><div>The backend interprets the request by "purpose=gateways" and "profile=user" to send back all gateways required for profile "user"</div><div><br></div><div><document type="freeswitch/xml"><br>
</div><div><div><span class="" style="white-space:pre">        </span><section name="configuration"></div><div><br></div><div><span class="" style="white-space:pre">                </span><include></div><div><span class="" style="white-space:pre">                        </span><gateway name="user_gw_1_foobar"></div>
<div><span class="" style="white-space:pre">                                </span><param name="username" value=""/></div><div><span class="" style="white-space:pre">                                </span><param name="password" value=""/></div>
<div><span class="" style="white-space:pre">                                </span><param name="proxy" value="<a href="http://foobar.example.de">foobar.example.de</a>"/></div><div><span class="" style="white-space:pre">                                </span><param name="register" value="false"/></div>
<div><span class="" style="white-space:pre">                                </span><param name="expire-seconds" value="300"/></div><div><span class="" style="white-space:pre">                                </span><param name="ping" value="300"/></div>
<div><span class="" style="white-space:pre">                                </span><param name="retry-seconds" value="300"/></div><div><span class="" style="white-space:pre">                                </span><param name="context" value="default"/></div>
<div><span class="" style="white-space:pre">                                </span><param name="caller-id-in-from" value="true"/></div><div><span class="" style="white-space:pre">                        </span></gateway><br></div><div><span class="" style="white-space:pre">                </span></include></div>
<div><br></div><div><span class="" style="white-space:pre">        </span></section></div><div></document></div></div><div><br></div><div>I've tried to remove "document", "section", "include" 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">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><div>Daniel</div></div>