Module: kamailio
Branch: master
Commit: b5d4c20172bdcaf0e63b15b4e23d205125398a42
URL: 
https://github.com/kamailio/kamailio/commit/b5d4c20172bdcaf0e63b15b4e23d205125398a42

Author: Daniel-Constantin Mierla <mico...@gmail.com>
Committer: Daniel-Constantin Mierla <mico...@gmail.com>
Date: 2025-06-05T11:32:36+02:00

dialog: set cseq is_set for keepalive

---

Modified: src/modules/dialog/dlg_req_within.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/b5d4c20172bdcaf0e63b15b4e23d205125398a42.diff
Patch: 
https://github.com/kamailio/kamailio/commit/b5d4c20172bdcaf0e63b15b4e23d205125398a42.patch

---

diff --git a/src/modules/dialog/dlg_req_within.c 
b/src/modules/dialog/dlg_req_within.c
index 9ffd65e9526..6467b32b349 100644
--- a/src/modules/dialog/dlg_req_within.c
+++ b/src/modules/dialog/dlg_req_within.c
@@ -789,10 +789,12 @@ int dlg_send_ka(dlg_cell_t *dlg, int dir)
 
        /* tm increases cseq value, decrease it no to make it invalid
         * - dialog is ended on timeout (408) or C/L does not exist (481) */
-       if(di->loc_seq.value > 1)
+       if(di->loc_seq.value > 1) {
                di->loc_seq.value -= 2;
-       else
+       } else {
                di->loc_seq.value = 0;
+       }
+       di->loc_seq.is_set = 1;
 
        LM_DBG("sending OPTIONS to %s\n",
                        (dir == DLG_CALLER_LEG) ? "caller" : "callee");

_______________________________________________
Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to