-
Notifications
You must be signed in to change notification settings - Fork 464
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[4.3] - DUPT-193: Make conference websocket events more granular #6603
Conversation
- create telemetry consensus function - filter telemetry node_info from status
- Restore legacy binding logic as legacy binding strings were getting rewritten
This reverts commit fa06ab1.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nothing mandatory, just suggestions
Subscribed = [?ACCOUNT_BINDING(AccountId, ConferenceId, CallId)], | ||
Listeners = [{'amqp', 'conference', event_binding_options(AccountId, ConferenceId, CallId)}], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Subscribed = [?ACCOUNT_BINDING(AccountId, ConferenceId, CallId)], | |
Listeners = [{'amqp', 'conference', event_binding_options(AccountId, ConferenceId, CallId)}], | |
Subscribed = [?ACCOUNT_BINDING(AccountId, ConferenceId, CallId, ?ALL)], | |
Listeners = [{'amqp', 'conference', event_binding_options(AccountId, ConferenceId, CallId, ?ALL)}], |
-spec event_binding_options(kz_term:ne_binary(), kz_term:ne_binary(), kz_term:ne_binary()) -> kz_term:proplist(). | ||
event_binding_options(AccountId, ConferenceId, CallId) -> | ||
[{'restrict_to', [{'event', [{'account_id', AccountId} | ||
,{'conference_id', ConferenceId} | ||
,{'call_id', CallId} | ||
] | ||
}] | ||
} | ||
,'federate' | ||
]. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not needed if ?ALL
is used above
This PR Addresses a bug where the newly introduced granular subscriptions were passing the legacy binding thru and rewriting into the newer binding string.
Example:
was rewriting to
conference.event.b05d601a69718090248aec40ee8e049d.*.*