From 65085c3037269e03a3415ff1780749be470ede22 Mon Sep 17 00:00:00 2001 From: lazedo Date: Wed, 27 Feb 2019 18:24:27 +0000 Subject: [PATCH] websocker origin_ip --- kamailio/websockets-role.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kamailio/websockets-role.cfg b/kamailio/websockets-role.cfg index c31d4a0..074f60f 100644 --- a/kamailio/websockets-role.cfg +++ b/kamailio/websockets-role.cfg @@ -108,10 +108,10 @@ event_route[xhttp:request] if (ws_handle_handshake()) { $var(count) = $shtinc(websockets=>$var(ws_orig_ip)::count); + $sht(websockets=>$ws_conid::ws_orig_ip) = $var(ws_orig_ip); if($si != $var(ws_orig_ip)) { $var(proxy_count) = $shtinc(websockets=>$si::count); xlog("L_INFO", "websocket|log|opened proxied websocket $ws_conid from $si for $var(ws_orig_ip):$sp\n"); - $sht(websockets=>$ws_conid::ws_orig_ip) = $var(ws_orig_ip); } else { xlog("L_INFO", "websocket|log|opened websocket $ws_conid from $var(ws_orig_ip):$sp\n"); }