aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2009-05-19 14:41:45 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2009-05-19 14:41:45 +0000
commitf28c4584cc21af5f39e72de47f89da6aed0012b6 (patch)
tree5fd58dbeea8f5d22d99f22cf2009431bb6e3fe0a
parentc3dd782f95f809da02da9a4c2b663264136fef33 (diff)
Fix a bug where direct RTP setup would partially occur even when disabled if the calling channel was answered.
(issue #13545) Reported by: davidw (issue #14244) Reported by: mbnwa git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@195448 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--channels/chan_sip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 3bc29bb75..82233b929 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -18528,7 +18528,7 @@ static int sip_set_rtp_peer(struct ast_channel *chan, struct ast_rtp *rtp, struc
return -1;
/* Disable early RTP bridge */
- if (chan->_state != AST_STATE_UP && !global_directrtpsetup) /* We are in early state */
+ if (!ast_bridged_channel(chan) && !global_directrtpsetup) /* We are in early state */
return 0;
ast_mutex_lock(&p->lock);