]> 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)
committerAsterisk Development Team <asteriskteam@digium.com>
Wed, 10 Sep 2025 19:55:24 +0000 (19:55 +0000)
commit9b146df8eb58c5cc38f678ae8386364a8cc13128
treeae0d72f62a251dfb8caa074bacaaead136763700
parentd4909dc36cc2499a1bca6031fd1f290e5a190a56
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.

(cherry picked from commit d4d7f2e6e45e8655c98cb592cf70eb77fdc7539b)
channels/chan_websocket.c
include/asterisk/utils.h
include/asterisk/websocket_client.h
main/utils.c
res/res_websocket_client.c