[sr-dev] git:4.4:4febe26a: p_usrloc: fix to update expires column when db_ops_ruid set

Lucian Balaceanu lucian.balaceanu at 1and1.ro
Thu Apr 13 15:53:23 CEST 2017


Module: kamailio
Branch: 4.4
Commit: 4febe26a166390b47bf63775cdeea71bb9089781
URL: https://github.com/kamailio/kamailio/commit/4febe26a166390b47bf63775cdeea71bb9089781

Author: Lucian Balaceanu <lucian.balaceanu at 1and1.ro>
Committer: Lucian Balaceanu <lucian.balaceanu at 1and1.ro>
Date: 2017-04-13T16:52:50+03:00

p_usrloc: fix to update expires column when db_ops_ruid set

---

Modified: modules/p_usrloc/ucontact.c

---

Diff:  https://github.com/kamailio/kamailio/commit/4febe26a166390b47bf63775cdeea71bb9089781.diff
Patch: https://github.com/kamailio/kamailio/commit/4febe26a166390b47bf63775cdeea71bb9089781.patch

---

diff --git a/modules/p_usrloc/ucontact.c b/modules/p_usrloc/ucontact.c
index 72a5e65..ac7ba49 100644
--- a/modules/p_usrloc/ucontact.c
+++ b/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;




More information about the sr-dev mailing list