]> git.ipfire.org Git - thirdparty/asterisk.git/commit
ARI Outbound Websockets
authorGeorge Joseph <gjoseph@sangoma.com>
Fri, 28 Mar 2025 12:54:21 +0000 (06:54 -0600)
committerGeorge Joseph <gjoseph@sangoma.com>
Thu, 26 Jun 2025 18:10:20 +0000 (12:10 -0600)
commitf73ef7ffa6851c282714d4cdbced3e3c27cd72cc
tree9d5dd70f696a91193b7dfc69c809b57d26113626
parent19873ba14fd5b84b231b81b0afc634513577d905
ARI Outbound Websockets

Asterisk can now establish websocket sessions _to_ your ARI applications
as well as accepting websocket sessions _from_ them.
Full details: http://s.asterisk.net/ari-outbound-ws

Code change summary:
* Added an ast_vector_string_join() function,
* Added ApplicationRegistered and ApplicationUnregistered ARI events.
* Converted res/ari/config.c to use sorcery to process ari.conf.
* Added the "outbound-websocket" ARI config object.
* Refactored res/ari/ari_websockets.c to handle outbound websockets.
* Refactored res/ari/cli.c for the sorcery changeover.
* Updated res/res_stasis.c for the sorcery changeover.
* Updated apps/app_stasis.c to allow initiating per-call outbound websockets.
* Added CLI commands to manage ARI websockets.
* Added the new "outbound-websocket" object to ari.conf.sample.
* Moved the ARI XML documentation out of res_ari.c into res/ari/ari_doc.xml

UserNote: Asterisk can now establish websocket sessions _to_ your ARI applications
as well as accepting websocket sessions _from_ them.
Full details: http://s.asterisk.net/ari-outbound-ws

(cherry picked from commit 65199303b9dc7610648b97f155401bffd64c76f6)
15 files changed:
apps/app_stasis.c
configs/samples/ari.conf.sample
include/asterisk/ari.h
include/asterisk/vector.h
main/strings.c
res/ari/ari_doc.xml [new file with mode: 0644]
res/ari/ari_model_validators.c
res/ari/ari_model_validators.h
res/ari/ari_websockets.c
res/ari/ari_websockets.h
res/ari/cli.c
res/ari/config.c
res/ari/internal.h
res/res_ari.c
rest-api/api-docs/events.json