Skip to main content

Asterisk REST Interface (ARI)

The basic flow of an HTTP request is

  • ast_ari_callback()
    1. Initial request validation
    2. Routes as either a doc request (ast_ari_get_docs) or API request (ast_ari_invoke)
    • ast_ari_invoke()
      1. Further request validation
      2. Routes the request through the tree of generated \ref stasis_rest_handlers.
      3. Dispatch to the generated callback
        • \c astari*_cb
          1. Populate \c *_args struct with path and get params
          2. Invoke the request handler
    1. Validates and sends response