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

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


   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="">
      <user id="duck" mailbox="duck">
          <param name="password" value="1234" />
          <param name="vm-password" value="1234" />
          <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" />

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[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[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
2008-11-24 14:08:48 [NOTICE] switch_core_session.c:880
switch_core_session_thread() Close Channel
sofia/internal/duck at[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