[Freeswitch-trunk] [commit] r6716 - freeswitch/trunk/src/mod/endpoints/mod_sofia
Freeswitch SVN
anthm at freeswitch.org
Wed Dec 12 18:28:09 EST 2007
Author: anthm
Date: Wed Dec 12 18:28:09 2007
New Revision: 6716
Modified:
freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c
Log:
go ahead and umm auth
Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c (original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c Wed Dec 12 18:28:09 2007
@@ -404,7 +404,7 @@
authorization = sip->sip_proxy_authorization;
}
- if ((profile->pflags & PFLAG_BLIND_REG)) {
+ if (regtype == REG_REGISTER && (profile->pflags & PFLAG_BLIND_REG)) {
goto reg;
}
@@ -462,7 +462,6 @@
if (!authorization || stale) {
sofia_reg_auth_challange(nua, profile, nh, regtype, to_host, stale);
-
if (regtype == REG_REGISTER) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Requesting Registration from: [%s@%s]\n", to_user, to_host);
}
@@ -841,7 +840,7 @@
dparams = switch_xml_child(domain, "params");
uparams = switch_xml_child(user, "params");
- if (!(dparams && uparams)) {
+ if (!(dparams || uparams)) {
ret = AUTH_OK;
goto skip_auth;
}
More information about the Freeswitch-trunk
mailing list