<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body 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>
<profile name="user"><br>
<gateways><br>
</gateways><br>
<aliases><br>
</aliases><br>
<domains><br>
<domain name="user" alias="false" parse="true"/><br>
</domains><br>
<br>
<settings><br>
<param name="debug" value="0"/><br>
[...]<br>
</settings><br>
</profile><br>
<br>
<br>
I fear I do not understand the concept of mod_xml_curl here - Why
does it request "gateways" for a specific profile and expects a full
profile?<br>
<br>
<div class="moz-cite-prefix">On 15.04.2014 19:14, Ian McMaster
wrote:<br>
</div>
<blockquote
cite="mid:CAL0C-v-SkkUGBHj9hUYO6XgLA-6OPweCRpGHhLVYCnispi5P6g@mail.gmail.com"
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">
<document type="freeswitch/xml"><br>
</div>
<div style="font-family:arial,sans-serif;font-size:13px">
<div><span style="white-space:pre-wrap"> </span><section
name="<b>directory</b>"></div>
<div>
<b> <configuration name="sofia.c"
description="sofia gateway for user"></b></div>
<div><b> <profiles></b></div>
<div><b> <profile name="user"></b></div>
<div><b> <gateways></b></div>
<div><span style="white-space:pre-wrap"> </span><gateway
name="user_gw_1_foobar"><br>
</div>
<div><span style="white-space:pre-wrap"> </span><param
name="username" value=""/></div>
<div><span style="white-space:pre-wrap"> </span><param
name="password" value=""/></div>
<div><span style="white-space:pre-wrap"> </span><param
name="proxy" value="<a moz-do-not-send="true"
href="http://foobar.example.de/" target="_blank">foobar.example.de</a>"/></div>
<div><span style="white-space:pre-wrap"> </span><param
name="register" value="false"/></div>
<div><span style="white-space:pre-wrap"> </span><param
name="expire-seconds" value="300"/></div>
<div><span style="white-space:pre-wrap"> </span><param
name="ping" value="300"/></div>
<div><span style="white-space:pre-wrap"> </span><param
name="retry-seconds" value="300"/></div>
<div><span style="white-space:pre-wrap"> </span><param
name="context" value="default"/></div>
<div><span style="white-space:pre-wrap"> </span><param
name="caller-id-in-from" value="true"/></div>
<div><span style="white-space:pre-wrap"> </span></gateway><br>
</div>
<div></gateways></div>
<div></profile></div>
<div></profiles></div>
<div></configuration></div>
<div><span style="white-space:pre-wrap"> </span></section></div>
<div></document></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"><<a moz-do-not-send="true"
href="mailto:dnspyder@gmail.com" target="_blank">dnspyder@gmail.com</a>></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'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 style="white-space:pre-wrap"> </span><section
name="configuration"></div>
<div><br>
</div>
<div><span style="white-space:pre-wrap"> </span><include></div>
<div><span style="white-space:pre-wrap"> </span><gateway
name="user_gw_1_foobar"></div>
<div><span style="white-space:pre-wrap"> </span><param
name="username" value=""/></div>
<div><span style="white-space:pre-wrap"> </span><param
name="password" value=""/></div>
<div><span style="white-space:pre-wrap"> </span><param
name="proxy" value="<a moz-do-not-send="true"
href="http://foobar.example.de" target="_blank">foobar.example.de</a>"/></div>
<div><span style="white-space:pre-wrap"> </span><param
name="register" value="false"/></div>
<div><span style="white-space:pre-wrap"> </span><param
name="expire-seconds" value="300"/></div>
<div><span style="white-space:pre-wrap"> </span><param
name="ping" value="300"/></div>
<div><span style="white-space:pre-wrap"> </span><param
name="retry-seconds" value="300"/></div>
<div><span style="white-space:pre-wrap"> </span><param
name="context" value="default"/></div>
<div><span style="white-space:pre-wrap"> </span><param
name="caller-id-in-from" value="true"/></div>
<div><span style="white-space:pre-wrap"> </span></gateway><br>
</div>
<div><span style="white-space:pre-wrap"> </span></include></div>
<div><br>
</div>
<div><span style="white-space:pre-wrap"> </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 moz-do-not-send="true"
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 class="HOEnZb"><font color="#888888">
<div>Daniel</div>
</font></span></div>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a moz-do-not-send="true"
href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a moz-do-not-send="true"
href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a moz-do-not-send="true" href="http://www.cudatel.com"
target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a moz-do-not-send="true" href="http://www.freeswitch.org"
target="_blank">http://www.freeswitch.org</a><br>
<a moz-do-not-send="true" href="http://wiki.freeswitch.org"
target="_blank">http://wiki.freeswitch.org</a><br>
<a moz-do-not-send="true" href="http://www.cluecon.com"
target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a moz-do-not-send="true" href="http://www.freeswitch.org"
target="_blank">http://www.freeswitch.org</a><br>
<br>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a class="moz-txt-link-freetext" href="http://www.cudatel.com">http://www.cudatel.com</a>
Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>
FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
</pre>
</blockquote>
<br>
</body>
</html>