res_pjsip_session: Be less strict with core requested outgoing capabilities.
authorJoshua Colp <jcolp@digium.com>
Sun, 26 Jan 2014 02:11:04 +0000 (02:11 +0000)
committerJoshua Colp <jcolp@digium.com>
Sun, 26 Jan 2014 02:11:04 +0000 (02:11 +0000)
commitff455ee2aa466a8345ff0f9a6a016797058146d5
tree9af2fff7dce3663650768c2cc5c09a0707d5d798
parent42c15dfa6e133dd3e12e3314b302e567eb8d3f36
res_pjsip_session: Be less strict with core requested outgoing capabilities.

The core may (depending on circumstances) request a single codec on outgoing
calls. Many channel drivers ignore or treat this as a suggestion while still
including configured codecs. The res_pjsip_session logic treated this as
an explicit request, leaving out other configured codecs.

This change makes res_pjsip_session behave like other channel driver and simply
adds the requested codec to the list.

(closes issue ASTERISK-23082)
Reported by: xrobau

Review: https://reviewboard.asterisk.org/r/3140/
........

Merged revisions 406489 from http://svn.asterisk.org/svn/asterisk/branches/12

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@406490 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/res_pjsip_session.c