Skip to content

No errors when read only #81

@RickLugtigheid

Description

@RickLugtigheid

I recently re-installed Asterisk so I had to create a new ari user.

When trying to use this package to create a call it got stuck when creating a bridge and no error was thrown.

I later found wat was wrong, I forgot to set the read_only variable in my ari user to no.
I found this when testing ari with curl:

>curl -v -u username:password -X POST http://192.168.2.22:8088/ari/bridges
*   Trying 192.168.2.22...
* TCP_NODELAY set
* Connected to 192.168.2.22 (192.168.2.22) port 8088 (#0)
* Server auth using Basic with user 'username'
> POST /ari/bridges HTTP/1.1
> Host: 192.168.2.22:8088
> Authorization: Basic YXJpX2Nvbm5lY3Rvcjp0ZXN0bWU=
> User-Agent: curl/7.55.1
> Accept: */*
>
< HTTP/1.1 403 Forbidden
< Server: Asterisk/16.6.1
< Date: Mon, 29 Mar 2021 08:48:13 GMT
< Cache-Control: no-cache, no-store
< Content-type: application/json
< Content-Length: 38
<
{
  "message": "Write access denied"
}* Connection #0 to host 192.168.2.22 left intact

Could this package maybe throw an error when you are in read_oly mode and you are trying to update/create?
Thank you in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions