Merged revisions 45678 via svnmerge from
[asterisk/asterisk.git] / channels / chan_sip.c
index f98bc35..7c60bdf 100644 (file)
@@ -16412,6 +16412,8 @@ static enum ast_rtp_get_result sip_get_rtp_peer(struct ast_channel *chan, struct
 
        if (ast_test_flag(&p->flags[0], SIP_CAN_REINVITE))
                res = AST_RTP_TRY_NATIVE;
+       else if (ast_test_flag(&global_jbconf, AST_JB_FORCED))
+               res = AST_RTP_GET_FAILED;
 
        ast_mutex_unlock(&p->lock);