If anything should be changed it's to add an additional <br>actual_register_domain header in the cases when it's being forced but it's not completely necessary.<br><br>Typical example is when a client is using the ip address in the domain field and you want to force it<br>
to point at the domain name in your registry.<br><br>The point of the param is to ignore the real domain supplied in the client and normalize all registrations to a certian domain in your db.<br>if you want to call registered users with this mode of operation you also need the force-register-db-domain<br>
which takes it a step further and writes the forced domain into the registration db so when you try to call user/<id>@<domain> <br>it will find it.<br><br><br><br><br><div class="gmail_quote">On Wed, Dec 24, 2008 at 3:31 PM, John Wehle <span dir="ltr"><<a href="mailto:john@feith.com">john@feith.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">>> a) Should sip_auth_realm be set by FreeSWITCH to the value associated<br>
>> with force-register-domain<br>
><br>
> You have to remember the default assumes a lot. You go to changing<br>
> things you have to then change the way things are assumed.<br>
<br>
I appreciate that. Let me ask the question slightly differently.<br>
<br>
sofia_reg_parse_auth contains the following logic:<br>
<br>
if (!switch_strlen_zero(profile->reg_domain)) {<br>
domain_name = profile->reg_domain;<br>
} else {<br>
domain_name = realm;<br>
}<br>
<br>
where profile->reg_domain is set from force-register-domain.<br>
It then calls switch_xml_locate_user using domain_name.<br>
It looks like force-register-domain is intended to make<br>
FreeSWITCH believe that the user is in domain specified by<br>
force-register-domain.<br>
<br>
Later there's:<br>
<br>
switch_event_add_header_string(*v_event, SWITCH_STACK_BOTTOM,<br>
"sip_auth_realm", realm);<br>
switch_event_add_header_string(*v_event, SWITCH_STACK_BOTTOM,<br>
"domain_name", realm);<br>
<br>
Shouldn't the add_header for domain_name contain the value for<br>
the actual domain used to locate the user?<br>
<br>
And ideally shouldn't the rest of FreeSWITCH (including examples<br>
intended to get you started) work in the same fashion for consistency<br>
sake (i.e. when trying to locate a user reference the domain used by<br>
sofia_reg_parse_auth to locate the user instead of blindly using<br>
sip_auth_realm)?<br>
<br>
My thought is if sofia_reg_parse_auth set things up properly,<br>
then the rest of FreeSWITCH shouldn't know or even care that<br>
force-register-domain is in use ... it should be as if the<br>
VoIP phone had in fact registered using the domain specified<br>
by force-register-domain.<br>
<br>
-- John<br>
-------------------------------------------------------------------------<br>
| Feith Systems | Voice: 1-215-646-8000 | Email: <a href="mailto:john@feith.com">john@feith.com</a> |<br>
| John Wehle | Fax: 1-215-540-5495 | |<br>
-------------------------------------------------------------------------<br>
<br>
<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>
</blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
<br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400<br>