]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_sdp_rtp: Evaluate remotely held for Session Progress
authorBernd Zobl <b.zobl@commend.com>
Fri, 7 May 2021 06:18:40 +0000 (08:18 +0200)
committerGeorge Joseph <gjoseph@digium.com>
Tue, 22 Jun 2021 13:06:30 +0000 (08:06 -0500)
commit1b8f9a08d92f945940cb275d4af1f70c1bae1e7b
treec95b04b777d760764087bd88023da1dbe78a890e
parentd41c4db68d754920b33b01021ca80d9e9dd0c305
res_pjsip_sdp_rtp: Evaluate remotely held for Session Progress

With the fix for ASTERISK_28754 channels are no longer put on hold if an
outbound INVITE is answered with a "Session Progress" containing
"inactive" audio.

The previous change moved the evaluation of the media attributes to
`negotiate_incoming_sdp_stream()` to have the `remotely_held` status
available when building the SDP in `create_outgoing_sdp_stream()`.
This however means that an answer to an outbound INVITE, which does not
traverse `negotiate_incoming_sdp_stream()`, cannot set the
`remotely_held` status anymore.

This change moves the check so that both, `negotiate_incoming_sdp_stream()` and
`apply_negotiated_sdp_stream()` can do the checks.

ASTERISK-29479

Change-Id: Icde805a819399d5123b688e1ed1d2bcd9d5b0f75
res/res_pjsip_sdp_rtp.c