[sr-dev] git:master:c38b3585: tm: docs for t_exists()
Daniel-Constantin Mierla
miconda at gmail.com
Tue Aug 30 12:55:17 CEST 2022
Module: kamailio
Branch: master
Commit: c38b3585357a2200944cfd8e736f32093786350b
URL: https://github.com/kamailio/kamailio/commit/c38b3585357a2200944cfd8e736f32093786350b
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2022-08-30T12:54:51+02:00
tm: docs for t_exists()
---
Modified: src/modules/tm/doc/functions.xml
---
Diff: https://github.com/kamailio/kamailio/commit/c38b3585357a2200944cfd8e736f32093786350b.diff
Patch: https://github.com/kamailio/kamailio/commit/c38b3585357a2200944cfd8e736f32093786350b.patch
---
diff --git a/src/modules/tm/doc/functions.xml b/src/modules/tm/doc/functions.xml
index f9c9837fb23..db070a246d1 100644
--- a/src/modules/tm/doc/functions.xml
+++ b/src/modules/tm/doc/functions.xml
@@ -1907,4 +1907,27 @@ t_clean();
</programlisting>
</example>
</section>
+
+ <section id="tm.f.t_exists">
+ <title>
+ <function>t_exists()</function>
+ </title>
+ <para>
+ Return true of the transaction for current message exists, without
+ setting the global references.
+ </para>
+ <example>
+ <title><function>t_exists</function> usage</title>
+ <programlisting>
+...
+reply_route {
+ if (!t_exists()) {
+ drop();
+ }
+}
+...
+ </programlisting>
+ </example>
+ </section>
+
</section>
More information about the sr-dev
mailing list