Module: kamailio
Branch: master
Commit: af0cc3c6a961de85c98e68df72d3b26b35e89ffc
URL:
https://github.com/kamailio/kamailio/commit/af0cc3c6a961de85c98e68df72d3b26…
Author: Stefan Mititelu <stefan.mititelu(a)1and1.ro>
Committer: Stefan Mititelu <stefan.mititelu(a)1and1.ro>
Date: 2016-02-08T11:07:17+02:00
tmx: Update doku
Update doku for t_is_request_route() config function.
---
Modified: modules/tmx/doc/tmx_admin.xml
---
Diff:
https://github.com/kamailio/kamailio/commit/af0cc3c6a961de85c98e68df72d3b26…
Patch:
https://github.com/kamailio/kamailio/commit/af0cc3c6a961de85c98e68df72d3b26…
---
diff --git a/modules/tmx/doc/tmx_admin.xml b/modules/tmx/doc/tmx_admin.xml
index 8c2dcfe..b3a756e 100644
--- a/modules/tmx/doc/tmx_admin.xml
+++ b/modules/tmx/doc/tmx_admin.xml
@@ -301,6 +301,31 @@ route[abc] {
</programlisting>
</example>
</section>
+ <section id="tmx.f.t_is_request_route">
+ <title>
+ <function moreinfo="none">t_is_request_route()</function>
+ </title>
+ <para>
+ Returns true if the top-executed route block is request_route.
+ </para>
+ <para>
+ This function can be used from ANY_ROUTE .
+ </para>
+ <example>
+ <title><function>t_is_request_route</function> usage</title>
+ <programlisting format="linespecific">
+...
+request_route[xyz] {
+ route(abc);
+}
+
+route[abc] {
+ if(t_is_request_route()) { ... }
+}
+...
+</programlisting>
+ </example>
+ </section>
<section id="tmx.f.t_suspend">
<title>
<function moreinfo="none">t_suspend()</function>