Module: kamailio
Branch: 5.6
Commit: 2f86215a704ff10a58cb3f5e57497918c381a048
URL:
https://github.com/kamailio/kamailio/commit/2f86215a704ff10a58cb3f5e5749791…
Author: Ovidiu Sas <osas(a)voipembedded.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-07-17T10:38:18+02:00
tm: enhance documentation for on_sl_reply param
(cherry picked from commit a4970749b2be40cd598d4ce5cf2eaa6b38fc2307)
---
Modified: src/modules/tm/doc/params.xml
---
Diff:
https://github.com/kamailio/kamailio/commit/2f86215a704ff10a58cb3f5e5749791…
Patch:
https://github.com/kamailio/kamailio/commit/2f86215a704ff10a58cb3f5e5749791…
---
diff --git a/src/modules/tm/doc/params.xml b/src/modules/tm/doc/params.xml
index 3f67ae3f4d9..8c01ab78d0c 100644
--- a/src/modules/tm/doc/params.xml
+++ b/src/modules/tm/doc/params.xml
@@ -715,7 +715,7 @@ modparam("tm", "reparse_on_dns_failover", 0)
</para>
<para>
If KEMI is used, the parameter has to be the KEMI function name, which
- receives a string parameter with the event name.
+ receives a string parameter with the event name, respectively "on_sl_reply".
</para>
<example>
<title>Set <varname>on_sl_reply</varname> parameter</title>
@@ -727,6 +727,20 @@ modparam("tm", "on_sl_reply",
"stateless_replies")
onreply_route["stateless_replies"] {
# do not allow stateless replies to be forwarded
return 0;
+}
+ </programlisting>
+ </example>
+ <example>
+ <title>Set <varname>on_sl_reply</varname> parameter (KEMI
javascript)</title>
+ <programlisting>
+...
+modparam("tm", "on_sl_reply", "ksr_slreply")
+...
+-- event callback function implemented in javascript
+function ksr_slreply(evname) {
+ # the evname is set to "on_sl_reply"
+ # do not allow stateless replies to be forwarded
+ KSR.x.drop();
}
</programlisting>
</example>