[sr-dev] git:5.1:36ec5c4d: presence: update contact in update_subs_db

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[sr-dev] git:5.1:36ec5c4d: presence: update contact in update_subs_db

Luis Azedo
Module: kamailio
Branch: 5.1
Commit: 36ec5c4dd9f66a93bc18c7a1ee428bd6f1e0064c
URL: https://github.com/kamailio/kamailio/commit/36ec5c4dd9f66a93bc18c7a1ee428bd6f1e0064c

Author: lazedo <[hidden email]>
Committer: Luis Azedo <[hidden email]>
Date: 2017-11-29T11:11:35Z

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/36ec5c4dd9f66a93bc18c7a1ee428bd6f1e0064c.diff
Patch: https://github.com/kamailio/kamailio/commit/36ec5c4dd9f66a93bc18c7a1ee428bd6f1e0064c.patch

---

diff --git a/src/modules/presence/subscribe.c b/src/modules/presence/subscribe.c
index ee90bf7c85..f199f95c58 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)
  {


_______________________________________________
Kamailio (SER) - Development Mailing List
[hidden email]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev