]> 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)
committerBernd Zobl <b.zobl@commend.com>
Thu, 17 Jun 2021 12:24:09 +0000 (07:24 -0500)
commitc30f68a57bde8abf6aecb478be5f9c9a368a0599
tree213c0b418b61299a075b050cfff7b912e65d46c8
parentb7027de195d6163616c598ba3fa7c0de18571467
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