[svn-commits] trunk r33110 - /trunk/channels/chan_sip.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Thu Jun 8 13:07:06 MST 2006


Author: oej
Date: Thu Jun  8 15:07:05 2006
New Revision: 33110

URL: http://svn.digium.com/view/asterisk?rev=33110&view=rev
Log:
Don't crash if chan2 does not exist (one-legged call situations, like echo)

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=33110&r1=33109&r2=33110&view=diff
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Thu Jun  8 15:07:05 2006
@@ -12439,7 +12439,7 @@
 		return -1;
 	}
 
-	if (sipdebug && option_debug > 3)
+	if (current.chan2 && sipdebug && option_debug > 3)
 		ast_log(LOG_DEBUG, "Got SIP transfer, applying to bridged peer '%s'\n", current.chan2->name);
 
 	/* Stop music on hold on this channel */



More information about the svn-commits mailing list