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

@@ -1382,7 +1382,14 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec
var digitalIndex = maxStrings * maxCalls;
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)
{