[Asterisk-code-review] chan sip: Crypto attribute not last but first on SDP media l... (asterisk[13])
Alexander Traud
asteriskteam at digium.com
Sat Oct 21 03:46:09 CDT 2017
Alexander Traud has uploaded this change for review. ( https://gerrit.asterisk.org/6860
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/60/6860/1
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 120bdd1..edaa387 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -13806,11 +13806,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);
}
@@ -13856,11 +13856,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/6860
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-MessageType: newchange
Gerrit-Change-Id: I8f23a51290a58b75816da2999ed1965441dfc5d6
Gerrit-Change-Number: 6860
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/a57092f9/attachment.html>
More information about the asterisk-code-review
mailing list