[asterisk-commits] oej: branch 1.4 r48977 -
/branches/1.4/channels/chan_sip.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Wed Dec 27 09:12:22 MST 2006
Author: oej
Date: Wed Dec 27 10:12:21 2006
New Revision: 48977
URL: http://svn.digium.com/view/asterisk?view=rev&rev=48977
Log:
Issue 8599 (rizzo) Change invitestate before re-sending invite with auth.
Modified:
branches/1.4/channels/chan_sip.c
Modified: branches/1.4/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_sip.c?view=diff&rev=48977&r1=48976&r2=48977
==============================================================================
--- branches/1.4/channels/chan_sip.c (original)
+++ branches/1.4/channels/chan_sip.c Wed Dec 27 10:12:21 2006
@@ -11718,6 +11718,8 @@
if (!ast_test_flag(req, SIP_PKT_IGNORE)) {
char *authenticate = (resp == 401 ? "WWW-Authenticate" : "Proxy-Authenticate");
char *authorization = (resp == 401 ? "Authorization" : "Proxy-Authorization");
+ if (p->authtries < MAX_AUTHTRIES)
+ p->invitestate = INV_CALLING;
if ((p->authtries == MAX_AUTHTRIES) || do_proxy_auth(p, req, authenticate, authorization, SIP_INVITE, 1)) {
ast_log(LOG_NOTICE, "Failed to authenticate on INVITE to '%s'\n", get_header(&p->initreq, "From"));
ast_set_flag(&p->flags[0], SIP_NEEDDESTROY);
More information about the asterisk-commits
mailing list