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

Michael Collins msc at freeswitch.org
Fri Apr 15 20:08:49 MSD 2011


Philipp,

Have you tried to add the <groups> and <group> XML elements? The wiki
mentions those as part of a minimal request:


<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>*      <groups>
        <group name="default">*         <users>
          <user id="1004">
            <params>
              <param name="password" value="some_password"/>
            </params>
          </user>
         </users>*        </group>
      </groups>*    </domain>
  </section>
</document>

Try that and see.
-MC

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?
>
>
>    Philipp
>
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110415/6b2136fc/attachment.html 


More information about the FreeSWITCH-users mailing list