]> 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:37:54 +0000 (09:37 -0600)
commit1adefb886a4184405e246c886a881da1127f0a06
treeb4c28cd346858bf9493299747f2ecf467a5f73f2
parent4168fa3466c5eacdf892d08f868e53b417ac1df0
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