<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 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> </o:p></span></p><p class=MsoNormal><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: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> </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> </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> </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> <!--<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> --><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> </o:p></p></div></div></div></div></div></div></div><div><p class=MsoNormal style='margin-bottom:12.0pt'><o:p> </o:p></p><div><p class=MsoNormal>On Sun, Dec 15, 2013 at 8:40 PM, <<a href="mailto:covici@ccs.covici.com" target="_blank">covici@ccs.covici.com</a>> 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 <<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>><o:p></o:p></p></div></div><p class=MsoNormal>> ----------------------------------------------------<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><o:p></o:p></p></div><p class=MsoNormal><o:p> </o:p></p></div></div></body></html>