[Freeswitch-users] Problems with xml_curl and directory

Jonas Gauffin jonas.gauffin at gmail.com
Tue Feb 5 02:30:02 PST 2008


Hello

I've used xml_curl for a while to supply a dialplan, and it works fine.
I'm now trying to get the directory working.

If I'm not remembering wrong, FS fetches the complete directory at
startup to be able to do presence managing, correct?
Anyway I provide a XML document when it's requested at startup:

<document type="freeswitch/xml">
<section name="directory"><domain name="192.168.1.124">
        <user id="janolov" mailbox="1202">
                <params />
                <variables>
                        <variable name="user_context" value="default" />
                        <variable name="effective_caller_id_name"
value="Jan-Olov Andersson" />
                        <variable name="effective_caller_id_number"
value="1202" />
                </variables>
        </user>
        <user id="jonas" mailbox="1201">
                <params />
                <variables>
                        <variable name="user_context" value="default" />
                        <variable name="effective_caller_id_name"
value="Jonas Gauffin" />
                        <variable name="effective_caller_id_number"
value="1201" />
                </variables>
        </user>
</domain></section>
</document>

I don't know if an empty "params" tag is required anymore, it was
before (when no password is used).

My problem is that registrations do not work when I'm using xml_curl
to fetch directory.
It does not fetch anything upon registration and nothing is written
into the console about the registration.

Everything works if I disable directory handling in xml_curl (it then
uses the standard config files and registration works fine).

Then I got a feature request. I would like to do then authentication
myself in the xml curl call, is that possible?
(FS supplies the password and I can reply with a status code that
indicates that the authentication was unsuccessful)
I'm storing passwords encrypted, and I can therefore not provide a
password back to FS.

Regards,
  Jonas




More information about the FreeSWITCH-users mailing list