[Freeswitch-users] mod curl user directory from web service

Antti Kokko aakokko at gmail.com
Mon Nov 24 04:10:07 PST 2008


Hello,

   Thanks in advance. I have a problem with mod curl user directory. I have
now configured system to fetch user directory from a web service. It works
fine and the users get to the FS and users can register with a SIP client.
I`m assuming the system is using default dialplans, sip-profiles etc.
because I have just directory -section in xml_curl.conf. Anyway after
registering if two clients wants to start a session I get immediate hangup
by FS. Here is an example of my user directory:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="freeswitch/xml">
  <section name="directory" description="User Directory">
    <domain name="192.168.0.197">
      <user id="duck" mailbox="duck">
        <params>
          <param name="password" value="1234" />
          <param name="vm-password" value="1234" />
        </params>
        <variables>
          <variable name="accountcode" value="duck" />
          <variable name="user-context" value="default" />
          <variable name="effective_caller_id_name" value="duck" />
          <variable name="effective_caller_id_number" value="duck" />
        </variables>
      </user>
     </domain>
   </section>
</document>

And here is an example log I get from FS:

2008-11-24 14:08:48 [NOTICE] switch_channel.c:553 switch_channel_set_name()
New Channel sofia/internal/duck at 192.168.0.197[36959c5c-a2b0-f045-aac0-051b80911fb1]
2008-11-24 14:08:48 [INFO] mod_dialplan_xml.c:233 dialplan_hunt() Processing
testuser->duck2 in context public
2008-11-24 14:08:48 [NOTICE] switch_core_state_machine.c:160
switch_core_standard_on_execute() Hangup
sofia/internal/duck2 at 192.168.0.197[CS_EXECUTE] [NORMAL_CLEARING]
nta: sent 480 Temporarily Unavailable for INVITE (13404)
nua(03C30980): removing session usage
nua(03C30980): call state changed: received -> terminated
2008-11-24 14:08:48 [NOTICE] switch_core_session.c:878
switch_core_session_thread() Session 6 (sofia/internal/duck at 192.168.0.197)
Ended
2008-11-24 14:08:48 [NOTICE] switch_core_session.c:880
switch_core_session_thread() Close Channel
sofia/internal/duck at 192.168.0.197[CS_HANGUP]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20081124/66dd534e/attachment-0002.html 


More information about the FreeSWITCH-users mailing list