mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-14 20:24:57 +00:00
fix(essentials): fixes index off by 1 error and updates call status to check for "OnHold" as status value
This commit is contained in:
@@ -240,7 +240,7 @@ namespace PepperDash.Essentials.Core.Bridges.JoinMaps
|
|||||||
new JoinMetadata
|
new JoinMetadata
|
||||||
{
|
{
|
||||||
Description = "Speed Dial",
|
Description = "Speed Dial",
|
||||||
JoinCapabilities = eJoinCapabilities.ToSIMPL,
|
JoinCapabilities = eJoinCapabilities.FromSIMPL,
|
||||||
JoinType = eJoinType.Digital
|
JoinType = eJoinType.Digital
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -940,7 +940,7 @@ namespace PepperDash.Essentials.Core.Bridges.JoinMaps
|
|||||||
new JoinMetadata
|
new JoinMetadata
|
||||||
{
|
{
|
||||||
Description = "Pulse to remove the selected recent call item specified by the SelectRecentCallItem analog join",
|
Description = "Pulse to remove the selected recent call item specified by the SelectRecentCallItem analog join",
|
||||||
JoinCapabilities = eJoinCapabilities.ToSIMPL,
|
JoinCapabilities = eJoinCapabilities.FromSIMPL,
|
||||||
JoinType = eJoinType.Digital
|
JoinType = eJoinType.Digital
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -954,7 +954,7 @@ namespace PepperDash.Essentials.Core.Bridges.JoinMaps
|
|||||||
new JoinMetadata
|
new JoinMetadata
|
||||||
{
|
{
|
||||||
Description = "Pulse to dial the selected recent call item specified by the SelectRecentCallItem analog join",
|
Description = "Pulse to dial the selected recent call item specified by the SelectRecentCallItem analog join",
|
||||||
JoinCapabilities = eJoinCapabilities.ToSIMPL,
|
JoinCapabilities = eJoinCapabilities.FromSIMPL,
|
||||||
JoinType = eJoinType.Digital
|
JoinType = eJoinType.Digital
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1037,8 +1037,8 @@ namespace PepperDash.Essentials.Core.Bridges.JoinMaps
|
|||||||
},
|
},
|
||||||
new JoinMetadata
|
new JoinMetadata
|
||||||
{
|
{
|
||||||
Description = "Holds Call at specified index",
|
Description = "Holds Call at specified index. FB reported on Call Status XSIG",
|
||||||
JoinCapabilities = eJoinCapabilities.ToFromSIMPL,
|
JoinCapabilities = eJoinCapabilities.FromSIMPL,
|
||||||
JoinType = eJoinType.Digital
|
JoinType = eJoinType.Digital
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -909,6 +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;
|
||||||
|
|
||||||
if (newStatus == eCodecCallStatus.Connected)
|
if (newStatus == eCodecCallStatus.Connected)
|
||||||
GetCallHistory();
|
GetCallHistory();
|
||||||
|
|||||||
@@ -317,6 +317,8 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.Cisco
|
|||||||
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
|
||||||
{
|
{
|
||||||
get
|
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
|
// 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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2099,6 +2102,7 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.Cisco
|
|||||||
CallType = new CallType();
|
CallType = new CallType();
|
||||||
Status = new Status2();
|
Status = new Status2();
|
||||||
Duration = new Duration();
|
Duration = new Duration();
|
||||||
|
PlacedOnHold = new PlacedOnHold();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1054,7 +1054,7 @@ ScreenIndexIsPinnedTo: {8} (a{17})
|
|||||||
{
|
{
|
||||||
if (u < 1 || u > entryToDial.ContactMethods.Count) return;
|
if (u < 1 || u > entryToDial.ContactMethods.Count) return;
|
||||||
|
|
||||||
trilist.SetSigFalseAction(joinMap.DirectoryDialSelectedContactMethod.JoinNumber, () => Dial(entryToDial.ContactMethods[u].Number));
|
trilist.SetSigFalseAction(joinMap.DirectoryDialSelectedContactMethod.JoinNumber, () => Dial(entryToDial.ContactMethods[u - 1].Number));
|
||||||
});
|
});
|
||||||
|
|
||||||
// Sets DirectoryDialSelectedLine join action to dial first contact method
|
// Sets DirectoryDialSelectedLine join action to dial first contact method
|
||||||
@@ -1216,7 +1216,7 @@ ScreenIndexIsPinnedTo: {8} (a{17})
|
|||||||
var holdCodec = this as IHasCallHold;
|
var holdCodec = this as IHasCallHold;
|
||||||
if (holdCodec != null)
|
if (holdCodec != null)
|
||||||
{
|
{
|
||||||
for (int i = 0; i < joinMap.JoinCallStart.JoinSpan; i++)
|
for (int i = 0; i < joinMap.HoldCallsStart.JoinSpan; i++)
|
||||||
{
|
{
|
||||||
trilist.SetSigFalseAction((uint)(joinMap.HoldCallsStart.JoinNumber + i), () =>
|
trilist.SetSigFalseAction((uint)(joinMap.HoldCallsStart.JoinNumber + i), () =>
|
||||||
{
|
{
|
||||||
@@ -1245,6 +1245,9 @@ ScreenIndexIsPinnedTo: {8} (a{17})
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private string UpdateCallStatusXSig()
|
private string UpdateCallStatusXSig()
|
||||||
|
|||||||
Reference in New Issue
Block a user