Philipp,<div><br></div><div>Have you tried to add the <groups> and <group> XML elements? The wiki mentions those as part of a minimal request:</div><div><br></div><div><br></div><div><meta charset="utf-8"><span class="Apple-style-span" style="font-family: sans-serif; font-size: 13px; line-height: 19px; "><pre style="padding-top: 1em; padding-right: 1em; padding-bottom: 1em; padding-left: 1em; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(47, 111, 171); border-right-color: rgb(47, 111, 171); border-bottom-color: rgb(47, 111, 171); border-left-color: rgb(47, 111, 171); color: black; background-color: rgb(249, 249, 249); line-height: 1.1em; ">
<document type="freeswitch/xml">
<section name="directory">
<domain name="domain1.awesomevoipdomain.faketld">
<params>
<param name="dial-string" value="{presence_id=${dialed_user}@${dialed_domain}}${sofia_contact(${dialed_user}@${dialed_domain})}"/>
</params>
<b> <groups>
<group name="default">
</b> <users>
<user id="1004">
<params>
<param name="password" value="some_password"/>
</params>
</user>
</users>
<b> </group>
</groups>
</b> </domain>
</section>
</document></pre></span><div>Try that and see.</div><div>-MC</div><br><div class="gmail_quote">On Thu, Apr 14, 2011 at 12:15 PM, Philipp Kempgen <span dir="ltr"><<a href="mailto:philipp.kempgen@amooma.de">philipp.kempgen@amooma.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi,<br>
<br>
I'm playing with mod_xml_curl per<br>
<a href="http://wiki.freeswitch.org/wiki/Mod_xml_curl#bindings.3D.22directory.22" target="_blank">http://wiki.freeswitch.org/wiki/Mod_xml_curl#bindings.3D.22directory.22</a><br>
but having some problems.<br>
<br>
Softphone (username "11") sends a REGISTER to FreeSwitch (1.0.6)<br>
at 192.168.65.133.<br>
<br>
xml_curl.conf.xml:<br>
---------------------------------------------------------------<br>
<binding name="users directory"><br>
<param name="gateway-url" value="<a href="http://127.0.0.1:3000/freeswitch-directory-entries/search.xml" target="_blank">http://127.0.0.1:3000/freeswitch-directory-entries/search.xml</a>" bindings="directory" /><br>
</binding><br>
---------------------------------------------------------------<br>
<br>
FS sends a lookup request to the web service. Parameters:<br>
---------------------------------------------------------------<br>
section=directory<br>
...<br>
key=id<br>
user=11<br>
domain=192.168.65.133<br>
---------------------------------------------------------------<br>
<br>
Fine.<br>
<br>
The response is:<br>
---------------------------------------------------------------<br>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><br>
<document type="freeswitch/xml"><br>
<section name="directory"><br>
<domain name="192.168.65.133"><br>
<users><br>
<user id="11" number-alias="1111"><br>
<params><br>
<param name="dial-string" value="${sofia_contact(<a href="mailto:11@192.168.65.133">11@192.168.65.133</a>)}" /><br>
<param name="password" value="123" /><br>
<param name="vm-password" value="417906717460606223" /><br>
</params><br>
<variables><br>
<variable name="accountcode" value="11" /><br>
<variable name="effective_caller_id_number" value="foo" /><br>
<variable name="effective_caller_id_name" value="Foo, Foo" /><br>
<variable name="outbound_caller_id_number" value="foo" /><br>
<variable name="outbound_caller_id_name" value="Foo, Foo" /><br>
<variable name="user_context" value="default" /><br>
<variable name="toll_allow" value="domestic,international,local" /><br>
<variable name="callgroup" value="users" /><br>
</variables><br>
</user><br>
</users><br>
</domain><br>
</section><br>
</document><br>
---------------------------------------------------------------<br>
<br>
But I get a complaint on the console:<br>
[WARNING] sofia_reg.c:1872 Can't find user [<a href="mailto:11@192.168.65.133">11@192.168.65.133</a>]<br>
You must define a domain called '192.168.65.133' in your directory<br>
and add a user with the id="11" attribute and you must configure<br>
your device to use the proper domain in it's authentication<br>
credentials.<br>
<br>
What can it be?<br>
<br>
A domain with name="192.168.65.133" and a user with id="11" is in<br>
the response, so why doesn't sofia find it?<br>
<br>
<br>
Philipp<br>
<br>
<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>
</blockquote></div><br></div>