Module: kamailio Branch: master Commit: 170067e633ef32ea7b17adad46fdfe2c85fadda0 URL: https://github.com/kamailio/kamailio/commit/170067e633ef32ea7b17adad46fdfe2c...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2023-08-12T13:31:15+02:00
xhttp: note about available variables during http request processing
---
Modified: src/modules/xhttp/doc/xhttp_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/170067e633ef32ea7b17adad46fdfe2c... Patch: https://github.com/kamailio/kamailio/commit/170067e633ef32ea7b17adad46fdfe2c...
---
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. </para> <para> - The <module>xmlrpc</module> module uses the same concept. + The xmlrpc module uses the same concept. The xHTTP module offers a generic way of handling the <acronym>HTTP</acronym> protocol, by calling <emphasis>event_route[xhttp:request]</emphasis> in your config. You can check the HTTP URL via the config variable @@ -228,7 +228,10 @@ event_route[xhttp:request] { <function moreinfo="none">xhttp:request</function> </title> <para> - 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, ...). </para> <programlisting format="linespecific"> ...