<div dir="ltr"><div style>Here is how I understand it:</div><div style><ul style><li style>Each network/port on which FreeSwitch listens is a separate SIP (sofia) &quot;profile&quot;.<br></li><li style>Each SIP profile has a default context, set in the sip_profiles/&lt;profile&gt;.xml file, in the &quot;context&quot; param. This context is usually &quot;public&quot;.<br>
</li><li style>Each SIP profile has an optional domain, which specifies where to look for id/password pairs in the &quot;directory&quot;.  This is usually &quot;N/A&quot;, which says to look in all domains.  (?)</li><li style>
When authenticated with an id/password that matches in entry in the &quot;directory&quot; configuration, a &quot;user_context&quot; is usually set.  This user context will override the default context set in the SIP profile.</li>
<li style>When a user registers because of an open ACL, and thus does not match an id/password, a &quot;default&quot; record is used, probably the one that doesn&#39;t specify a &quot;password&quot; param.  This &quot;default&quot; user typically does <b>not</b> set a user_context, leaving the registration with the default context (usually &quot;public&quot; as stated above).</li>
</ul>Based on that information, if your FS installation, for example, has 2 SIP profiles, and one is on an internal LAN, and thus secure, you could set the context of that SIP profile to be something other than &quot;public&quot;. In this case, if an unknown phone were plugged into your LAN, it could register without a profile and then be able to dial calls.</div>
<div style><br></div><div style>There is probably also a way to make registrations without a password on a particular SIP profile use a &quot;default&quot; directory entry that sets a user_context, but to prevent this &quot;default&quot; directory entry from being used on the &quot;external&quot; SIP profile, but I haven&#39;t had a need to figure out how to do that.</div>
<div style><br></div><div style>-- </div><div style>Steve</div><div><br></div>On Wed, Mar 20, 2013 at 10:58 PM, Siri MM <span dir="ltr">&lt;<a href="mailto:sirimmfs@gmail.com" target="_blank">sirimmfs@gmail.com</a>&gt;</span> wrote:<br>
<div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Thanks for clarifying this Avi!!</div><div> </div>
<div>Would it be safe to say this?</div><div>1. If user context is default, and user has registered (may be because of an open acl), then on receiving a call, default context is searched</div>
<div>2. If user context is default, and user has not registered, then on receiving a call, public context is searched</div><div>3. If user context is public, then on receiving a call, public context is searched</div></div>
</blockquote></div></div></div>