docker-asterisk icon indicating copy to clipboard operation
docker-asterisk copied to clipboard

Asterisk 20.11.1 - Rest API

Open DavidRosseljong opened this issue 5 months ago • 4 comments

Hi there.

Since the update to 20.11.1 we are receiving an error from ari/rest-api.

ERROR[824]: res_ari.c:622 ast_ari_get_docs: Error determining real directory for rest-api

Do you have any information on this?

Cheers

DavidRosseljong avatar Jun 18 '25 11:06 DavidRosseljong

Hi @DavidRosseljong. res_ari is not configured by the code in this repo. We have noload => res_ari.so in modules.conf.

If you do not intend to use res_ari you can review the configuration to get rid of the error message.

If on the other and you depend on the functionality of res_ari I think it would be helpful for you to do some more debugging on your system.

mlan avatar Jun 18 '25 13:06 mlan

Hi, thanks for the quick reply.

We use ARI & AMI extensively in our projects. Hence we were quite surprised that it stopped working after upgrading a minimal x.x.1 version. I guess something changed with the folder structure or use of ari internally. Circling back to 1.1.11 for now. :)

DavidRosseljong avatar Jun 18 '25 16:06 DavidRosseljong

I use the Docker images provided by MLAN. The image from seven months ago "mlan/asterisk:xtra-1.1.11" had the REST API working. The new version seems to not create the folders under "var/lib/asterisk/rest-api." I noticed this because I have my config linked externally meaning the noload => res_ari.so in modules.conf was changed in my config files. The only thing that changed was the Docker image version. I tried to find what changed in the image, but I was unsuccessful.

rabie-khlifi avatar Jul 15 '25 06:07 rabie-khlifi

Has anyone figured out why ARI is not working in the latest version? If so, could you post the solution?

rabie-khlifi avatar Aug 27 '25 14:08 rabie-khlifi