I have two Asterisk systems, one v18 and one v20. Both are configured for ARI, but the v20 returns a
{
“message”: “Resource not found”
}
response for all API requests. The web socket (via wscat) always gets a 404. The only API endpoint that responds properly is /httpstatus.
The v18 system works fine and responds properly to API requests.
I am looking for a hint at what to look for. In both cases, we built Asterisk from source code. I looked at the configuration (compared to the working v18 system), searched the topics on this site, Googled, etc. and I can’t find anyone else that has posted about this type of issue. I would appreciate any hints on what to look at.
Here are the details on the v20 system:
The OS is:
[root@rhel8 etc]# cat /etc/system-release
Red Hat Enterprise Linux release 8.10 (Ootpa)
Asterisk is:
rhel8*CLI> core show version
Asterisk 20.9.2 built by root @ XXXXXXXXX.com on a x86_64 running Linux on 2024-08-20 00:52:08 UTC
Modules are loaded:
rhel8CLI> module show like ari
Module Description Use Count Status Support Level
res_ari.so Asterisk RESTful Interface 0 Running core
1 modules loaded
rhel8CLI> module show like stasis
Module Description Use Count Status Support Level
res_stasis.so Stasis application support 1 Running core
1 modules loaded
http is loaded:
rhel8*CLI> http show status
HTTP Server Status:
Prefix:
Server: Asterisk
Server Enabled and Bound to 0.0.0.0:8088
Enabled URI’s:
/httpstatus => Asterisk HTTP General Status <= returns the expected page showing bind address of 0.0.0.0 port 8088 /ari/... => Asterisk RESTful API <= /ari/asterisk/info returns { "message": "Resource not found" } /ws => Asterisk HTTP WebSocket <= wscat gets a 404
Enabled Redirects:
None.
ARI thinks it is running:
rhel8*CLI> ari show status
ARI Status:
Enabled: Yes
Output format: pretty
Auth realm: Asterisk REST Interface
Allowed Origins: *
User count: 1