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

Author: Daniel-Constantin Mierla <mico...@gmail.com>
Committer: Daniel-Constantin Mierla <mico...@gmail.com>
Date: 2025-02-16T12:06:57+01:00

dialog: set keepalive local cseq value to 0

---

Modified: src/modules/dialog/dlg_req_within.c

---

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

---

diff --git a/src/modules/dialog/dlg_req_within.c 
b/src/modules/dialog/dlg_req_within.c
index 25dbae3a54c..62b6aea1a9c 100644
--- a/src/modules/dialog/dlg_req_within.c
+++ b/src/modules/dialog/dlg_req_within.c
@@ -787,7 +787,7 @@ int dlg_send_ka(dlg_cell_t *dlg, int dir)
        if(di->loc_seq.value > 1)
                di->loc_seq.value -= 2;
        else
-               di->loc_seq.value -= 1;
+               di->loc_seq.value = 0;
 
        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