summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorzuul <zuul@gerrit.asterisk.org>2016-03-31 17:03:53 -0500
committerGerrit Code Review <gerrit2@gerrit.digium.api>2016-03-31 17:03:53 -0500
commite9db9ebeaeaf5dac0690aaf8193901cf98484030 (patch)
treeab4288323b2d435d92809c6909f64ddb4f4f6b3e /channels
parente8c6cf89475a3dff8d3b7a18022efafaeec89076 (diff)
parent81ce60f6d442e9e681bdfa72bc3d0204ad1cc744 (diff)
Merge "chan_sip: Do not send all codecs on INVITE. Do not break on Session-Timers." into 13
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 83d3ea0eb..91fb0b546 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -13530,7 +13530,7 @@ static enum sip_result add_sdp(struct sip_request *resp, struct sip_pvt *p, int
}
/* Finally our remaining audio/video codecs */
- for (x = 0; ast_test_flag(&p->flags[0], SIP_OUTGOING) && x < ast_format_cap_count(p->caps); x++) {
+ for (x = 0; p->outgoing_call && x < ast_format_cap_count(p->caps); x++) {
tmp_fmt = ast_format_cap_get_format(p->caps, x);
if (ast_format_cap_iscompatible_format(alreadysent, tmp_fmt) != AST_FORMAT_CMP_NOT_EQUAL) {