diff --git a/kamailio/websockets-role.cfg b/kamailio/websockets-role.cfg index cfeac69c..9b67273b 100644 --- a/kamailio/websockets-role.cfg +++ b/kamailio/websockets-role.cfg @@ -226,7 +226,7 @@ route[WEBSOCKET_REQUEST] exit; } - route_if_exists("WS_ON_BEFORE_HANSHAKE"); + routes(WS_ON_BEFORE_HANDSHAKE); if (ws_handle_handshake()) { $var(count) = $shtinc(websockets=>$var(ws_orig_ip)::count); @@ -237,7 +237,7 @@ route[WEBSOCKET_REQUEST] } else { xlog("L_INFO", "opened websocket $ws_conid from $var(ws_orig_ip):$sp\n"); } - route_if_exists("WS_ON_SUCCESSFULL_HANSHAKE"); + routes(WS_ON_SUCCESSFULL_HANDSHAKE); exit; } @@ -259,5 +259,5 @@ event_route[websocket:closed] xlog("L_INFO", "closed websocket $ws_conid from $var(ws_orig_ip):$sp\n"); } if ($var(count) < 1) $sht(websockets=>$si::count) = $null; - route_if_exists("WS_ON_CLOSE"); + routes(WS_ON_CLOSE); }