]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
update
authorAnthony Minessale <anthony.minessale@gmail.com>
Fri, 11 May 2007 00:41:40 +0000 (00:41 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Fri, 11 May 2007 00:41:40 +0000 (00:41 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5142 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia_reg.c

index 673d5608eb0cbd53b5173b9ec6b3f5a2167da5eb..b9d19652b9d9ace55991388cf3959e3fec92e8b1 100644 (file)
@@ -281,7 +281,7 @@ uint8_t sofia_reg_handle_register(nua_t * nua, sofia_profile_t *profile, nua_han
 
        if (!from_user || !from_host) {
                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Can not do authorization without a complete from header\n");
-               nua_respond(nh, SIP_500_INTERNAL_SERVER_ERROR, TAG_END());
+               nua_respond(nh, SIP_401_UNAUTHORIZED, NUTAG_WITH_THIS(nua), TAG_END());
                return 1;
        }