diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 5a99df4f50..5f613ef319 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -18640,7 +18640,7 @@ static int sip_set_rtp_peer(struct ast_channel *chan, struct ast_rtp *rtp, struc changed = 1; } } - if (changed && !ast_test_flag(&p->flags[0], SIP_GOTREFER)) { + if (changed && !ast_test_flag(&p->flags[0], SIP_GOTREFER) && !ast_test_flag(&p->flags[0], SIP_DEFER_BYE_ON_TRANSFER)) { if (chan->_state != AST_STATE_UP) { /* We are in early state */ if (p->do_history) append_history(p, "ExtInv", "Initial invite sent with remote bridge proposal.");