feat(essentials): Adds interface and implementation to join calls

This commit is contained in:
Neil Dorin
2021-11-10 14:08:12 -07:00
parent 6dd882b1a0
commit dc53ce42e7
3 changed files with 35 additions and 1 deletions

View File

@@ -30,7 +30,7 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.Cisco
IHasScheduleAwareness, IOccupancyStatusProvider, IHasCodecLayouts, IHasCodecSelfView,
ICommunicationMonitor, IRouting, IHasCodecCameras, IHasCameraAutoMode, IHasCodecRoomPresets,
IHasExternalSourceSwitching, IHasBranding, IHasCameraOff, IHasCameraMute, IHasDoNotDisturbMode,
IHasHalfWakeMode, IHasCallHold
IHasHalfWakeMode, IHasCallHold, IJoinCalls
{
private bool _externalSourceChangeRequested;
@@ -1400,6 +1400,23 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.Cisco
SendText(string.Format("xCommand Call Resume CallId: {0}", activeCall.Id));
}
#endregion
#region IJoinCalls
public void JoinCall(CodecActiveCallItem activeCall)
{
SendText(string.Format("xCommand Call Join CallId: {0}", activeCall.Id));
}
public void JoinAllCalls()
{
foreach (var call in ActiveCalls)
{
if(call.IsActiveCall)
JoinCall(call);
}
}
#endregion
public override void SendDtmf(string s)