summaryrefslogtreecommitdiff
path: root/channels/chan_sip.c
diff options
context:
space:
mode:
Diffstat (limited to 'channels/chan_sip.c')
-rw-r--r--channels/chan_sip.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 6d8514199..ef83666db 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -13864,11 +13864,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);
}
@@ -13914,11 +13914,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));