diff --git a/src/modules/websocket/ws_conn.c b/src/modules/websocket/ws_conn.c index ad3d216a83c..3fd9207dcf5 100644 --- a/src/modules/websocket/ws_conn.c +++ b/src/modules/websocket/ws_conn.c @@ -279,7 +279,7 @@ static void wsconn_run_route(ws_connection_t *wsc) LM_DBG("wsconn_run_route event_route[websocket:closed]\n"); - rt = route_get(&event_rt, "websocket:closed"); + rt = route_lookup(&event_rt, "websocket:closed"); if (rt < 0 || event_rt.rlist[rt] == NULL) { LM_DBG("route does not exist"); @@ -291,7 +291,7 @@ static void wsconn_run_route(ws_connection_t *wsc) LM_ERR("faked_msg_init() failed\n"); return; } - + fmsg = faked_msg_next(); wsc->rcv.proto_reserved1 = wsc->id; fmsg->rcv = wsc->rcv;