From: Joshua Colp Date: Fri, 16 Feb 2007 22:13:45 +0000 (+0000) Subject: Do not send indications through ast_indicate in chan_agent but instead go directly... X-Git-Tag: 1.2.16~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=28c428929ed63296d28e2b087c89ed6a30f45040;p=thirdparty%2Fasterisk.git Do not send indications through ast_indicate in chan_agent but instead go directly to the technology. This way when indications are emulated they happen on the Agent channel and do not screw up formats on the channels. (issue #8439 reported by punkgode) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@54999 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_agent.c b/channels/chan_agent.c index bba17969c5..f1c2de9ae0 100644 --- a/channels/chan_agent.c +++ b/channels/chan_agent.c @@ -616,7 +616,7 @@ static int agent_indicate(struct ast_channel *ast, int condition) int res = -1; ast_mutex_lock(&p->lock); if (p->chan) - res = ast_indicate(p->chan, condition); + res = p->chan->tech->indicate ? p->chan->tech->indicate(p->chan, condition) : -1; else res = 0; ast_mutex_unlock(&p->lock);