]> git.ipfire.org Git - thirdparty/asterisk.git/commit
chan_websocket: Allow additional URI parameters to be added to the outgoing URI.
authorGeorge Joseph <gjoseph@sangoma.com>
Wed, 13 Aug 2025 19:22:38 +0000 (13:22 -0600)
committergithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Wed, 20 Aug 2025 15:33:44 +0000 (15:33 +0000)
commite33185dedbc4a6c4d34f77d8b123a6ffb1b8172f
tree49f9991f050b2666ff8ad42b33046718e547d8f8
parentc1065d344445037843957bff51b72fed77d0aca7
chan_websocket: Allow additional URI parameters to be added to the outgoing URI.

* Added a new option to the WebSocket dial string to capture the additional
  URI parameters.
* Added a new API ast_uri_verify_encoded() that verifies that a string
  either doesn't need URI encoding or that it has already been encoded.
* Added a new API ast_websocket_client_add_uri_params() to add the params
  to the client websocket session.
* Added XML documentation that will show up with `core show application Dial`
  that shows how to use it.

Resolves: #1352

UserNote: A new WebSocket channel driver option `v` has been added to the
Dial application that allows you to specify additional URI parameters on
outgoing connections. Run `core show application Dial` from the Asterisk CLI
to see how to use it.
channels/chan_websocket.c
include/asterisk/utils.h
include/asterisk/websocket_client.h
main/utils.c
res/res_websocket_client.c