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

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date: 2026-06-24T09:35:33+02:00

dialog: use internal wrapper to get int time values

---

Modified: src/modules/dialog/dlg_handlers.c
Modified: src/modules/dialog/dlg_hash.c

---

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

---

diff --git a/src/modules/dialog/dlg_handlers.c 
b/src/modules/dialog/dlg_handlers.c
index f1be8fa52fe..f4edafe230e 100644
--- a/src/modules/dialog/dlg_handlers.c
+++ b/src/modules/dialog/dlg_handlers.c
@@ -761,7 +761,8 @@ static void dlg_on_send(struct cell *t, int type, struct 
tmcb_params *param)
        if(dlg == NULL)
                return;
 
-       dlg->last_modified = (unsigned int)time(NULL);
+       dlg->last_modified = ksr_time_uint(NULL, NULL);
+       ;
 
        /* sync over dmq */
        if(dlg_enable_dmq) {
diff --git a/src/modules/dialog/dlg_hash.c b/src/modules/dialog/dlg_hash.c
index b0d78f5e9c2..4036169b52a 100644
--- a/src/modules/dialog/dlg_hash.c
+++ b/src/modules/dialog/dlg_hash.c
@@ -1329,7 +1329,7 @@ void next_state_dlg(
        }
        *new_state = dlg->state;
 
-       dlg->last_modified = (unsigned int)time(NULL);
+       dlg->last_modified = ksr_time_uint(NULL, NULL);
 
        /* remove the dialog from profiles when is not no longer active */
        if(*new_state == DLG_STATE_DELETED && dlg->profile_links != NULL

_______________________________________________
Kamailio - Development Mailing List -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to