[Asterisk-code-review] chan sip: Crypto attribute not last but first on SDP media l... (asterisk[13])
Jenkins2
asteriskteam at digium.com
Tue Oct 24 08:50:48 CDT 2017
Jenkins2 has submitted this change and it was merged. ( 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(-)
Approvals:
George Joseph: Looks good to me, but someone else must approve
Joshua Colp: Looks good to me, approved
Jenkins2: Approved for Submit
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: merged
Gerrit-Change-Id: I8f23a51290a58b75816da2999ed1965441dfc5d6
Gerrit-Change-Number: 6860
Gerrit-PatchSet: 1
Gerrit-Owner: Alexander Traud <pabstraud at compuserve.com>
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Jenkins2
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20171024/36f4d81b/attachment.html>
More information about the asterisk-code-review
mailing list