Skip to end of metadata
Go to start of metadata

Applications

Method

Path<br>h5. Parameters are case-sensitive

Return Model

Summary

GET

/applications

List[Application]

List all applications.

GET

/applications/{applicationName}

Application

Get details of an application.

POST

/applications/{applicationName}/subscription

Application

Subscribe an application to a event source.

DELETE

/applications/{applicationName}/subscription

Application

Unsubscribe an application from an event source.

list: GET /applications

List all applications.

get: GET /applications/{applicationName}

Get details of an application.

Path parameters

Parameters are case-sensitive.

  • applicationName: string - Application's name

Error Responses

  • 404 - Application does not exist.

subscribe: POST /applications/{applicationName}/subscription

Subscribe an application to a event source. Returns the state of the application after the subscriptions have changed

Path parameters

Parameters are case-sensitive.

  • applicationName: string - Application's name

Query parameters

  • eventSource: string - (required) URI for event source (channel:{channelId}, bridge:{bridgeId}, endpoint:{tech}[/{resource}], deviceState:{deviceName}
    • Allows comma separated values.

Error Responses

  • 400 - Missing parameter.
  • 404 - Application does not exist.
  • 422 - Event source does not exist.

unsubscribe: DELETE /applications/{applicationName}/subscription

Unsubscribe an application from an event source. Returns the state of the application after the subscriptions have changed

Path parameters

Parameters are case-sensitive.

  • applicationName: string - Application's name

Query parameters

  • eventSource: string - (required) URI for event source (channel:{channelId}, bridge:{bridgeId}, endpoint:{tech}[/{resource}], deviceState:{deviceName}
    • Allows comma separated values.

Error Responses

  • 400 - Missing parameter; event source scheme not recognized.
  • 404 - Application does not exist.
  • 409 - Application not subscribed to event source.
  • 422 - Event source does not exist.
  • No labels

2 Comments

  1. The following allows subscribing to all channels.  But when trying to do a DELETE I get the dreaded "Method not implemented".  Is there a chance this could get in some future release?

    POST https://localhost:8088/ari/applications/foo/subscription?eventSource=channel:
    1. You have to unsubscribe the subscriptions as named in

      When I subscribe my app channel: in Asterisk 13.6.0, it lists the subscription as channel:__AST_CHANNEL_ALL_TOPIC. With this name, I was able to unsubscribe my app: