Ari - rest api

Want to connect an external BPM system to Asterisk and get channel/recording information.

http_custom.conf:

[general]
servername={redacted}
enabled=yes
bindaddr=127.0.0.1
bindport=8080
enable_status=yes

ari_general_custom.conf:

[general]
enabled = yes
pretty = yes
allowed_origins = *

ari_additional_custom.conf

[{redacted}]
type=user
password={redacted}
password_format=plain
read_only=yes

Output of “http show status”:
{redacted}*CLI>http show status

HTTP Server Status:
Prefix:
Server: Asterisk/13.38.1
Server Enabled and Bound to [::]:8088
HTTPS Server Enabled and Bound to [::]:8089

Enabled URI’s:
/httpstatus => Asterisk HTTP General Status
/ari/… => Asterisk RESTful API
/ws => Asterisk HTTP WebSocket

Enabled Redirects:
None.

Any reason it’s not binding to the port I’ve configured in http_custom.conf? Haven’t tried connecting yet but I’m worried now my user isn’t configured either.

just ran “ari show users” and my configured user is listed:

so weird. I don’t mind using 8088 i guess

Unless there’s a need not to, add/remove ARI users from the GUI, not via the conf file. IIRC you can also change the port under advanced settings.

1 Like

That’s what I’m missing. I guess FreePBX doesn’t really care one way or the other which port http ARI is available, but I can imagine it’s outright necessary FreePBX knows which one.

Thanks so much!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.