[commit] r3155 - freeswitch/trunk/src/mod/endpoints/mod_sofia
Author: mikej Date: Sun Oct 22 11:46:01 2006 New Revision: 3155 Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c Log: code before declaration Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c ============================================================================== --- freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c (original) +++ freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c Sun Oct 22 11:46:01 2006 @@ -3810,7 +3810,12 @@ nua_handle_destroy(nh); } } else if (status == 401 || status == 407) { + char const *realm = (char const *) *authenticate->au_params; + char const *scheme = (char const *) authenticate->au_scheme; + char authentication[256] = ""; + int ss_state; + if (sip->sip_www_authenticate) { authenticate = sip->sip_www_authenticate; } else if (sip->sip_proxy_authenticate) { @@ -3820,10 +3825,6 @@ return; } - char const *realm = (char const *) *authenticate->au_params; - char const *scheme = (char const *) authenticate->au_scheme; - char authentication[256] = ""; - int ss_state; snprintf(authentication, sizeof(authentication), "%s:%s:%s:%s", scheme, strstr(realm, "=") + 1, oreg->register_username,
participants (1)
-
Freeswitch SVN