[asterisk-commits] file: branch 1.4 r44806 - /branches/1.4/channels/chan_sip.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Tue Oct 10 09:30:01 MST 2006


Author: file
Date: Tue Oct 10 11:30:00 2006
New Revision: 44806

URL: http://svn.digium.com/view/asterisk?rev=44806&view=rev
Log:
Bail out if we have no refer structure and we get a refer response

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?rev=44806&r1=44805&r2=44806&view=diff
==============================================================================
--- branches/1.4/channels/chan_sip.c (original)
+++ branches/1.4/channels/chan_sip.c Tue Oct 10 11:30:00 2006
@@ -11538,6 +11538,12 @@
 {
 	char *auth = "Proxy-Authenticate";
 	char *auth2 = "Proxy-Authorization";
+
+	/* If no refer structure exists, then do nothing */
+	if (!p->refer) {
+		ast_set_flag(&p->flags[0], SIP_NEEDDESTROY);
+		return;
+	}
 
 	switch (resp) {
 	case 202:   /* Transfer accepted */



More information about the asterisk-commits mailing list