Module: kamailio
Branch: 5.5
Commit: edfbecd0ed515dab637a03a793c6c2d565dfdaee
URL:
https://github.com/kamailio/kamailio/commit/edfbecd0ed515dab637a03a793c6c2d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-07-17T11:17:12+02:00
sst: fix condition on sst_min_se for sst_check_min()
(cherry picked from commit a059af04ac47fd31238ca4f22ad868529e035c43)
(cherry picked from commit febfc9722f83d992a3c1643fa373468b73cb3fa0)
(cherry picked from commit 5fc4cca395e057714376b681bbad4935a9570d0d)
---
Modified: src/modules/sst/sst_handlers.c
---
Diff:
https://github.com/kamailio/kamailio/commit/edfbecd0ed515dab637a03a793c6c2d…
Patch:
https://github.com/kamailio/kamailio/commit/edfbecd0ed515dab637a03a793c6c2d…
---
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.