summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2016-06-09 04:40:43 -0500
committerGerrit Code Review <gerrit2@gerrit.digium.api>2016-06-09 04:40:43 -0500
commit25255634386f33de5e80a88bc8a0e812d417f4ea (patch)
treeef5b461ea6a4e1e27fe8ff24f140d6b9c68ff483 /channels
parent7eb3a3357c4d27225bfb6f1ca00538407dae999c (diff)
parent784c18128b4b96c9993e7cfff93a70b75096762c (diff)
Merge "chan_sip: No rtpmap for static RTP payload IDs in SDP."
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index fc26e7ebf..eec904f57 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -12995,7 +12995,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 {
+ } else if ((35 <= rtp_code) || !(sip_cfg.compactheaders)) {
ast_str_append(a_buf, 0, "a=rtpmap:%d %s/%u\r\n", rtp_code, mime, rate);
}