Module: kamailio
Branch: master
Commit: 3cdcb8ae3783d7221d212df00769b495f88c740b
URL:
https://github.com/kamailio/kamailio/commit/3cdcb8ae3783d7221d212df00769b49…
Author: Lucian Balaceanu <lucian.balaceanu(a)1and1.ro>
Committer: Lucian Balaceanu <lucian.balaceanu(a)1and1.ro>
Date: 2017-04-13T15:02:37+03:00
p_usrloc: fix to update expires column when db_ops_ruid set
---
Modified: src/modules/p_usrloc/ucontact.c
---
Diff:
https://github.com/kamailio/kamailio/commit/3cdcb8ae3783d7221d212df00769b49…
Patch:
https://github.com/kamailio/kamailio/commit/3cdcb8ae3783d7221d212df00769b49…
---
diff --git a/src/modules/p_usrloc/ucontact.c b/src/modules/p_usrloc/ucontact.c
index 5bc5e09..75da91a 100644
--- a/src/modules/p_usrloc/ucontact.c
+++ b/src/modules/p_usrloc/ucontact.c
@@ -819,10 +819,10 @@ int db_update_ucontact_ruid(ucontact_t* _c)
vals2[n2].val.str_val = _c->c;
n2++;
- keys2[n2] = &callid_col;
- vals2[n2].type = DB1_STR;
+ keys2[n2] = &expires_col;
+ vals2[n2].type = DB1_DATETIME;
vals2[n2].nul = 0;
- vals2[n2].val.str_val = _c->callid;
+ vals2[n2].val.time_val = _c->expires;
n2++;
keys2[n2] = &q_col;