Skip to content
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

Event filtering call on application does nothing #98

Open
askenderovic opened this issue Nov 17, 2022 · 1 comment
Open

Event filtering call on application does nothing #98

askenderovic opened this issue Nov 17, 2022 · 1 comment

Comments

@askenderovic
Copy link

The event filtering on ApplicationActions accepts filter object that is in implementation encapsulated into object with filter property causing REST API to neglect the request without any error response.
request.AddParameter("application/json", new { filter = filter }, ParameterType.RequestBody);

In this way application event filtering is not possible to use. Can you correct implementation to provide filter object directly?
BTW, is it possible to set serializer options to use camelCase by default?

@DingbatDev
Copy link

I faced this issue.. I'm using a copy of the library (and a fork from someone else) to work around a couple of issues. It doesn't like it is being actively maintained at this point?

Anyway, in the ApplicationActions.cs file I changed the Filter() method to:
request.AddParameter("application/json", filter, ParameterType.RequestBody);

That got the filtering working. It helped solve an issue with lots of unwanted ChannelVarset and ChannelDialplan messages which were breaking the websocket connection. It was over a WAN, and changing timeout settings didn't help. Filtering the unwanted events did the trick.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants