diff options
author | Alexander Traud <pabstraud@compuserve.com> | 2017-10-21 10:44:21 +0200 |
---|---|---|
committer | Alexander Traud <pabstraud@compuserve.com> | 2017-10-21 03:45:52 -0500 |
commit | 3eeb37b6fd0b989c26527c790938088dedea56de (patch) | |
tree | fed89dc57a2467627b5f87646630dbdb37b65493 /channels | |
parent | f2c95fb7e409c1ef289f1eb96dde915221d636f1 (diff) |
chan_sip: Crypto attribute not last but first on SDP media level.
This matches the behavior of the other SIP channel driver, chan_pjsip.
ASTERISK-27365
Change-Id: I8f23a51290a58b75816da2999ed1965441dfc5d6
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index ace1f823f..8833e7111 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -13820,11 +13820,11 @@ static enum sip_result add_sdp(struct sip_request *resp, struct sip_pvt *p, int case SDP_AUDIO: if (needaudio) { add_content(resp, ast_str_buffer(m_audio)); - add_content(resp, ast_str_buffer(a_audio)); - add_content(resp, hold); if (a_crypto) { add_content(resp, a_crypto); } + add_content(resp, ast_str_buffer(a_audio)); + add_content(resp, hold); } else { add_content(resp, offer->decline_m_line); } @@ -13870,11 +13870,11 @@ static enum sip_result add_sdp(struct sip_request *resp, struct sip_pvt *p, int /* generate new SDP from scratch, no offers */ if (needaudio) { add_content(resp, ast_str_buffer(m_audio)); - add_content(resp, ast_str_buffer(a_audio)); - add_content(resp, hold); if (a_crypto) { add_content(resp, a_crypto); } + add_content(resp, ast_str_buffer(a_audio)); + add_content(resp, hold); } if (needvideo) { /* only if video response is appropriate */ add_content(resp, ast_str_buffer(m_video)); |