]> 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:19:09 +0000 (07:19 -0600)
commit45e48e387c5dfc6d719455777567d5aa580efff8
tree8c6b575b95ffd2ef4e6c05d8b9704ad58d82581c
parent28f187d6c5ae57a02569c86bf86b49ea5029d862
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