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>
Module: kamailio
Branch: 5.5
Commit: b1953700ae03bde4c4b4d0c549d09c2f66e8ec09
URL: https://github.com/kamailio/kamailio/commit/b1953700ae03bde4c4b4d0c549d09c2…
Author: Dennis <dennis_y(a)mail.ru>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-07-17T11:16:23+02:00
auth_ephemeral: fix authentication with secrets added at runtime (#3390)
* auth_ephemeral: fix authentication with secrets added at runtime
- proper way to work with shm pointer to secret list
* fix: free secret_struct shm
Free shm secret_struct in case the allocation error of secret_list pointer.
(cherry picked from commit 6fa5a8fa8ddfe09bdab2fb445bee94e51d86b7fc)
(cherry picked from commit ca13a3382b9067a0dc14fc7ec995ec2d95c8c6cb)
---
Modified: src/modules/auth_ephemeral/auth_ephemeral_mod.c
Modified: src/modules/auth_ephemeral/auth_ephemeral_mod.h
Modified: src/modules/auth_ephemeral/authorize.c
---
Diff: https://github.com/kamailio/kamailio/commit/b1953700ae03bde4c4b4d0c549d09c2…
Patch: https://github.com/kamailio/kamailio/commit/b1953700ae03bde4c4b4d0c549d09c2…
Module: kamailio
Branch: 5.6
Commit: 5fc4cca395e057714376b681bbad4935a9570d0d
URL: https://github.com/kamailio/kamailio/commit/5fc4cca395e057714376b681bbad493…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-07-17T10:44:58+02:00
sst: fix condition on sst_min_se for sst_check_min()
(cherry picked from commit a059af04ac47fd31238ca4f22ad868529e035c43)
(cherry picked from commit febfc9722f83d992a3c1643fa373468b73cb3fa0)
---
Modified: src/modules/sst/sst_handlers.c
---
Diff: https://github.com/kamailio/kamailio/commit/5fc4cca395e057714376b681bbad493…
Patch: https://github.com/kamailio/kamailio/commit/5fc4cca395e057714376b681bbad493…
---
diff --git a/src/modules/sst/sst_handlers.c b/src/modules/sst/sst_handlers.c
index 55010baaee2..690c03ddfac 100644
--- a/src/modules/sst/sst_handlers.c
+++ b/src/modules/sst/sst_handlers.c
@@ -672,7 +672,7 @@ int ki_sst_check_min(struct sip_msg *msg, int flag)
* too small. We will take the smaller of the messages
* Session-expires and min-se if stated.
*/
- if (sst_min_se < MIN(minse, se.interval)) {
+ if(sst_min_se > MIN(minse, se.interval)) {
/*
* Too small. See if we need to send the 422 and are able
* to send it.
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>