mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-14 20:24:57 +00:00
fix: fixed issue where bridge activecalldata xsig would not be cleared when there were no calls
This commit is contained in:
@@ -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)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user