[sr-dev] git:master:bec6357b: xhttp: added section for event route in the docs

Daniel-Constantin Mierla miconda at gmail.com
Wed Apr 19 09:31:28 CEST 2017


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
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",
+        "<html><body>OK - [$si:$sp]</body></html>");
+}
+...
+        </programlisting>
+	</section>
+	</section>
 </chapter>
 




More information about the sr-dev mailing list