Fix a bug where the default setting did not perform a remote bridge when it should have.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@197996 65c4cc65-6c06-0410-ace0-fbb531ad65f3
certified/1.8.6
Joshua Colp 16 years ago
parent 5894cefe1f
commit 9944bce43c

@ -25080,9 +25080,7 @@ static enum ast_rtp_glue_result sip_get_rtp_peer(struct ast_channel *chan, struc
ao2_ref(p->rtp, +1);
*instance = p->rtp;
if (!ast_test_flag(&p->flags[0], SIP_CAN_REINVITE_NAT)) {
res = AST_RTP_GLUE_RESULT_LOCAL;
} else if (ast_test_flag(&p->flags[0], SIP_CAN_REINVITE)) {
if (ast_test_flag(&p->flags[0], SIP_CAN_REINVITE | SIP_CAN_REINVITE_NAT)) {
res = AST_RTP_GLUE_RESULT_REMOTE;
} else if (ast_test_flag(&global_jbconf, AST_JB_FORCED)) {
res = AST_RTP_GLUE_RESULT_FORBID;

Loading…
Cancel
Save