<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) "profile".<br></li><li style>Each SIP profile has a default context, set in the sip_profiles/<profile>.xml file, in the "context" param. This context is usually "public".<br>
</li><li style>Each SIP profile has an optional domain, which specifies where to look for id/password pairs in the "directory". This is usually "N/A", which says to look in all domains. (?)</li><li style>
When authenticated with an id/password that matches in entry in the "directory" configuration, a "user_context" 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 "default" record is used, probably the one that doesn't specify a "password" param. This "default" user typically does <b>not</b> set a user_context, leaving the registration with the default context (usually "public" 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 "public". 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 "default" directory entry that sets a user_context, but to prevent this "default" directory entry from being used on the "external" SIP profile, but I haven'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"><<a href="mailto:sirimmfs@gmail.com" target="_blank">sirimmfs@gmail.com</a>></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>