]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Ensure the onhold flag is set no matter what when being put on hold.
authorJoshua Colp <jcolp@digium.com>
Sat, 12 May 2007 16:32:15 +0000 (16:32 +0000)
committerJoshua Colp <jcolp@digium.com>
Sat, 12 May 2007 16:32:15 +0000 (16:32 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@64044 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 35eea7a12e4f348cf041a7f1e2f2696c8c633a9f..88ca01a3bb999a5b4091199712599f9474501a6c 100644 (file)
@@ -5276,6 +5276,8 @@ static int process_sdp(struct sip_pvt *p, struct sip_request *req)
                        ast_set_flag(&p->flags[1], SIP_PAGE2_CALL_ONHOLD_ONEDIR);
                else if (sendonly == 2) /* Inactive stream */
                        ast_set_flag(&p->flags[1], SIP_PAGE2_CALL_ONHOLD_INACTIVE);
+               else
+                       ast_set_flag(&p->flags[1], SIP_PAGE2_CALL_ONHOLD);
                if (global_notifyhold)
                        sip_peer_hold(p, 1);
        }