mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-16 05:05:00 +00:00
fix(essentials): second attempt to get on hold fb working
This commit is contained in:
@@ -909,7 +909,7 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.Cisco
|
|||||||
if (!string.IsNullOrEmpty(call.Status.Value))
|
if (!string.IsNullOrEmpty(call.Status.Value))
|
||||||
{
|
{
|
||||||
tempActiveCall.Status = CodecCallStatus.ConvertToStatusEnum(call.Status.Value);
|
tempActiveCall.Status = CodecCallStatus.ConvertToStatusEnum(call.Status.Value);
|
||||||
tempActiveCall.IsOnHold = call.Status.OnHold;
|
tempActiveCall.IsOnHold = tempActiveCall.Status == eCodecCallStatus.OnHold;
|
||||||
|
|
||||||
if (newStatus == eCodecCallStatus.Connected)
|
if (newStatus == eCodecCallStatus.Connected)
|
||||||
GetCallHistory();
|
GetCallHistory();
|
||||||
|
|||||||
@@ -312,12 +312,33 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.Cisco
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public class CallStatus : ValueProperty
|
||||||
|
{
|
||||||
|
string _Value;
|
||||||
|
public bool BoolValue { get; private set; }
|
||||||
|
|
||||||
|
|
||||||
|
public string Value
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return _Value;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
// If the incoming value is "Active" it sets the BoolValue true, otherwise sets it false
|
||||||
|
_Value = value;
|
||||||
|
BoolValue = value == "Connected";
|
||||||
|
OnValueChanged();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public class Status2 : ValueProperty
|
public class Status2 : ValueProperty
|
||||||
{
|
{
|
||||||
string _Value;
|
string _Value;
|
||||||
public bool BoolValue { get; private set; }
|
public bool BoolValue { get; private set; }
|
||||||
|
|
||||||
public bool OnHold { get; private set; }
|
|
||||||
|
|
||||||
public string Value
|
public string Value
|
||||||
{
|
{
|
||||||
@@ -330,7 +351,6 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.Cisco
|
|||||||
// If the incoming value is "Active" it sets the BoolValue true, otherwise sets it false
|
// If the incoming value is "Active" it sets the BoolValue true, otherwise sets it false
|
||||||
_Value = value;
|
_Value = value;
|
||||||
BoolValue = value == "Active";
|
BoolValue = value == "Active";
|
||||||
OnHold = value == "OnHold";
|
|
||||||
OnValueChanged();
|
OnValueChanged();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2094,13 +2114,13 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.Cisco
|
|||||||
public Protocol Protocol { get; set; }
|
public Protocol Protocol { get; set; }
|
||||||
public ReceiveCallRate ReceiveCallRate { get; set; }
|
public ReceiveCallRate ReceiveCallRate { get; set; }
|
||||||
public RemoteNumber RemoteNumber { get; set; }
|
public RemoteNumber RemoteNumber { get; set; }
|
||||||
public Status2 Status { get; set; }
|
public CallStatus Status { get; set; }
|
||||||
public TransmitCallRate TransmitCallRate { get; set; }
|
public TransmitCallRate TransmitCallRate { get; set; }
|
||||||
|
|
||||||
public Call()
|
public Call()
|
||||||
{
|
{
|
||||||
CallType = new CallType();
|
CallType = new CallType();
|
||||||
Status = new Status2();
|
Status = new CallStatus();
|
||||||
Duration = new Duration();
|
Duration = new Duration();
|
||||||
PlacedOnHold = new PlacedOnHold();
|
PlacedOnHold = new PlacedOnHold();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user