diff options
author | Joshua Colp <jcolp@digium.com> | 2013-05-03 11:35:14 +0000 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2013-05-03 11:35:14 +0000 |
commit | e236c2ea36f9b9e84e40ebf9cf0baf8d0ce04322 (patch) | |
tree | 59a94a929b9ae640201221283e9891dbb28e6389 /channels | |
parent | 4d84d67e5713cd0de5761fe6485aa4fcf57c2704 (diff) |
Use the configured formats for Gulp sessions if there are no joint formats between requested formats and configured formats.
(closes issue ASTERISK-21756)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@387545 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_gulp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_gulp.c b/channels/chan_gulp.c index 395987405..0b7dedfb8 100644 --- a/channels/chan_gulp.c +++ b/channels/chan_gulp.c @@ -434,7 +434,7 @@ static struct ast_channel *gulp_new(struct ast_sip_session *session, int state, pvt->media[SIP_MEDIA_VIDEO] = ao2_find(session->media, "video", OBJ_KEY); ast_channel_tech_pvt_set(chan, pvt); - if (ast_format_cap_is_empty(session->req_caps)) { + if (ast_format_cap_is_empty(session->req_caps) || !ast_format_cap_has_joint(session->req_caps, session->endpoint->codecs)) { ast_format_cap_copy(ast_channel_nativeformats(chan), session->endpoint->codecs); } else { ast_format_cap_copy(ast_channel_nativeformats(chan), session->req_caps); |