mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-11 02:35:00 +00:00
cisco-spark-2 merge
This commit is contained in:
@@ -551,9 +551,17 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.Cisco
|
||||
SendText(string.Format("xCommand Dial BookingId: {0}", s));
|
||||
}
|
||||
|
||||
public override void EndCall(string s)
|
||||
public override void EndCall(CodecActiveCallItem activeCall)
|
||||
{
|
||||
SendText(string.Format("xCommand Call Disconnect CallId: {0}", GetCallId()));
|
||||
SendText(string.Format("xCommand Call Disconnect CallId: {0}", activeCall.Id));
|
||||
}
|
||||
|
||||
public override void EndAllCalls()
|
||||
{
|
||||
foreach (CodecActiveCallItem activeCall in ActiveCalls)
|
||||
{
|
||||
SendText(string.Format("xCommand Call Disconnect CallId: {0}", activeCall.Id));
|
||||
}
|
||||
}
|
||||
|
||||
public override void AcceptCall()
|
||||
|
||||
@@ -9,22 +9,24 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec
|
||||
{
|
||||
public class CodecActiveCallItem
|
||||
{
|
||||
public string Name { get; private set; }
|
||||
public string Name { get; set; }
|
||||
|
||||
public string Number { get; private set; }
|
||||
public string Number { get; set; }
|
||||
|
||||
public eCodecCallType Type { get; private set; }
|
||||
public eCodecCallType Type { get; set; }
|
||||
|
||||
public CodecActiveCallItem(string name, string number, eCodecCallType type)
|
||||
{
|
||||
Name = name;
|
||||
Number = number;
|
||||
Type = type;
|
||||
}
|
||||
public eCodecCallStatus Status { get; set; }
|
||||
|
||||
public string Id { get; set; }
|
||||
}
|
||||
|
||||
public enum eCodecCallType
|
||||
{
|
||||
None, Audio, Video
|
||||
}
|
||||
|
||||
public enum eCodecCallStatus
|
||||
{
|
||||
Dialing, Established, Incoming
|
||||
}
|
||||
}
|
||||
@@ -71,11 +71,18 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public override void EndCall(string s)
|
||||
public override void EndCall(CodecActiveCallItem activeCall)
|
||||
{
|
||||
Debug.Console(1, this, "EndCall");
|
||||
ActiveCalls.RemoveAll(i => i.Name == s);
|
||||
ActiveCallCountFeedback.FireUpdate();
|
||||
//_InCall = false;
|
||||
//IsInCall.FireUpdate();
|
||||
}
|
||||
|
||||
public override void EndAllCalls()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -80,7 +80,12 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec
|
||||
#region IHasDialer Members
|
||||
|
||||
public abstract void Dial(string s);
|
||||
public abstract void EndCall(string s);
|
||||
public void EndCall(object activeCall)
|
||||
{
|
||||
|
||||
}
|
||||
public abstract void EndCall(CodecActiveCallItem activeCall);
|
||||
public abstract void EndAllCalls();
|
||||
public abstract void AcceptCall();
|
||||
public abstract void RejectCall();
|
||||
public abstract void SendDtmf(string s);
|
||||
|
||||
Reference in New Issue
Block a user