From attiolli@gmail.com Thu Jun 13 08:12:49 2019 From: Olli Attila To: sr-users@lists.kamailio.org Subject: [SR-Users] Authenticating xhttp request Date: Thu, 13 Jun 2019 09:12:30 +0300 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1985297777==" --===============1985297777== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Hello, I have this xhttp event_route on Kamailio that I am using to signal the proxy to reload dialplans and htable when necessary: event_route[xhttp:request] { if(src_ip!=127.0.0.1) { xhttp_reply("403", "Forbidden", "text/html", "Not allowed from $si"); exit; } if ($hu =~ "^/RPC") { jsonrpc_dispatch(); } else { xhttp_reply("200", "OK", "text/html", "Wrong URL $hu"); } return; } Now instead of returning 403 forbidden for requests coming from other src_ip than proxy itsef, I would like to authenticate the http request via proxy database. How can this be done if possible? Cheers, Olli --===============1985297777==--