Module: kamailio
Branch: 5.5
Commit: 2555e1b1a02af8d96504c43953ab395097c86adb
URL:
https://github.com/kamailio/kamailio/commit/2555e1b1a02af8d96504c43953ab395…
Author: Ovidiu Sas <osas(a)voipembedded.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-07-17T11:16:44+02:00
tm: enhance documentation for on_sl_reply param
(cherry picked from commit a4970749b2be40cd598d4ce5cf2eaa6b38fc2307)
(cherry picked from commit 2f86215a704ff10a58cb3f5e57497918c381a048)
---
Modified: src/modules/tm/doc/params.xml
---
Diff:
https://github.com/kamailio/kamailio/commit/2555e1b1a02af8d96504c43953ab395…
Patch:
https://github.com/kamailio/kamailio/commit/2555e1b1a02af8d96504c43953ab395…
---
diff --git a/src/modules/tm/doc/params.xml b/src/modules/tm/doc/params.xml
index 247d6ad5e6d..d8f8251818d 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>