Module: kamailio
Branch: master
Commit: 35e279603f37aec4e8cba6a321726dfee958fc94
URL:
https://github.com/kamailio/kamailio/commit/35e279603f37aec4e8cba6a321726df…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-05-10T12:04:08+02:00
cplc: use time_t field for proper storage size
---
Modified: src/modules/cplc/cpl_run.h
Modified: src/modules/cplc/cpl_switches.h
---
Diff:
https://github.com/kamailio/kamailio/commit/35e279603f37aec4e8cba6a321726df…
Patch:
https://github.com/kamailio/kamailio/commit/35e279603f37aec4e8cba6a321726df…
---
diff --git a/src/modules/cplc/cpl_run.h b/src/modules/cplc/cpl_run.h
index 6ec52beb708..f11db2a6a90 100644
--- a/src/modules/cplc/cpl_run.h
+++ b/src/modules/cplc/cpl_run.h
@@ -55,7 +55,7 @@ struct cpl_interpreter {
str user; /* user */
str script; /* CPL script */
char *ip; /* instruction pointer */
- int recv_time; /* receiving time stamp */
+ time_t recv_time; /* receiving time stamp */
struct sip_msg *msg;
struct location *loc_set; /* location set */
/* pointers to the string-headers needed for switches; can point directly
diff --git a/src/modules/cplc/cpl_switches.h b/src/modules/cplc/cpl_switches.h
index e2d15bfbb36..19d26f7048c 100644
--- a/src/modules/cplc/cpl_switches.h
+++ b/src/modules/cplc/cpl_switches.h
@@ -689,8 +689,8 @@ static inline char *run_time_switch( struct cpl_interpreter *intr )
memset(&att, 0, sizeof(cpl_ac_tm_t));
memset(&trt, 0, sizeof(cpl_tmrec_t));
- LM_DBG("checking recv. time stamp <%d>\n",
- intr->recv_time);
+ LM_DBG("checking recv. time stamp <%llu>\n",
+ (unsigned long long)intr->recv_time);
switch (NR_OF_ATTR(intr->ip)) {
case 1:
p = ATTR_PTR(intr->ip);