Module: kamailio
Branch: 5.0
Commit: 85b92f51b173bd76d288feeb69d576964ef1e9d4
URL:
https://github.com/kamailio/kamailio/commit/85b92f51b173bd76d288feeb69d5769…
Author: lazedo <luis.azedo(a)factorlusitano.com>
Committer: Luis Azedo <luis(a)2600hz.com>
Date: 2017-11-29T11:10:10Z
presence: update contact in update_subs_db
(cherry picked from commit 49272f23b22445415721766709bf5841865e8609)
---
Modified: src/modules/presence/subscribe.c
---
Diff:
https://github.com/kamailio/kamailio/commit/85b92f51b173bd76d288feeb69d5769…
Patch:
https://github.com/kamailio/kamailio/commit/85b92f51b173bd76d288feeb69d5769…
---
diff --git a/src/modules/presence/subscribe.c b/src/modules/presence/subscribe.c
index 000b87d165..2ac98dc252 100644
--- a/src/modules/presence/subscribe.c
+++ b/src/modules/presence/subscribe.c
@@ -420,6 +420,13 @@ int update_subs_db(subs_t* subs, int type)
update_vals[n_update_cols].nul = 0;
update_vals[n_update_cols].val.int_val = subs->updated_winfo;
n_update_cols++;
+
+ update_keys[n_update_cols] = &str_contact_col;
+ update_vals[n_update_cols].type = DB1_STR;
+ update_vals[n_update_cols].nul = 0;
+ update_vals[n_update_cols].val.str_val = subs->contact;
+ n_update_cols++;
+
}
if(type & LOCAL_TYPE)
{