mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-15 04:34:56 +00:00
Merge pull request #907 from PepperDash/feature/refine-zoomroom-addedcontact-feedback-subscription
fix(essentials): #901 Refines initial synchronization sequence
This commit is contained in:
@@ -102,6 +102,8 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.ZoomRoom
|
|||||||
|
|
||||||
PhonebookSyncState = new CodecPhonebookSyncState(Key + "--PhonebookSync");
|
PhonebookSyncState = new CodecPhonebookSyncState(Key + "--PhonebookSync");
|
||||||
|
|
||||||
|
PhonebookSyncState.InitialSyncCompleted += (o, a) => ResubscribeForAddedContacts();
|
||||||
|
|
||||||
PortGather = new CommunicationGather(Communication, Delimiters) {IncludeDelimiter = true};
|
PortGather = new CommunicationGather(Communication, Delimiters) {IncludeDelimiter = true};
|
||||||
PortGather.LineReceived += Port_LineReceived;
|
PortGather.LineReceived += Port_LineReceived;
|
||||||
|
|
||||||
@@ -1017,10 +1019,11 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.ZoomRoom
|
|||||||
// Currently the feedback exclusions don't work when using the API in JSON response mode
|
// Currently the feedback exclusions don't work when using the API in JSON response mode
|
||||||
// But leave these here in case the API gets updated in the future
|
// But leave these here in case the API gets updated in the future
|
||||||
// These may work as of 5.9.4
|
// These may work as of 5.9.4
|
||||||
if (_props.DisablePhonebookAutoDownload)
|
|
||||||
{
|
// In 5.9.4 we're getting sent an AddedContact message for every contact in the phonebook on connect, which is redunant and way too much data
|
||||||
SendText("zFeedback Register Op: ex Path: /Event/Phonebook/AddedContact");
|
// We want to exclude these messages right away until after we've retrieved the entire phonebook and then we can re-enable them
|
||||||
}
|
SendText("zFeedback Register Op: ex Path: /Event/Phonebook/AddedContact");
|
||||||
|
|
||||||
SendText("zFeedback Register Op: ex Path: /Event/InfoResult/Info/callin_country_list");
|
SendText("zFeedback Register Op: ex Path: /Event/InfoResult/Info/callin_country_list");
|
||||||
SendText("zFeedback Register Op: ex Path: /Event/InfoResult/Info/callout_country_list");
|
SendText("zFeedback Register Op: ex Path: /Event/InfoResult/Info/callout_country_list");
|
||||||
SendText("zFeedback Register Op: ex Path: /Event/InfoResult/Info/toll_free_callinLlist");
|
SendText("zFeedback Register Op: ex Path: /Event/InfoResult/Info/toll_free_callinLlist");
|
||||||
@@ -1028,6 +1031,14 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.ZoomRoom
|
|||||||
SendText("zStatus SystemUnit");
|
SendText("zStatus SystemUnit");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Removes the feedback exclusion for added contacts
|
||||||
|
/// </summary>
|
||||||
|
private void ResubscribeForAddedContacts()
|
||||||
|
{
|
||||||
|
SendText("zFeedback Register Op: in Path: /Event/Phonebook/AddedContact");
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Processes non-JSON responses as their are received
|
/// Processes non-JSON responses as their are received
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user