Skip to content

Incorrect body in filtering events #208

Description

@KardonskyRoman

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” } ] }

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