From: Joshua Colp Date: Mon, 25 Jun 2007 00:49:21 +0000 (+0000) Subject: Check to make sure the channel pointer is present before queueing up an unhold frame... X-Git-Tag: 1.4.6~41 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2886f912d63ce4850b11f13ac0ec424e7f319e05;p=thirdparty%2Fasterisk.git Check to make sure the channel pointer is present before queueing up an unhold frame on it. (issue #10046 reported by dimas) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@71412 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_agent.c b/channels/chan_agent.c index ac9d602cb2..08c3f80bc7 100644 --- a/channels/chan_agent.c +++ b/channels/chan_agent.c @@ -992,7 +992,7 @@ static struct ast_channel *agent_new(struct agent_pvt *p, int state) ast_mutex_unlock(&p->lock); /* For other thread to read the condition. */ return NULL; } - } + } else if (p->chan) ast_indicate(p->chan, AST_CONTROL_UNHOLD); p->owning_app = pthread_self(); /* After the above step, there should not be any blockers. */