[sr-dev] git:5.1:b60b639a: presence: update record_route in database

Luis Azedo luis at 2600hz.com
Sat Dec 9 12:39:02 CET 2017


Module: kamailio
Branch: 5.1
Commit: b60b639a31d26d02aabea22d55b40773a23d5a4b
URL: https://github.com/kamailio/kamailio/commit/b60b639a31d26d02aabea22d55b40773a23d5a4b

Author: lazedo <luis.azedo at factorlusitano.com>
Committer: Luis Azedo <luis at 2600hz.com>
Date: 2017-12-09T11:37:39Z

presence: update record_route in database
(cherry picked from commit e52547956462ad53032be95ff5f2701785dfdd2a)

---

Modified: src/modules/presence/subscribe.c

---

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

---

diff --git a/src/modules/presence/subscribe.c b/src/modules/presence/subscribe.c
index 3ba9cc4c15..36329ab198 100644
--- a/src/modules/presence/subscribe.c
+++ b/src/modules/presence/subscribe.c
@@ -427,6 +427,12 @@ int update_subs_db(subs_t* subs, int type)
 		update_vals[n_update_cols].val.str_val = subs->contact;
 		n_update_cols++;
 
+		update_keys[n_update_cols] = &str_record_route_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->record_route;
+		n_update_cols++;
+
 	}
 	if(type & LOCAL_TYPE)
 	{




More information about the sr-dev mailing list