[asterisk-commits] file: branch 1.2 r54999 - /branches/1.2/channels/chan_agent.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri Feb 16 15:13:46 MST 2007


Author: file
Date: Fri Feb 16 16:13:45 2007
New Revision: 54999

URL: http://svn.digium.com/view/asterisk?view=rev&rev=54999
Log:
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)

Modified:
    branches/1.2/channels/chan_agent.c

Modified: branches/1.2/channels/chan_agent.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/channels/chan_agent.c?view=diff&rev=54999&r1=54998&r2=54999
==============================================================================
--- branches/1.2/channels/chan_agent.c (original)
+++ branches/1.2/channels/chan_agent.c Fri Feb 16 16:13:45 2007
@@ -616,7 +616,7 @@
 	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);



More information about the asterisk-commits mailing list