Module: kamailio
Branch: master
Commit: bec6357b7e656f80b35c127dd16b3f5e27bdcd21
URL: 
https://github.com/kamailio/kamailio/commit/bec6357b7e656f80b35c127dd16b3f5e27bdcd21

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date: 2017-04-19T09:31:19+02:00

xhttp: added section for event route in the docs

---

Modified: src/modules/xhttp/doc/xhttp_admin.xml

---

Diff:  
https://github.com/kamailio/kamailio/commit/bec6357b7e656f80b35c127dd16b3f5e27bdcd21.diff
Patch: 
https://github.com/kamailio/kamailio/commit/bec6357b7e656f80b35c127dd16b3f5e27bdcd21.patch

---

diff --git a/src/modules/xhttp/doc/xhttp_admin.xml 
b/src/modules/xhttp/doc/xhttp_admin.xml
index 90708ce..79043cd 100644
--- a/src/modules/xhttp/doc/xhttp_admin.xml
+++ b/src/modules/xhttp/doc/xhttp_admin.xml
@@ -207,5 +207,25 @@ event_route[xhttp:request] {
            </example>
        </section>
        </section>
+
+    <section>
+    <title>Event Routes</title>
+    <section id="xhttp.evr.request">
+        <title>
+        <function moreinfo="none">xhttp:request</function>
+        </title>
+        <para>
+                       The event route is executed when a new HTTP request is 
received.
+        </para>
+        <programlisting  format="linespecific">
+...
+event_route[xhttp:request] {
+    xhttp_reply("200", "OK", "text/html",
+        "&lt;html&gt;&lt;body&gt;OK - [$si:$sp]&lt;/body&gt;&lt;/html&gt;");
+}
+...
+        </programlisting>
+       </section>
+       </section>
 </chapter>
 


_______________________________________________
Kamailio (SER) - Development Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to