Author: file
Date: Mon Jul 23 13:28:13 2007
New Revision: 76653
URL: http://svn.digium.com/view/asterisk?view=rev&rev=76653
Log:
(closes issue #5866)
Reported by: tyler
Do not force channel format changes when a generator is present. The generator
may have changed the formats itself and changing them back would cause issues.
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=76653&r1=76652&r2=76653
==============================================================================
--- branches/1.2/channels/chan_agent.c (original)
+++ branches/1.2/channels/chan_agent.c Mon Jul 23 13:28:13 2007
@@ -217,9 +217,9 @@
ast_set_read_format(ast, ast->readformat); \
ast_set_write_format(ast, ast->writeformat); \
} \
- if (p->chan->readformat != ast->rawreadformat) \
+ if (p->chan->readformat != ast->rawreadformat &&
!p->chan->generator) \
ast_set_read_format(p->chan, ast->rawreadformat); \
- if (p->chan->writeformat != ast->rawwriteformat) \
+ if (p->chan->writeformat != ast->rawwriteformat &&
!p->chan->generator) \
ast_set_write_format(p->chan, ast->rawwriteformat); \
} \
} while(0)
_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--
svn-commits mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/svn-commits