]> git.ipfire.org Git - thirdparty/asterisk.git/commit
chan_sip: Allow [peer] without audio (text+video).
authorAlexander Traud <pabstraud@compuserve.com>
Fri, 5 Feb 2021 08:33:41 +0000 (09:33 +0100)
committerGeorge Joseph <gjoseph@digium.com>
Fri, 12 Feb 2021 13:18:50 +0000 (07:18 -0600)
commit2bcec10db8d5b78c85a1303179025d314fc6c4ab
tree7dd5bc2ed4eb4530c1e17832aee7a770d88e26ff
parent10c2e1749b764f4a225e857b1478c13a1b04f328
chan_sip: Allow [peer] without audio (text+video).

Two previous commits, 620d9f4 and 6d980de, allow to set up a call
without audio, again. That was introduced originally with commit f04d5fb
but changed and broke over time. The original commit missed one
scenario: A [peer] section in sip.conf, which does not allow audio at
all. In that case, chan_sip rejected the call, although even when the
requester offered no audio. Now, chan_sip does not check whether there
is no audio format but checks whether there is no format in general. In
other words, if there is at least one format to offer, the call succeeds.

However, to prevent calls with no-audio, chan_sip still rejects calls
when both call parties (caller = requester of the call *and* callee =
[peer] section in sip.conf) included audio. In such a case, it is
expected that the call should have audio.

ASTERISK-29280

Change-Id: I0fb74faf51ef22a60c10b467df6a4d1c1943b73e
channels/chan_sip.c