[Freeswitch-users] mod_xml_curl, sofia_reg.c:1872 Can't find user ...

Philipp Kempgen philipp.kempgen at amooma.de
Sat Apr 16 00:42:30 MSD 2011


Michael,

Michael Collins wrote:
> Have you tried to add the <groups> and <group> XML elements?

Thanks a ton! That seems to do the trick. I knew it was something
simple that I was missing.

I was under the impression that groups were optional because in
the example at
http://wiki.freeswitch.org/wiki/XML_User_Directory_Guide#Basic_User
there are no groups at all, and Mod-XML-Curl seemed to require the
same XML structure as in static XML files.

http://wiki.freeswitch.org/wiki/XML_User_Directory_Guide#Groups
mentions groups and XML-Curl but also says "Using groups is optional
-- you can put your users straight into the domain section if you
desire."

Thanks again!
  Philipp


> On Thu, Apr 14, 2011 at 12:15 PM, Philipp Kempgen <philipp.kempgen at amooma.de
>> wrote:
> 
>> Hi,
>>
>> I'm playing with mod_xml_curl per
>> http://wiki.freeswitch.org/wiki/Mod_xml_curl#bindings.3D.22directory.22
>> but having some problems.
>>
>> Softphone (username "11") sends a REGISTER to FreeSwitch (1.0.6)
>> at 192.168.65.133.
>>
>> xml_curl.conf.xml:
>> ---------------------------------------------------------------
>>  <binding name="users directory">
>>    <param name="gateway-url" value="
>> http://127.0.0.1:3000/freeswitch-directory-entries/search.xml"
>> bindings="directory" />
>>  </binding>
>> ---------------------------------------------------------------
>>
>> FS sends a lookup request to the web service. Parameters:
>> ---------------------------------------------------------------
>> section=directory
>> ...
>> key=id
>> user=11
>> domain=192.168.65.133
>> ---------------------------------------------------------------
>>
>> Fine.
>>
>> The response is:
>> ---------------------------------------------------------------
>> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
>> <document type="freeswitch/xml">
>>  <section name="directory">
>>    <domain name="192.168.65.133">
>>      <users>
>>        <user id="11" number-alias="1111">
>>          <params>
>>            <param name="dial-string" value="${sofia_contact(
>> 11 at 192.168.65.133)}" />
>>            <param name="password" value="123" />
>>            <param name="vm-password" value="417906717460606223" />
>>          </params>
>>          <variables>
>>            <variable name="accountcode" value="11" />
>>            <variable name="effective_caller_id_number" value="foo" />
>>            <variable name="effective_caller_id_name" value="Foo, Foo" />
>>            <variable name="outbound_caller_id_number" value="foo" />
>>            <variable name="outbound_caller_id_name" value="Foo, Foo" />
>>            <variable name="user_context" value="default" />
>>            <variable name="toll_allow" value="domestic,international,local"
>> />
>>            <variable name="callgroup" value="users" />
>>          </variables>
>>        </user>
>>      </users>
>>    </domain>
>>  </section>
>> </document>
>> ---------------------------------------------------------------
>>
>> But I get a complaint on the console:
>> [WARNING] sofia_reg.c:1872 Can't find user [11 at 192.168.65.133]
>> You must define a domain called '192.168.65.133' in your directory
>> and add a user with the id="11" attribute and you must configure
>> your device to use the proper domain in it's authentication
>> credentials.
>>
>> What can it be?
>>
>> A domain with name="192.168.65.133" and a user with id="11" is in
>> the response, so why doesn't sofia find it?




More information about the FreeSWITCH-users mailing list