mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-14 20:24:57 +00:00
fix(essentials): fixes to on hold feedback and call status xsig
This commit is contained in:
@@ -909,11 +909,8 @@ 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);
|
||||||
if (tempActiveCall.Status == eCodecCallStatus.OnHold)
|
tempActiveCall.IsOnHold = tempActiveCall.Status == eCodecCallStatus.OnHold;
|
||||||
{
|
|
||||||
tempActiveCall.IsOnHold = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (newStatus == eCodecCallStatus.Connected)
|
if (newStatus == eCodecCallStatus.Connected)
|
||||||
GetCallHistory();
|
GetCallHistory();
|
||||||
|
|
||||||
|
|||||||
@@ -1270,7 +1270,8 @@ ScreenIndexIsPinnedTo: {8} (a{17})
|
|||||||
{
|
{
|
||||||
const int maxCalls = 8;
|
const int maxCalls = 8;
|
||||||
const int maxStrings = 6;
|
const int maxStrings = 6;
|
||||||
const int offset = 6;
|
const int maxDigitals = 2;
|
||||||
|
const int offset = maxStrings + maxDigitals;
|
||||||
var stringIndex = 0;
|
var stringIndex = 0;
|
||||||
var digitalIndex = maxStrings * maxCalls;
|
var digitalIndex = maxStrings * maxCalls;
|
||||||
var arrayIndex = 0;
|
var arrayIndex = 0;
|
||||||
@@ -1282,8 +1283,8 @@ ScreenIndexIsPinnedTo: {8} (a{17})
|
|||||||
if (arrayIndex >= maxCalls * offset)
|
if (arrayIndex >= maxCalls * offset)
|
||||||
break;
|
break;
|
||||||
//digitals
|
//digitals
|
||||||
tokenArray[arrayIndex] = new XSigDigitalToken(digitalIndex + 1, call.IsActiveCall);
|
tokenArray[digitalIndex] = new XSigDigitalToken(digitalIndex + 1, call.IsActiveCall);
|
||||||
tokenArray[arrayIndex + 1] = new XSigDigitalToken(digitalIndex + 2, call.IsOnHold);
|
tokenArray[digitalIndex + 1] = new XSigDigitalToken(digitalIndex + 2, call.IsOnHold);
|
||||||
|
|
||||||
//serials
|
//serials
|
||||||
tokenArray[arrayIndex + 1] = new XSigSerialToken(stringIndex + 1, call.Name ?? String.Empty);
|
tokenArray[arrayIndex + 1] = new XSigSerialToken(stringIndex + 1, call.Name ?? String.Empty);
|
||||||
@@ -1305,8 +1306,8 @@ ScreenIndexIsPinnedTo: {8} (a{17})
|
|||||||
while (digitalIndex < maxCalls)
|
while (digitalIndex < maxCalls)
|
||||||
{
|
{
|
||||||
//digitals
|
//digitals
|
||||||
tokenArray[arrayIndex] = new XSigDigitalToken(digitalIndex + 1, false);
|
tokenArray[digitalIndex] = new XSigDigitalToken(digitalIndex + 1, false);
|
||||||
tokenArray[arrayIndex + 1] = new XSigDigitalToken(digitalIndex + 2, false);
|
tokenArray[digitalIndex + 1] = new XSigDigitalToken(digitalIndex + 2, false);
|
||||||
|
|
||||||
|
|
||||||
//serials
|
//serials
|
||||||
|
|||||||
Reference in New Issue
Block a user