diff options
author | Jenkins2 <jenkins2@gerrit.asterisk.org> | 2017-04-26 10:44:00 -0500 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2017-04-26 10:44:00 -0500 |
commit | e478d2eb94ec98ad8004e1b4b634b53e70591f8d (patch) | |
tree | 41112e2b4154fc5057bbda3861fdf4890e589133 /channels | |
parent | b382919017c2cc7f14814111f3bfc9a699cfad07 (diff) | |
parent | 72c5f3b0ba40e352fa26eeeead6e72eabd5e7730 (diff) |
Merge "res_pjsip_sdp_rtp: No rtpmap for static RTP payload IDs in SDP."
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index affe937e8..6fd7e8634 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -13097,7 +13097,7 @@ static void add_codec_to_sdp(const struct sip_pvt *p, /* Opus mandates 2 channels in rtpmap */ if (ast_format_cmp(format, ast_format_opus) == AST_FORMAT_CMP_EQUAL) { ast_str_append(a_buf, 0, "a=rtpmap:%d %s/%u/2\r\n", rtp_code, mime, rate); - } else if ((35 <= rtp_code) || !(sip_cfg.compactheaders)) { + } else if ((AST_RTP_PT_LAST_STATIC < rtp_code) || !(sip_cfg.compactheaders)) { ast_str_append(a_buf, 0, "a=rtpmap:%d %s/%u\r\n", rtp_code, mime, rate); } |