mirror of
https://github.com/asterisk/asterisk.git
synced 2026-07-23 16:05:30 -07:00
If a SIP channel is put on hold multiple times do not keep incrementing the onHold value.
(closes issue #11085) Reported by: francesco_r Tested by: blitzrage (closes issue #10474) Reported by: acennami git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@88671 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
+1
-1
@@ -4847,7 +4847,7 @@ static int find_sdp(struct sip_request *req)
|
||||
/*! \brief Change hold state for a call */
|
||||
static void change_hold_state(struct sip_pvt *dialog, struct sip_request *req, int holdstate, int sendonly)
|
||||
{
|
||||
if (global_notifyhold)
|
||||
if (global_notifyhold && (!holdstate || !ast_test_flag(&dialog->flags[1], SIP_PAGE2_CALL_ONHOLD)))
|
||||
sip_peer_hold(dialog, holdstate);
|
||||
if (global_callevents)
|
||||
manager_event(EVENT_FLAG_CALL, holdstate ? "Hold" : "Unhold",
|
||||
|
||||
Reference in New Issue
Block a user