[asterisk-commits] qwell: trunk r77994 - in /trunk: ./ channels/chan_skinny.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Aug 2 15:23:21 CDT 2007


Author: qwell
Date: Thu Aug  2 15:23:20 2007
New Revision: 77994

URL: http://svn.digium.com/view/asterisk?view=rev&rev=77994
Log:
Merged revisions 77993 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

(closes issue #10325)
........
r77993 | qwell | 2007-08-02 15:22:40 -0500 (Thu, 02 Aug 2007) | 5 lines

If a device disconnects, the session will go away.
If this happens during call setup, we need to give up.

Issue 10325.

........

Modified:
    trunk/   (props changed)
    trunk/channels/chan_skinny.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Modified: trunk/channels/chan_skinny.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_skinny.c?view=diff&rev=77994&r1=77993&r2=77994
==============================================================================
--- trunk/channels/chan_skinny.c (original)
+++ trunk/channels/chan_skinny.c Thu Aug  2 15:23:20 2007
@@ -2935,6 +2935,11 @@
 	struct skinnysession *s = d->session;
 	char exten[AST_MAX_EXTENSION] = "";
 
+	if (!s) {
+		ast_log(LOG_NOTICE, "Asked to indicate '%s' condition on channel %s, but session does not exist.\n", control2str(ind), ast->name);
+		return -1;
+	}
+
 	ast_copy_string(exten, S_OR(ast->macroexten, ast->exten), sizeof(exten));
 
 	if (skinnydebug)




More information about the asterisk-commits mailing list