[asterisk-commits] qwell: branch 1.4 r77993 - /branches/1.4/channels/chan_skinny.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Aug 2 15:22:41 CDT 2007
Author: qwell
Date: Thu Aug 2 15:22:40 2007
New Revision: 77993
URL: http://svn.digium.com/view/asterisk?view=rev&rev=77993
Log:
If a device disconnects, the session will go away.
If this happens during call setup, we need to give up.
Issue 10325.
Modified:
branches/1.4/channels/chan_skinny.c
Modified: branches/1.4/channels/chan_skinny.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_skinny.c?view=diff&rev=77993&r1=77992&r2=77993
==============================================================================
--- branches/1.4/channels/chan_skinny.c (original)
+++ branches/1.4/channels/chan_skinny.c Thu Aug 2 15:22:40 2007
@@ -2727,6 +2727,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