[asterisk-commits] file: branch group/pimp_my_sip r382057 - /team/group/pimp_my_sip/channels/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Feb 25 13:55:39 CST 2013


Author: file
Date: Mon Feb 25 13:55:35 2013
New Revision: 382057

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=382057
Log:
Remove assumption that the INVITE session will exist when the session is ended.

Modified:
    team/group/pimp_my_sip/channels/chan_gulp.c

Modified: team/group/pimp_my_sip/channels/chan_gulp.c
URL: http://svnview.digium.com/svn/asterisk/team/group/pimp_my_sip/channels/chan_gulp.c?view=diff&rev=382057&r1=382056&r2=382057
==============================================================================
--- team/group/pimp_my_sip/channels/chan_gulp.c (original)
+++ team/group/pimp_my_sip/channels/chan_gulp.c Mon Feb 25 13:55:35 2013
@@ -806,7 +806,7 @@
 		return;
 	}
 
-	if (!ast_channel_hangupcause(session->channel)) {
+	if (!ast_channel_hangupcause(session->channel) && session->inv_session) {
 		int cause = hangup_sip2cause(session->inv_session->cause);
 
 		ast_queue_hangup_with_cause(session->channel, cause);




More information about the asterisk-commits mailing list