mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-15 12:44:58 +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))
|
if (!string.IsNullOrEmpty(call.Status.Value))
|
||||||
{
|
{
|
||||||
tempActiveCall.Status = CodecCallStatus.ConvertToStatusEnum(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)
|
if (newStatus == eCodecCallStatus.Connected)
|
||||||
GetCallHistory();
|
GetCallHistory();
|
||||||
@@ -1186,7 +1189,7 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.Cisco
|
|||||||
|
|
||||||
if (ex is Newtonsoft.Json.JsonReaderException)
|
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();
|
//Communication.Disconnect();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user