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@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@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@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@192.168.0.197[CS_HANGUP]
try <variable name="user_context" value="default" /> instead of <variable name="user-context" value="default" /> since only the _ version is valid you are going to context public instead. On Mon, Nov 24, 2008 at 6:10 AM, Antti Kokko <aakokko@gmail.com> wrote:
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@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@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@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@192.168.0.197 [CS_HANGUP]
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
participants (2)
-
Anthony Minessale
-
Antti Kokko