[asterisk-commits] mmichelson: branch group/CCSS_Monitor_Restructure r244502 - /team/group/CCSS_...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Feb 3 10:02:43 CST 2010


Author: mmichelson
Date: Wed Feb  3 10:02:39 2010
New Revision: 244502

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=244502
Log:
Add some more handling of 401/407 responses on PUBLISH


Modified:
    team/group/CCSS_Monitor_Restructure/channels/chan_sip.c

Modified: team/group/CCSS_Monitor_Restructure/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/team/group/CCSS_Monitor_Restructure/channels/chan_sip.c?view=diff&rev=244502&r1=244501&r2=244502
==============================================================================
--- team/group/CCSS_Monitor_Restructure/channels/chan_sip.c (original)
+++ team/group/CCSS_Monitor_Restructure/channels/chan_sip.c Wed Feb  3 10:02:39 2010
@@ -19936,11 +19936,14 @@
 	ast_assert(epa_entry != NULL);
 
 	if (resp == 401 || resp == 407) {
+		ast_string_field_set(p, theirtag, NULL);
 		if (p->options) {
 			p->options->auth_type = (resp == 401 ? WWW_AUTH : PROXY_AUTH);
 		}
 		if ((p->authtries == MAX_AUTHTRIES) || do_proxy_auth(p, req, resp, SIP_PUBLISH, 0)) {
 			ast_log(LOG_NOTICE, "Failed to authenticate on PUBLISH to '%s'\n", get_header(&p->initreq, "From"));
+			pvt_set_needdestroy(p, "Failed to authenticate on PUBLISH");
+			sip_alreadygone(p);
 		}
 		return;
 	}




More information about the asterisk-commits mailing list