From 170067e633ef32ea7b17adad46fdfe2c85fadda0 Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Sat, 12 Aug 2023 13:30:39 +0200 Subject: [PATCH] xhttp: note about available variables during http request processing --- src/modules/xhttp/doc/xhttp_admin.xml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/modules/xhttp/doc/xhttp_admin.xml b/src/modules/xhttp/doc/xhttp_admin.xml index f0e6d3fdeb8..1c7d29a051a 100644 --- a/src/modules/xhttp/doc/xhttp_admin.xml +++ b/src/modules/xhttp/doc/xhttp_admin.xml @@ -22,7 +22,7 @@ Via header. - The xmlrpc module uses the same concept. + The xmlrpc module uses the same concept. The xHTTP module offers a generic way of handling the HTTP protocol, by calling event_route[xhttp:request] in your config. You can check the HTTP URL via the config variable @@ -228,7 +228,10 @@ event_route[xhttp:request] { xhttp:request - The event route is executed when a new HTTP request is received. + The event route is executed when a new HTTP request is received. Most + of the variables related to a SIP request can be used inside this event + route to get HTTP request attributes (e.g., $si - source IP, $hdr(X) + - body of header X, $rm - request method, $rb - request body, ...). ...