fix: fixed issue where bridge activecalldata xsig would not be cleared when there were no calls

This commit is contained in:
Trevor Payne
2022-09-27 14:07:17 -05:00
parent 93435b60b5
commit f5db28c3af
2 changed files with 15 additions and 8 deletions

View File

@@ -1,10 +1,10 @@
using System; using System;
namespace PepperDash.Essentials.Core.Bridges namespace PepperDash.Essentials.Core.Bridges
{ {
public class IDigitalInputJoinMap : JoinMapBaseAdvanced public class IDigitalInputJoinMap : JoinMapBaseAdvanced
{ {
[JoinName("InputState")] [JoinName("InputState")]
public JoinDataComplete InputState = new JoinDataComplete(new JoinData { JoinNumber = 1, JoinSpan = 1 }, public JoinDataComplete InputState = new JoinDataComplete(new JoinData { JoinNumber = 1, JoinSpan = 1 },
new JoinMetadata { Description = "Room Email Url", JoinCapabilities = eJoinCapabilities.ToSIMPL, JoinType = eJoinType.Digital }); new JoinMetadata { Description = "Room Email Url", JoinCapabilities = eJoinCapabilities.ToSIMPL, JoinType = eJoinType.Digital });
@@ -26,6 +26,6 @@ namespace PepperDash.Essentials.Core.Bridges
protected IDigitalInputJoinMap(uint joinStart, Type type) protected IDigitalInputJoinMap(uint joinStart, Type type)
: base(joinStart, type) : base(joinStart, type)
{ {
} }
} }
} }

View File

@@ -1382,7 +1382,14 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec
var digitalIndex = maxStrings * maxCalls; var digitalIndex = maxStrings * maxCalls;
var arrayIndex = 0; var arrayIndex = 0;
var tokenArray = new XSigToken[maxCalls * offset]; //set array size for number of calls * pieces of info if (ActiveCalls.Count == 0)
{
var clearBytes = XSigHelpers.ClearOutputs();
return Encoding.GetEncoding(XSigEncoding).GetString(clearBytes, 0, clearBytes.Length);
}
var tokenArray = new XSigToken[maxCalls * offset]; //set array size for number of calls * pieces of info
foreach (var call in ActiveCalls) foreach (var call in ActiveCalls)
{ {