<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> <!--<br> <extension name="check_auth" continue="true"><br> <condition field="${sip_authorized}" expression="^true$" break="never"><br>
<anti-action application="respond" data="407"/><br> </condition><br> </extension><br> <br> <extension name="transfer_to_default"><br> <condition><br>
<action application="transfer" data="${destination_number} XML default"/><br> </condition><br> </extension><br> --><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"><<a href="mailto:covici@ccs.covici.com" target="_blank">covici@ccs.covici.com</a>></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 <<a href="mailto:nathan@nathansamson.be">nathan@nathansamson.be</a>> wrote:<br>
<br>
> Hi,<br>
><br>
> I fear I am going to ask a very stupid and/or commong question, but after<br>
> searching the internet I stil lcoudln't find the answer.<br>
><br>
><br>
> My Setup<br>
> * I have users in the directory (see an example configuration at the<br>
> bottom of this mail)<br>
> * Authenticated users should be able to use the default Dialplan<br>
> * I want my DID provider to be able to make calls to me, it should use the<br>
> public Dialplan / context. My DID provider is mydivert but that seems to be<br>
> irrelevant.<br>
> * I only have one SIP Profile (external) which has as default context<br>
> public. All my users are connecting from the internet and not from the<br>
> local network, so the internal profile would not make sense (or am I wrong?)<br>
><br>
> My problem is that calls from <a href="mailto:nathan@sip.radarwerk.be">nathan@sip.radarwerk.be</a> are NOT using the<br>
> default context, but are using the public context.<br>
><br>
> 2013-12-15 15:04:53.206937 [DEBUG] switch_core_state_machine.c:117<br>
> sofia/external/<a href="mailto:nathan@sip.radarwerk.be">nathan@sip.radarwerk.be</a> Standard ROUTING<br>
> "2013-12-15 15:04:53.206937 [INFO] mod_dialplan_xml.c:558 Processing nathan<br>
> <nathan>->1999 in context public"<br>
><br>
> The user nathan in the directory has user_context set to default, so I do<br>
> not get why this is happening.<br>
> See below for my configuration.<br>
><br>
><br>
> [root@sip freeswitch]# cat directory/default/nathan.xml<br>
> <include><br>
> <user id="nathan" number-alias="1200"><br>
> <params><br>
> <param name="password" value="**"/><br>
> </params><br>
> <variables><br>
> <variable name="toll_allow" value="domestic,international,local"/><br>
> <variable name="user_context" value="default"/><br>
> <variable name="effective_caller_id_name" value="Nathan Samson"/><br>
> <variable name="effective_caller_id_number" value="1200"/><br>
> <variable name="outbound_caller_id_name" value="Nathan Samson"/><br>
> <variable name="outbound_caller_id_number" value="1200"/><br>
> </variables><br>
> </user><br>
> </include><br>
><br>
><br>
> Anyone an idea why the user_context is ignored? I am happy to provide my<br>
> complete configuration. But basically I am using freeswitch-config-rayo<br>
> 1.2.16 from the CentOS 6 repositories with some small modifications<br>
> (mainly adding mydivert gateway, my users and my custom extensions in the<br>
> default directory).<br>
><br>
> Regards,<br>
> Nathan<br>
><br>
</div></div>> ----------------------------------------------------<br>
> Alternatives:<br>
><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>
<br>
--<br>
Your life is like a penny. You'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>