<div dir="ltr"><div><div><div><div><div><div><div><div>@Moishe Thanks, that seemed to help.<br>My Current configuration is now<br></div>Internal profile listening on 5060, auth_calls is set to true, so anyone else is blocked. dialplan is default.<br>

</div>External profile listening on 5080, anyone can enter, dial plan is public<br></div>This configuration means that anyone registered on an external SIP provider (lets say <a href="http://mydivert.com">mydivert.com</a>) needs to talk to me on (the non default) port 5080. Is that normal? Except for that small problem (which in practice is not really a problem) everything is working perfectly now.<br>

Thanks for the clarification.<br><br><br></div>@covici<br><br>You mean these lines right?<br>    &lt;!--<br>    &lt;extension name=&quot;check_auth&quot; continue=&quot;true&quot;&gt;<br>      &lt;condition field=&quot;${sip_authorized}&quot; expression=&quot;^true$&quot; break=&quot;never&quot;&gt;<br>

    &lt;anti-action application=&quot;respond&quot; data=&quot;407&quot;/&gt;<br>      &lt;/condition&gt;<br>    &lt;/extension&gt;<br>    <br>    &lt;extension name=&quot;transfer_to_default&quot;&gt;<br>      &lt;condition&gt;<br>

    &lt;action application=&quot;transfer&quot; data=&quot;${destination_number} XML default&quot;/&gt;<br>      &lt;/condition&gt;<br>    &lt;/extension&gt;<br>    --&gt;<br><br></div>Note that in the public.xml from freeswitch-config-rayo these lines do not exist, and is having a catch all anyway sending everythign to rayo...<br>

</div>Uncommenting those and making the rayo extension not a catch all was possible but seemed a bit like a hack. The solution with two profiles seems the more normal one.<br><br></div>Thanks for the quick responses,<br>
</div>
Nathan<br><div><div><div><div><div><div><br></div></div></div></div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Dec 15, 2013 at 8:40 PM,  <span dir="ltr">&lt;<a href="mailto:covici@ccs.covici.com" target="_blank">covici@ccs.covici.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Did you remove the comment tags at the end of public.xml?<br>
<div><div class="h5"><br>
Nathan Samson &lt;<a href="mailto:nathan@nathansamson.be">nathan@nathansamson.be</a>&gt; wrote:<br>
<br>
&gt; Hi,<br>
&gt;<br>
&gt; I fear I am going to ask a very stupid and/or commong question, but after<br>
&gt; searching the internet I stil lcoudln&#39;t find the answer.<br>
&gt;<br>
&gt;<br>
&gt; My Setup<br>
&gt;  * I have users in the directory (see an example configuration at the<br>
&gt; bottom of this mail)<br>
&gt;  * Authenticated users should be able to use the default Dialplan<br>
&gt;  * I want my DID provider to be able to make calls to me, it should use the<br>
&gt; public Dialplan / context. My DID provider is mydivert but that seems to be<br>
&gt; irrelevant.<br>
&gt;  * I only have one SIP Profile (external) which has as default context<br>
&gt; public. All my users are connecting from the internet and not from the<br>
&gt; local network, so the internal profile would not make sense (or am I wrong?)<br>
&gt;<br>
&gt; My problem is that calls from <a href="mailto:nathan@sip.radarwerk.be">nathan@sip.radarwerk.be</a> are NOT using the<br>
&gt; default context, but are using the public context.<br>
&gt;<br>
&gt; 2013-12-15 15:04:53.206937 [DEBUG] switch_core_state_machine.c:117<br>
&gt; sofia/external/<a href="mailto:nathan@sip.radarwerk.be">nathan@sip.radarwerk.be</a> Standard ROUTING<br>
&gt; &quot;2013-12-15 15:04:53.206937 [INFO] mod_dialplan_xml.c:558 Processing nathan<br>
&gt; &lt;nathan&gt;-&gt;1999 in context public&quot;<br>
&gt;<br>
&gt; The user nathan in the directory has user_context set to default, so I do<br>
&gt; not get why this is happening.<br>
&gt; See below for my configuration.<br>
&gt;<br>
&gt;<br>
&gt; [root@sip freeswitch]# cat directory/default/nathan.xml<br>
&gt; &lt;include&gt;<br>
&gt;   &lt;user id=&quot;nathan&quot; number-alias=&quot;1200&quot;&gt;<br>
&gt;     &lt;params&gt;<br>
&gt;       &lt;param name=&quot;password&quot; value=&quot;**&quot;/&gt;<br>
&gt;     &lt;/params&gt;<br>
&gt;     &lt;variables&gt;<br>
&gt;       &lt;variable name=&quot;toll_allow&quot; value=&quot;domestic,international,local&quot;/&gt;<br>
&gt;       &lt;variable name=&quot;user_context&quot; value=&quot;default&quot;/&gt;<br>
&gt;       &lt;variable name=&quot;effective_caller_id_name&quot; value=&quot;Nathan Samson&quot;/&gt;<br>
&gt;       &lt;variable name=&quot;effective_caller_id_number&quot; value=&quot;1200&quot;/&gt;<br>
&gt;       &lt;variable name=&quot;outbound_caller_id_name&quot; value=&quot;Nathan Samson&quot;/&gt;<br>
&gt;       &lt;variable name=&quot;outbound_caller_id_number&quot; value=&quot;1200&quot;/&gt;<br>
&gt;     &lt;/variables&gt;<br>
&gt;   &lt;/user&gt;<br>
&gt; &lt;/include&gt;<br>
&gt;<br>
&gt;<br>
&gt; Anyone an idea why the user_context is ignored? I am happy to provide my<br>
&gt; complete configuration. But basically I am using freeswitch-config-rayo<br>
&gt; 1.2.16 from the CentOS  6 repositories with some small modifications<br>
&gt; (mainly adding mydivert gateway, my users and my custom extensions in the<br>
&gt; default directory).<br>
&gt;<br>
&gt; Regards,<br>
&gt; Nathan<br>
&gt;<br>
</div></div>&gt; ----------------------------------------------------<br>
&gt; Alternatives:<br>
&gt;<br>
&gt; ----------------------------------------------------<br>
&gt; _________________________________________________________________________<br>
&gt; Professional FreeSWITCH Consulting Services:<br>
&gt; <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
&gt; <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;<br>
&gt; FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
&gt; <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
&gt;<br>
&gt; Official FreeSWITCH Sites<br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt; <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
&gt; <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
&gt;<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br>
--<br>
Your life is like a penny.  You&#39;re going to lose it.  The question is:<br>
How do<br>
you spend it?<br>
<br>
         John Covici<br>
         <a href="mailto:covici@ccs.covici.com">covici@ccs.covici.com</a><br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><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>
</blockquote></div><br></div>