FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Incorrect body in filtering events · Issue #208 · ari4java/ari4java · GitHub

Incorrect body in filtering events #208

Description

Hello.

The library wraps filtering body in "filter" key, but official docs say it should be without "filter"

This is ari4java code:

private AriRequest build() {
    AriRequest ariRequest =
        new AriRequest("/applications/" + encodeUrlPart(applicationName) + "/eventFilter", "PUT");
    ariRequest.setBodyField("filter", filter);
    ariRequest.addErrorResponse(HttpResponse.build(400, "Bad request."));
    ariRequest.addErrorResponse(HttpResponse.build(404, "Application does not exist."));
    return ariRequest;
  }

As I understand, asterisk REST API expects just (as described in https://www.asterisk.org/filtering-event-types-ari/):
{ “disallowed”: [ { “type”: “StasisStart” }, { “type”: “StasisEnd” } ] }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL