aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_sip.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2009-05-29 17:51:06 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2009-05-29 17:51:06 +0000
commitebbf2ea9297a2bcc6ded2b12d24545b9dce72125 (patch)
tree6d324fe0967ed57a03d03bf3bdd0699a928e02e8 /channels/chan_sip.c
parent95162e811d3c87ba80905752183e8b55830c82f3 (diff)
Fix a bug where the default setting did not perform a remote bridge when it should have.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@197996 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_sip.c')
-rw-r--r--channels/chan_sip.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 3e074c7d2..fe6fd070c 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -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;