Change websocket path

How to change the websocket path from /ws to / in asterisk?

It is not configurable.

How to change it in code?

Having not done it, I don’t know.

In res/res_http_websocket.c, changed uri=“ws” to uri=“”

static struct ast_http_uri websocketuri = {
.callback = AST_OPTIONAL_API_NAME(ast_websocket_uri_cb),
.description = “Asterisk HTTP WebSocket”,
// .uri = “ws”,
.uri = “”,
.has_subtree = 0,
.data = NULL,
.key = FILE,
};

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