<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Configuration looks correct now, and yes SIP Provider should send traffic&nbsp; to your IP:5080. If you register to the provider, that is automatic, if the provider uses IP authentication, just have them send traffic to IP:5080. Most sip providers have no problem doing it, otherwise you will need to have them send to :5060 and will need to add their IP to the ACL.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:7.5pt;font-family:"Verdana","sans-serif";color:#333399'>Thanks,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.5pt;font-family:"Verdana","sans-serif";color:#333399'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:7.5pt;font-family:"Verdana","sans-serif";color:#333399'>Moishe Grunstein<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.5pt;font-family:"Verdana","sans-serif";color:#333399'>Tornado Computer Systems, Inc.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.5pt;font-family:"Verdana","sans-serif";color:#333399'>212.400.7650 888.IPPBX.US<br></span><b><span style='font-size:7.5pt;font-family:"Verdana","sans-serif";color:#76923C'>Service Request Email: <a href="mailto:support@nysolutions.com">support@nysolutions.com</a> </span></b><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#333399'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.5pt;font-family:"Verdana","sans-serif";color:#333399'>Polycom Certified VAR<br>Microsoft Small Business Specialist, Cisco SMB Select Certified</span><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#333399'><o:p></o:p></span></p><p class=MsoNormal><a href="http://www.nysolutions.com/"><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D;text-decoration:none'><img border=0 width=147 height=68 id="Picture_x0020_1" src="cid:image001.jpg@01CEF9D4.F361A9D0" alt="cid:image001.jpg@01C72F94.9EE45D60"></span></a><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:8.0pt;font-family:"Calibri","sans-serif";color:#C0504D'>Computer Networking * Managed Services * IP Video Surveillance * Network Assessments * Web Solutions * Voice over IP * Disaster Recovery * Network Security * Site Surveys * CMS</span><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] <b>On Behalf Of </b>Nathan Samson<br><b>Sent:</b> Sunday, December 15, 2013 3:12 PM<br><b>To:</b> FreeSWITCH Users Help<br><b>Subject:</b> Re: [Freeswitch-users] Authenticated users still using public context<o:p></o:p></span></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><div><div><div><div><div><div><div><div><div><p class=MsoNormal>@Moishe Thanks, that seemed to help.<br>My Current configuration is now<o:p></o:p></p></div><p class=MsoNormal>Internal profile listening on 5060, auth_calls is set to true, so anyone else is blocked. dialplan is default.<o:p></o:p></p></div><p class=MsoNormal>External profile listening on 5080, anyone can enter, dial plan is public<o:p></o:p></p></div><p class=MsoNormal style='margin-bottom:12.0pt'>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><o:p></o:p></p></div><p class=MsoNormal style='margin-bottom:12.0pt'>@covici<br><br>You mean these lines right?<br>&nbsp;&nbsp;&nbsp; &lt;!--<br>&nbsp;&nbsp;&nbsp; &lt;extension name=&quot;check_auth&quot; continue=&quot;true&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field=&quot;${sip_authorized}&quot; expression=&quot;^true$&quot; break=&quot;never&quot;&gt;<br>&nbsp;&nbsp;&nbsp; &lt;anti-action application=&quot;respond&quot; data=&quot;407&quot;/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &lt;extension name=&quot;transfer_to_default&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition&gt;<br>&nbsp;&nbsp;&nbsp; &lt;action application=&quot;transfer&quot; data=&quot;${destination_number} XML default&quot;/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;<br>&nbsp;&nbsp;&nbsp; --&gt;<o:p></o:p></p></div><p class=MsoNormal>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...<o:p></o:p></p></div><p class=MsoNormal style='margin-bottom:12.0pt'>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.<o:p></o:p></p></div><p class=MsoNormal>Thanks for the quick responses,<o:p></o:p></p></div><p class=MsoNormal>Nathan<o:p></o:p></p><div><div><div><div><div><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div></div></div></div></div></div></div><div><p class=MsoNormal style='margin-bottom:12.0pt'><o:p>&nbsp;</o:p></p><div><p class=MsoNormal>On Sun, Dec 15, 2013 at 8:40 PM, &lt;<a href="mailto:covici@ccs.covici.com" target="_blank">covici@ccs.covici.com</a>&gt; wrote:<o:p></o:p></p><p class=MsoNormal>Did you remove the comment tags at the end of public.xml?<o:p></o:p></p><div><div><p class=MsoNormal><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't find the answer.<br>&gt;<br>&gt;<br>&gt; My Setup<br>&gt; &nbsp;* I have users in the directory (see an example configuration at the<br>&gt; bottom of this mail)<br>&gt; &nbsp;* Authenticated users should be able to use the default Dialplan<br>&gt; &nbsp;* 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; &nbsp;* 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; &nbsp; &lt;user id=&quot;nathan&quot; number-alias=&quot;1200&quot;&gt;<br>&gt; &nbsp; &nbsp; &lt;params&gt;<br>&gt; &nbsp; &nbsp; &nbsp; &lt;param name=&quot;password&quot; value=&quot;**&quot;/&gt;<br>&gt; &nbsp; &nbsp; &lt;/params&gt;<br>&gt; &nbsp; &nbsp; &lt;variables&gt;<br>&gt; &nbsp; &nbsp; &nbsp; &lt;variable name=&quot;toll_allow&quot; value=&quot;domestic,international,local&quot;/&gt;<br>&gt; &nbsp; &nbsp; &nbsp; &lt;variable name=&quot;user_context&quot; value=&quot;default&quot;/&gt;<br>&gt; &nbsp; &nbsp; &nbsp; &lt;variable name=&quot;effective_caller_id_name&quot; value=&quot;Nathan Samson&quot;/&gt;<br>&gt; &nbsp; &nbsp; &nbsp; &lt;variable name=&quot;effective_caller_id_number&quot; value=&quot;1200&quot;/&gt;<br>&gt; &nbsp; &nbsp; &nbsp; &lt;variable name=&quot;outbound_caller_id_name&quot; value=&quot;Nathan Samson&quot;/&gt;<br>&gt; &nbsp; &nbsp; &nbsp; &lt;variable name=&quot;outbound_caller_id_number&quot; value=&quot;1200&quot;/&gt;<br>&gt; &nbsp; &nbsp; &lt;/variables&gt;<br>&gt; &nbsp; &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 &nbsp;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;<o:p></o:p></p></div></div><p class=MsoNormal>&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. &nbsp;You're going to lose it. &nbsp;The question is:<br>How do<br>you spend it?<br><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;John Covici<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<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><o:p></o:p></p></div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div></div></body></html>