[asterisk-commits] trunk - r8561 /trunk/channels/chan_sip.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Tue Jan 24 12:19:22 MST 2006


Author: oej
Date: Tue Jan 24 13:19:20 2006
New Revision: 8561

URL: http://svn.digium.com/view/asterisk?rev=8561&view=rev
Log:
Issue 6114: Don't hangup on bye/also if there's no channel. (gst)

Modified:
    trunk/channels/chan_sip.c

Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?rev=8561&r1=8560&r2=8561&view=diff
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Tue Jan 24 13:19:20 2006
@@ -6882,7 +6882,8 @@
 	}
 	if (ast_exists_extension(NULL, p->context, c, 1, NULL)) {
 		/* This is an unsupervised transfer */
-		ast_log(LOG_DEBUG,"Assigning Extension %s to REFER-TO\n", c);
+		if (option_debug)
+			ast_log(LOG_DEBUG,"Assigning Extension %s to REFER-TO\n", c);
 		ast_string_field_set(p, refer_to, c);
 		ast_string_field_free(p, referred_by);
 		ast_string_field_free(p, refer_contact);
@@ -10719,7 +10720,8 @@
 			}
 		} else {
 			ast_log(LOG_WARNING, "Invalid transfer information from '%s'\n", ast_inet_ntoa(iabuf, sizeof(iabuf), p->recv.sin_addr));
-			ast_queue_hangup(p->owner);
+			if (p->owner)
+				ast_queue_hangup(p->owner);
 		}
 	} else if (p->owner)
 		ast_queue_hangup(p->owner);



More information about the asterisk-commits mailing list