From 4febe26a166390b47bf63775cdeea71bb9089781 Mon Sep 17 00:00:00 2001 From: Lucian Balaceanu Date: Thu, 13 Apr 2017 16:52:50 +0300 Subject: [PATCH] p_usrloc: fix to update expires column when db_ops_ruid set --- modules/p_usrloc/ucontact.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/p_usrloc/ucontact.c b/modules/p_usrloc/ucontact.c index 72a5e651fbe..ac7ba49f9b4 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;