]> 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>
Mon, 2 Jun 2025 16:35:28 +0000 (16:35 +0000)
commit65199303b9dc7610648b97f155401bffd64c76f6
treed60aac69ab380fdc97ba3c9ed61424bf363010b0
parent831c961a6385399ce98ef12b67444648d13bc145
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
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