[asterisk-commits] qwell: branch 1.4 r76620 - /branches/1.4/channels/chan_skinny.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Jul 23 12:57:53 CDT 2007
Author: qwell
Date: Mon Jul 23 12:57:53 2007
New Revision: 76620
URL: http://svn.digium.com/view/asterisk?view=rev&rev=76620
Log:
Don't try to queue up hold/unhold frames on a non-existent channel.
Issue 10276.
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=76620&r1=76619&r2=76620
==============================================================================
--- branches/1.4/channels/chan_skinny.c (original)
+++ branches/1.4/channels/chan_skinny.c Mon Jul 23 12:57:53 2007
@@ -2864,6 +2864,10 @@
struct skinnysession *s = d->session;
struct skinny_req *req;
+ /* Don't try to hold a channel that doesn't exist */
+ if (!sub || !sub->owner)
+ return 0;
+
/* Channel needs to be put on hold */
if (skinnydebug)
ast_verbose("Putting on Hold(%d)\n", l->instance);
@@ -2903,6 +2907,10 @@
struct skinny_device *d = l->parent;
struct skinnysession *s = d->session;
struct skinny_req *req;
+
+ /* Don't try to unhold a channel that doesn't exist */
+ if (!sub || !sub->owner)
+ return 0;
/* Channel is on hold, so we will unhold */
if (skinnydebug)
More information about the asterisk-commits
mailing list