aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-23 18:29:48 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-23 18:29:48 +0000
commit2e12b63fa2e8065f6e7c217a8a2124cbfeb20c39 (patch)
treee7c9566ed5cc48564bcd92214953a08ac7817387 /channels
parent49fa234763c27662cf6abeaa88578822042b04e3 (diff)
Merged revisions 76653 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r76653 | file | 2007-07-23 15:28:13 -0300 (Mon, 23 Jul 2007) | 4 lines (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. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@76654 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_agent.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_agent.c b/channels/chan_agent.c
index 4ebf9e120..04314a514 100644
--- a/channels/chan_agent.c
+++ b/channels/chan_agent.c
@@ -212,9 +212,9 @@ static AST_LIST_HEAD_STATIC(agents, agent_pvt); /*!< Holds the list of agents (l
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)