fix(essentials): fixes index off by 1 error and updates call status to check for "OnHold" as status value

This commit is contained in:
Neil Dorin
2022-02-09 16:31:31 -07:00
parent e24965eb54
commit 7dd6b3a9b6
4 changed files with 15 additions and 7 deletions

View File

@@ -909,6 +909,7 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.Cisco
if (!string.IsNullOrEmpty(call.Status.Value))
{
tempActiveCall.Status = CodecCallStatus.ConvertToStatusEnum(call.Status.Value);
tempActiveCall.IsOnHold = call.Status.OnHold;
if (newStatus == eCodecCallStatus.Connected)
GetCallHistory();

View File

@@ -317,6 +317,8 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.Cisco
string _Value;
public bool BoolValue { get; private set; }
public bool OnHold { get; private set; }
public string Value
{
get
@@ -328,6 +330,7 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.Cisco
// If the incoming value is "Active" it sets the BoolValue true, otherwise sets it false
_Value = value;
BoolValue = value == "Active";
OnHold = value == "OnHold";
OnValueChanged();
}
}
@@ -2099,6 +2102,7 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.Cisco
CallType = new CallType();
Status = new Status2();
Duration = new Duration();
PlacedOnHold = new PlacedOnHold();
}
}