Smash system monitor bug

This commit is contained in:
Heath Volmer
2019-01-24 11:20:24 -07:00
parent 8d03bef34f
commit 530e1ebcb8
3 changed files with 20 additions and 7 deletions

View File

@@ -138,7 +138,9 @@ namespace PepperDash.Essentials
/// <param name="programEventType"></param> /// <param name="programEventType"></param>
void CrestronEnvironment_ProgramStatusEventHandler(eProgramStatusEventType programEventType) void CrestronEnvironment_ProgramStatusEventHandler(eProgramStatusEventType programEventType)
{ {
if (programEventType == eProgramStatusEventType.Stopping && WSClient.Connected) if (programEventType == eProgramStatusEventType.Stopping
&& WSClient != null
&& WSClient.Connected)
{ {
CleanUpWebsocketClient(); CleanUpWebsocketClient();
} }

View File

@@ -203,7 +203,9 @@ namespace PepperDash.Essentials.AppServer.Messengers
currentCallString = EISC.GetString(SCurrentCallNumber), currentCallString = EISC.GetString(SCurrentCallNumber),
currentDialString = EISC.GetString(SCurrentDialString), currentDialString = EISC.GetString(SCurrentDialString),
isInCall = EISC.GetString(SHookState) == "Connected", isInCall = EISC.GetString(SHookState) == "Connected",
hasDirectory = true,
hasRecents = true,
hasCameras = true
}); });
} }

View File

@@ -75,7 +75,7 @@ namespace PepperDash.Essentials.Room.Cotija
/// <summary> /// <summary>
/// 72 /// 72
/// </summary> /// </summary>
public const uint SourceHasChanged = 72; public const uint SourceHasChanged = 71;
/// <summary> /// <summary>
/// 261 - The start of the range of speed dial visibles /// 261 - The start of the range of speed dial visibles
/// </summary> /// </summary>
@@ -176,6 +176,15 @@ namespace PepperDash.Essentials.Room.Cotija
/// 621 /// 621
/// </summary> /// </summary>
public const uint SourceIconJoinStart = 621; public const uint SourceIconJoinStart = 621;
/// <summary>
/// 641
/// </summary>
public const uint SourceKeyJoinStart = 641;
/// <summary>
/// 661
/// </summary>
public const uint SourceTypeJoinStart = 661;
} }
@@ -507,10 +516,10 @@ namespace PepperDash.Essentials.Room.Cotija
var name = EISC.StringOutput[StringJoin.SourceNameJoinStart + i].StringValue; var name = EISC.StringOutput[StringJoin.SourceNameJoinStart + i].StringValue;
if(string.IsNullOrEmpty(name)) if(string.IsNullOrEmpty(name))
break; break;
var icon = EISC.StringOutput[651 + i].StringValue; var icon = EISC.StringOutput[StringJoin.SourceIconJoinStart + i].StringValue;
var key = EISC.StringOutput[671 + i].StringValue; var key = EISC.StringOutput[StringJoin.SourceKeyJoinStart + i].StringValue;
var type = EISC.StringOutput[BoolJoin.SourceShareDisableStartJoin + i].StringValue; var type = EISC.StringOutput[StringJoin.SourceTypeJoinStart + i].StringValue;
var disableShare = EISC.BooleanOutput[601 + i].BoolValue; var disableShare = EISC.BooleanOutput[BoolJoin.SourceShareDisableStartJoin + i].BoolValue;
Debug.Console(0, this, "Adding source {0} '{1}'", key, name); Debug.Console(0, this, "Adding source {0} '{1}'", key, name);
var newSLI = new SourceListItem{ var newSLI = new SourceListItem{