diff --git a/res/res_http_websocket.c b/res/res_http_websocket.c index ca144b0d4f..e47bcd2310 100644 --- a/res/res_http_websocket.c +++ b/res/res_http_websocket.c @@ -1292,7 +1292,7 @@ static int load_module(void) static int unload_module(void) { - ast_websocket_remove_protocol("echo", websocket_echo_callback); + websocket_remove_protocol_internal("echo", websocket_echo_callback); ast_http_uri_unlink(&websocketuri); ao2_ref(websocketuri.data, -1); websocketuri.data = NULL;