Module: sip-router
Branch: master
Commit: 0220bad8ca1a22d212324102d489bb22d3076abd
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=0220bad…
Author: Peter Dunkley <peter.dunkley(a)crocodile-rcs.com>
Committer: Peter Dunkley <peter.dunkley(a)crocodile-rcs.com>
Date: Fri Apr 20 14:28:18 2012 +0100
modules_k/pua: Fixed bug in pua_update_contact() in DB only mode
- This was updating the contact column when it should have been
updating the remote_contact column.
---
modules_k/pua/pua_db.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules_k/pua/pua_db.c b/modules_k/pua/pua_db.c
index 2bc9e88..200e951 100644
--- a/modules_k/pua/pua_db.c
+++ b/modules_k/pua/pua_db.c
@@ -1407,7 +1407,7 @@ int update_contact_puadb(ua_pres_t *pres, str *contact)
n_query_cols++;
/* we overwrite contact even if not changed */
- db_cols[n_update_cols] = &str_contact_col; /* had remote here, think was a bug */
+ db_cols[n_update_cols] = &str_remote_contact_col;
db_vals[n_update_cols].type = DB1_STR;
db_vals[n_update_cols].nul = 0;
db_vals[n_update_cols].val.str_val.s = contact->s;
@@ -1566,4 +1566,4 @@ list_entry_t *get_subs_list_puadb(str *did)
&& (RES_ROWS(res)>0));
return list;
-}
\ No newline at end of file
+}