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

Author: Daniel-Constantin Mierla <mico...@gmail.com>
Committer: Daniel-Constantin Mierla <mico...@gmail.com>
Date: 2025-06-06T10:15:02+02:00

dialog: use defined tockens for is_set field of local cseq structure for 
keepalives

---

Modified: src/modules/dialog/dlg_req_within.c

---

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

---

diff --git a/src/modules/dialog/dlg_req_within.c 
b/src/modules/dialog/dlg_req_within.c
index 52e492d2074..48494bef428 100644
--- a/src/modules/dialog/dlg_req_within.c
+++ b/src/modules/dialog/dlg_req_within.c
@@ -790,10 +790,11 @@ int dlg_send_ka(dlg_cell_t *dlg, int dir)
         * - dialog is ended on timeout (408) or C/L does not exist (481) */
        if(di->loc_seq.value > 1) {
                di->loc_seq.value -= 2;
+               di->loc_seq.is_set = DLG_SEQ_VALSET;
        } else {
                di->loc_seq.value = 0;
+               di->loc_seq.is_set = DLG_SEQ_VALNEW;
        }
-       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