[Freeswitch-users] directory and mod_xml_curl

Cristian Talle ctalle at voiceway.ca
Wed Sep 17 13:27:56 PDT 2008


Hi,

I'm new to FS. Can anyone shed some more light or point me to a place to
read on how one can use mod_xml_curl for dynamic directory lookup?

My scenario is: I define a new contact somewhere outside of FS, I have a
SIP client attempting to register with FS using the new contact info ->
that in turn invokes a custom url binding but the information returned
in the HTTP reply doesn't seem to make any difference at runtime:

mod_xml_curl.c:194 xml_url_fetch() XML response is in
/tmp/3da0973a-84ec-11dd-b435-211ade423d94.tmp.xml
2008-09-17 15:10:07 [WARNING] sofia_reg.c:1061 sofia_reg_parse_auth()
can't find user [XXXX at a.b.c.d]

The xml returned by the url is:

<document type="freeswitch/xml">
<section name="directory">
   <domain name="a.b.c.d">
     <user id="XXXX">
       <params>
         <param name="password" value="1234" />
       </params>
       <variables>
         <variable name="user_context" value="default"/>
       </variables>
     </user>
   </domain>
</section>
</document>

How does the xml new xml node get loaded in the directory structure in
memory?







More information about the FreeSWITCH-users mailing list