[Asterisk-code-review] chan sip: Crypto attribute not last but first on SDP media l... (asterisk[15])
Alexander Traud
asteriskteam at digium.com
Sat Oct 21 03:45:54 CDT 2017
Alexander Traud has uploaded this change for review. ( https://gerrit.asterisk.org/6859
Change subject: chan_sip: Crypto attribute not last but first on SDP media level.
......................................................................
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
---
M channels/chan_sip.c
1 file changed, 4 insertions(+), 4 deletions(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/59/6859/1
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index ace1f82..8833e71 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -13820,11 +13820,11 @@
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 @@
/* 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));
--
To view, visit https://gerrit.asterisk.org/6859
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 15
Gerrit-MessageType: newchange
Gerrit-Change-Id: I8f23a51290a58b75816da2999ed1965441dfc5d6
Gerrit-Change-Number: 6859
Gerrit-PatchSet: 1
Gerrit-Owner: Alexander Traud <pabstraud at compuserve.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20171021/8d53d410/attachment-0001.html>
More information about the asterisk-code-review
mailing list