Module: kamailio
Branch: master
Commit: a4970749b2be40cd598d4ce5cf2eaa6b38fc2307
URL:
https://github.com/kamailio/kamailio/commit/a4970749b2be40cd598d4ce5cf2eaa6…
Author: Ovidiu Sas <osas(a)voipembedded.com>
Committer: Ovidiu Sas <osas(a)voipembedded.com>
Date: 2023-04-08T01:48:11-04:00
tm: enhance documentation for on_sl_reply param
---
Modified: src/modules/tm/doc/params.xml
---
Diff:
https://github.com/kamailio/kamailio/commit/a4970749b2be40cd598d4ce5cf2eaa6…
Patch:
https://github.com/kamailio/kamailio/commit/a4970749b2be40cd598d4ce5cf2eaa6…
---
diff --git a/src/modules/tm/doc/params.xml b/src/modules/tm/doc/params.xml
index e19d709e5a8..5b65dcabebe 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>