<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'>You need 2 profiles.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Internal and external.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Your users even remote users need to register to your internal profile, external profile is used to talk to your Gateways / ITSP.<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'>Get a copy of the <a href="http://www.amazon.com/FreeSWITCH-1-2-Anthony-Minessale/dp/1782161007%3FSubscriptionId%3D0FXDC1DRZ42TM6KY7Y82%26tag%3Dnysolutionsco-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D1782161007">Freeswitch book</a> or read the wiki.<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@01CEF99C.E640BDA0" 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 10:17 AM<br><b>To:</b> freeswitch-users@lists.freeswitch.org<br><b>Subject:</b> [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 style='margin-bottom:12.0pt'>Hi,<br><br>I fear I am going to ask a very stupid and/or commong question, but after searching the internet I stil lcoudln't find the answer.<br><br><o:p></o:p></p></div><p class=MsoNormal>My Setup<o:p></o:p></p></div><p class=MsoNormal>&nbsp;* I have users in the directory (see an example configuration at the bottom of this mail)<o:p></o:p></p></div><div><p class=MsoNormal>&nbsp;* Authenticated users should be able to use the default Dialplan<o:p></o:p></p></div><p class=MsoNormal>&nbsp;* I want my DID provider to be able to make calls to me, it should use the public Dialplan / context. My DID provider is mydivert but that seems to be irrelevant.<o:p></o:p></p></div><p class=MsoNormal style='margin-bottom:12.0pt'>&nbsp;* I only have one SIP Profile (external) which has as default context public. All my users are connecting from the internet and not from the local network, so the internal profile would not make sense (or am I wrong?)<o:p></o:p></p></div><p class=MsoNormal style='margin-bottom:12.0pt'>My problem is that calls from <a href="mailto:nathan@sip.radarwerk.be" target="_blank">nathan@sip.radarwerk.be</a> are NOT using the default context, but are using the public context.<br><br>2013-12-15 15:04:53.206937 [DEBUG] switch_core_state_machine.c:117 sofia/external/<a href="mailto:nathan@sip.radarwerk.be" target="_blank">nathan@sip.radarwerk.be</a> Standard ROUTING<br>&quot;2013-12-15 15:04:53.206937 [INFO] mod_dialplan_xml.c:558 Processing nathan &lt;nathan&gt;-&gt;1999 in context public&quot;<o:p></o:p></p></div><p class=MsoNormal>The user nathan in the directory has user_context set to default, so I do not get why this is happening.<o:p></o:p></p></div><p class=MsoNormal style='margin-bottom:12.0pt'>See below for my configuration.<br><br><br>[root@sip freeswitch]# cat directory/default/nathan.xml <br>&lt;include&gt;<br>&nbsp; &lt;user id=&quot;nathan&quot; number-alias=&quot;1200&quot;&gt;<br>&nbsp;&nbsp;&nbsp; &lt;params&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name=&quot;password&quot; value=&quot;**&quot;/&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/params&gt;<br>&nbsp;&nbsp;&nbsp; &lt;variables&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;variable name=&quot;toll_allow&quot; value=&quot;domestic,international,local&quot;/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;variable name=&quot;user_context&quot; value=&quot;default&quot;/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;variable name=&quot;effective_caller_id_name&quot; value=&quot;Nathan Samson&quot;/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;variable name=&quot;effective_caller_id_number&quot; value=&quot;1200&quot;/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;variable name=&quot;outbound_caller_id_name&quot; value=&quot;Nathan Samson&quot;/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;variable name=&quot;outbound_caller_id_number&quot; value=&quot;1200&quot;/&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/variables&gt;<br>&nbsp; &lt;/user&gt;<br>&lt;/include&gt;<br><br><o:p></o:p></p></div><p class=MsoNormal>Anyone an idea why the user_context is ignored? I am happy to provide my complete configuration. But basically I am using freeswitch-config-rayo 1.2.16 from the CentOS&nbsp; 6 repositories with some small modifications (mainly adding mydivert gateway, my users and my custom extensions in the default directory).<br><br>Regards,<br>Nathan<o:p></o:p></p></div></div></body></html>