Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No errors when read only #81

Open
RickLugtigheid opened this issue Mar 29, 2021 · 0 comments
Open

No errors when read only #81

RickLugtigheid opened this issue Mar 29, 2021 · 0 comments

Comments

@RickLugtigheid
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant