summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 31064fe6a..5b1d252be 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -9037,6 +9037,9 @@ static void change_hold_state(struct sip_pvt *dialog, struct sip_request *req, i
}
/* No address for RTP, we're on hold */
+ /* Ensure hold flags are cleared so that overlapping flags do not conflict */
+ ast_clear_flag(&dialog->flags[1], SIP_PAGE2_CALL_ONHOLD);
+
if (sendonly == 1) /* One directional hold (sendonly/recvonly) */
ast_set_flag(&dialog->flags[1], SIP_PAGE2_CALL_ONHOLD_ONEDIR);
else if (sendonly == 2) /* Inactive stream */