]> git.ipfire.org Git - thirdparty/asterisk.git/commit
chan_sip: Set up calls without audio (text+video), again.
authorAlexander Traud <pabstraud@compuserve.com>
Wed, 27 Jan 2021 17:42:06 +0000 (18:42 +0100)
committerAlexander Traud <pabstraud@compuserve.com>
Wed, 3 Feb 2021 09:00:22 +0000 (10:00 +0100)
commit620d9f478230e07e6fff0baba2de90a07807148d
tree1982e6203a55920559d08eaacb4912bd74836096
parent55891227e82690000eb46f207b9aaaf05247c35b
chan_sip: Set up calls without audio (text+video), again.

The previous commit 6d980de fixed this issue in the core of Asterisk.
With that, each channel technology can be used without audio
theoretically. Practically, the channel-technology driver chan_sip
turned out to have an invalid check preventing that. chan_sip tested
whether there is at least one audio format. However, chan_sip has to
test whether there is at least one format. More cannot be tested while
requesting chan_sip because only the [general] capabilities but not the
[peer] caps are known yet. And the [peer] caps might not be a subset or
show any intersection with the [general] caps. This change here fixes
this.

The original commit f04d5fb, thirteen years ago, contained a software
bug as it passed ANY audio capability to the channel-technology driver.
Instead, it should have passed NO audio format. Therefore, this
addressed issue here was not noticed in Asterisk 1.6.x and Asterisk 1.8.
Then, Asterisk 10 changed that from ANY to NO, but nobody reported since
then.

ASTERISK-29265

Change-Id: Ic16a3bf13cd1b5c4fc4041ed74961177d96b600f
channels/chan_sip.c