Esempio n. 1
0
        /// <summary>
        /// Send a re-INVITE request to put the remote call party on hold.
        /// </summary>
        public void PutOnHold()
        {
            LocalOnHold = true;

            // The action we take to put a call on hold is to switch the media status
            // to sendonly and change the audio input from a capture device to on hold
            // music.
            AdjustSdpForMediaState(LocalSDP);

            SessionMediaChanged?.Invoke(LocalSDP.ToString());
        }
Esempio n. 2
0
 /// <summary>
 /// Send a re-INVITE request to take the remote call party on hold.
 /// </summary>
 public void TakeOffHold()
 {
     LocalOnHold = false;
     SessionMediaChanged?.Invoke(CreateOfferInternal());
 }
Esempio n. 3
0
 /// <summary>
 /// Send a re-INVITE request to put the remote call party on hold.
 /// </summary>
 public void PutOnHold()
 {
     LocalOnHold = true;
     SessionMediaChanged?.Invoke(CreateOfferInternal());
 }
Esempio n. 4
0
 /// <summary>
 /// Send a re-INVITE request to take the remote call party on hold.
 /// </summary>
 public void TakeOffHold()
 {
     LocalOnHold = false;
     AdjustSdpForMediaState(LocalSDP);
     SessionMediaChanged?.Invoke(LocalSDP.ToString());
 }