aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-02-16 22:13:45 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-02-16 22:13:45 +0000
commit130e6cc4378fe42fc4899e942bb0609551c068fa (patch)
tree9a6286fef0c2871ac524bb27f7d43d6842294306
parent87ef22fdc006bcb2df978489affcf027b6912fb5 (diff)
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: http://svn.digium.com/svn/asterisk/branches/1.2@54999 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--channels/chan_agent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_agent.c b/channels/chan_agent.c
index bba17969c..f1c2de9ae 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);