Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/hotfix/fix-thread-aborts-again' …
Browse files Browse the repository at this point in the history
…into feature/presenter-pin-prompt

# Conflicts:
#	src/WebexPinRequestHandler.cs
  • Loading branch information
ngenovese11 committed May 23, 2024
2 parents 9080c4c + a994597 commit a7b7276
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 13 deletions.
7 changes: 6 additions & 1 deletion src/CiscoCodecPhonebookDataClasses.cs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ public static List<DirectoryItem> GetRootContactsFromSearchResult(PhonebookSearc

foreach (Contact c in result.Contact)
{
var contact = new DirectoryContact();
var contact = new DirectoryContact {ParentFolderId = "root"};

if (string.IsNullOrEmpty(c.FolderId.Value))
{
Expand Down Expand Up @@ -277,6 +277,7 @@ public static List<DirectoryItem> GetRootContactsFromSearchResult(PhonebookSearc

contact.ContactMethods.Add(tempContactMethod);
}

rootContacts.Add(contact);
}
}
Expand Down Expand Up @@ -347,6 +348,10 @@ public static CodecDirectory ConvertCiscoPhonebookToGeneric(PhonebookSearchResul
{
contact.FolderId = c.FolderId.Value;
}
else
{
contact.FolderId = "root";
}

foreach (ContactMethod m in c.ContactMethod)
{
Expand Down
27 changes: 15 additions & 12 deletions src/CiscoRoomOsCodec.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2908,10 +2908,10 @@ public eCodecCallStatus ConvertToStatusEnum(string s)

public bool MergeCallData(CodecActiveCallItem existingCallData, CodecActiveCallItem newCallData)
{
Debug.Console(0, this, "Merging Call Data");
Debug.Console(0, this, "Existing : ");
Debug.Console(2, this, "Merging Call Data");
Debug.Console(2, this, "Existing : ");
PrintCallItem(existingCallData);
Debug.Console(0, this, "New");
Debug.Console(2, this, "New");
PrintCallItem(newCallData);
bool valueChanged = false;

Expand All @@ -2921,8 +2921,8 @@ public bool MergeCallData(CodecActiveCallItem existingCallData, CodecActiveCallI
valueChanged = true;
}

Debug.Console(1, "New Duration : {0}", newCallData.Duration.TotalSeconds);
Debug.Console(1, "Old Duration : {0}", existingCallData.Duration.TotalSeconds);
Debug.Console(2, "New Duration : {0}", newCallData.Duration.TotalSeconds);
Debug.Console(2, "Old Duration : {0}", existingCallData.Duration.TotalSeconds);
if (existingCallData.Duration != newCallData.Duration &&
newCallData.Duration.Seconds != Int32.MaxValue)
{
Expand Down Expand Up @@ -3389,7 +3389,8 @@ private void ParseStatusObject(JToken statusToken)
if (!_syncState.InitialConfigurationMessageWasReceived)
{
Debug.Console(0, this, "Sending Configuration");
SendText("xConfiguration");
SendText("xConfiguration conference");
SendText("xConfiguration h323");
}
if (_syncState.FeedbackWasRegistered) return;
Debug.Console(0, this, "Sending Feedback");
Expand Down Expand Up @@ -3491,6 +3492,7 @@ private void ParseConfigurationObject(JToken configurationToken)
}
if (_syncState.InitialConfigurationMessageWasReceived) return;
Debug.Console(2, this, "InitialConfig Received");

_syncState.InitialConfigurationMessageReceived();
if (!_syncState.InitialSoftwareVersionMessageWasReceived)
{
Expand Down Expand Up @@ -3593,8 +3595,7 @@ private void ParsePhonebookNumberOfContacts(
}
catch (Exception ex)
{

Debug.Console(0, this, "Exception in ParsePhonebookNumberOfContacts : {0}", ex.Message);
Debug.Console(0, this, "Exception in ParsePhonebookNumberOfContacts : {0}", ex);
if (ex.InnerException == null) return;
Debug.Console(0, this, "Inner Exception in ParsePhonebookNumberOfContacts : {0}", ex.InnerException.Message);
}
Expand Down Expand Up @@ -3784,11 +3785,14 @@ private static string ParseResultId(JObject obj)
{
try
{
return obj["ResultId"].ToString();
JToken result;
return obj.TryGetValue("ResultId", out result)
? result.Value<string>()
: string.Empty;
}
catch (Exception ex)
{
return Guid.Empty.ToString();
return string.Empty;
}
}

Expand Down Expand Up @@ -4455,8 +4459,7 @@ var jPreset in

if (ex is JsonReaderException)
{
Debug.Console(1, this, "Received malformed response from codec.");

Debug.Console(1, this, "Received malformed response from codec:{0}", response);
//Communication.Disconnect();

//Initialize();
Expand Down

0 comments on commit a7b7276

Please sign in to comment.