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

Philipp Kempgen philipp.kempgen at amooma.de
Thu Apr 14 23:15:24 MSD 2011


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?


    Philipp




More information about the FreeSWITCH-users mailing list