aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_sip.c
diff options
context:
space:
mode:
Diffstat (limited to 'channels/chan_sip.c')
-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);