]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_sdp_rtp.c: Use correct timeout when put on hold.
authorBen Ford <bford@digium.com>
Mon, 12 Dec 2022 18:42:17 +0000 (12:42 -0600)
committerGeorge Joseph <gjoseph@digium.com>
Tue, 20 Dec 2022 15:38:05 +0000 (09:38 -0600)
commit881faf544f6010d13ba4c967dbf4491131abe369
tree59a9decaaa07d8b5ee2e911abee8bbe2dc8312d3
parent20d4775d0abb06eb51ccf1764e6729603b3510d4
res_pjsip_sdp_rtp.c: Use correct timeout when put on hold.

When a call is put on hold and it has moh_passthrough and rtp_timeout
set on the endpoint, the wrong timeout will be used. rtp_timeout_hold is
expected to be used, but rtp_timeout is used instead. This change adds a
couple of checks for locally_held to determine if rtp_timeout_hold needs
to be used instead of rtp_timeout.

ASTERISK-30350

Change-Id: I7b106fc244332014216d12bba851cefe884cc25f
res/res_pjsip_sdp_rtp.c