mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-01-30 21:04:48 +00:00
fix(essentials): Attempts to set OnHold an alternative way
This commit is contained in:
@@ -909,7 +909,10 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.Cisco
|
||||
if (!string.IsNullOrEmpty(call.Status.Value))
|
||||
{
|
||||
tempActiveCall.Status = CodecCallStatus.ConvertToStatusEnum(call.Status.Value);
|
||||
tempActiveCall.IsOnHold = tempActiveCall.Status == eCodecCallStatus.OnHold;
|
||||
if (tempActiveCall.Status == eCodecCallStatus.OnHold)
|
||||
{
|
||||
tempActiveCall.IsOnHold = true;
|
||||
}
|
||||
|
||||
if (newStatus == eCodecCallStatus.Connected)
|
||||
GetCallHistory();
|
||||
@@ -1186,7 +1189,7 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.Cisco
|
||||
|
||||
if (ex is Newtonsoft.Json.JsonReaderException)
|
||||
{
|
||||
Debug.Console(1, this, "Received malformed response from codec. Unable to deserialize. Disconnecting and attmpting to recconnect");
|
||||
Debug.Console(1, this, "Received malformed response from codec.");
|
||||
|
||||
//Communication.Disconnect();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user