[sr-dev] git:lazedo/4.2:bff4e99d: usrloc: fixed issue updating last_modified

Victor Seva linuxmaniac at torreviejawireless.org
Wed Jan 7 00:05:39 CET 2015


Module: kamailio
Branch: lazedo/4.2
Commit: bff4e99d81353dbf02e0a6f609f762237ff589fd
URL: https://github.com/kamailio/kamailio/commit/bff4e99d81353dbf02e0a6f609f762237ff589fd

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Victor Seva <linuxmaniac at torreviejawireless.org>
Date: 2015-01-06T22:34:29+01:00

usrloc: fixed issue updating last_modified

- introduced in previos commit

(cherry picked from commit 767c2bc60f7f5a601118329df2c16b2646dbb58f)

---

Modified: modules/usrloc/ucontact.c

---

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

---

diff --git a/modules/usrloc/ucontact.c b/modules/usrloc/ucontact.c
index b0cbb28..cc1c2e5 100644
--- a/modules/usrloc/ucontact.c
+++ b/modules/usrloc/ucontact.c
@@ -827,7 +827,7 @@ int db_update_ucontact_addr(ucontact_t* _c)
 
 	keys2[nr_cols2] = &last_mod_col;
 	vals2[nr_cols2].nul = 0;
-	vals2[nr_cols2].val = _c->last_modified;
+	UL_DB_EXPIRES_SET(&vals2[nr_cols2], _c->last_modified);
 	nr_cols2++;
 
 	keys2[nr_cols2] = &ruid_col;




More information about the sr-dev mailing list