try <br>&lt;variable name=&quot;user_context&quot; value=&quot;default&quot; /&gt;<br><br>instead of<br><br>&lt;variable name=&quot;user-context&quot; value=&quot;default&quot; /&gt;<br><br>since only the _ version is valid you are going to context public instead.<br>
<br><br><div class="gmail_quote">On Mon, Nov 24, 2008 at 6:10 AM, Antti Kokko <span dir="ltr">&lt;<a href="mailto:aakokko@gmail.com">aakokko@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br><br>&nbsp;&nbsp; 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:<br>

<br>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;<br>&lt;document type=&quot;freeswitch/xml&quot;&gt;<br>&nbsp; &lt;section name=&quot;directory&quot; description=&quot;User Directory&quot;&gt;<br>

&nbsp;&nbsp;&nbsp; &lt;domain name=&quot;<a href="http://192.168.0.197" target="_blank">192.168.0.197</a>&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;user id=&quot;duck&quot; mailbox=&quot;duck&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;params&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name=&quot;password&quot; value=&quot;1234&quot; /&gt;<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name=&quot;vm-password&quot; value=&quot;1234&quot; /&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/params&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;variables&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;variable name=&quot;accountcode&quot; value=&quot;duck&quot; /&gt;<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;variable name=&quot;user-context&quot; value=&quot;default&quot; /&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;variable name=&quot;effective_caller_id_name&quot; value=&quot;duck&quot; /&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;variable name=&quot;effective_caller_id_number&quot; value=&quot;duck&quot; /&gt;<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/variables&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/user&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;/domain&gt;<br>&nbsp;&nbsp; &lt;/section&gt;<br>&lt;/document&gt;<br><br>And here is an example log I get from FS:<br><br>2008-11-24 14:08:48 [NOTICE] switch_channel.c:553 switch_channel_set_name() New Channel sofia/internal/<a href="mailto:duck@192.168.0.197" target="_blank">duck@192.168.0.197</a> [36959c5c-a2b0-f045-aac0-051b80911fb1]<br>

2008-11-24 14:08:48 [INFO] mod_dialplan_xml.c:233 dialplan_hunt() Processing testuser-&gt;duck2 in context public<br>2008-11-24 14:08:48 [NOTICE] switch_core_state_machine.c:160 switch_core_standard_on_execute() Hangup sofia/internal/<a href="mailto:duck2@192.168.0.197" target="_blank">duck2@192.168.0.197</a> [CS_EXECUTE] [NORMAL_CLEARING]<br>

nta: sent 480 Temporarily Unavailable for INVITE (13404)<br>nua(03C30980): removing session usage<br>nua(03C30980): call state changed: received -&gt; terminated<br>2008-11-24 14:08:48 [NOTICE] switch_core_session.c:878 switch_core_session_thread() Session 6 (sofia/internal/<a href="mailto:duck@192.168.0.197" target="_blank">duck@192.168.0.197</a>) Ended<br>

2008-11-24 14:08:48 [NOTICE] switch_core_session.c:880 switch_core_session_thread() Close Channel sofia/internal/<a href="mailto:duck@192.168.0.197" target="_blank">duck@192.168.0.197</a> [CS_HANGUP]<br>
<br>_______________________________________________<br>
Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
<br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400<br>