Module: sip-router
Branch: master
Commit: 0de5e17770cd5dcfcdd64174eb24f0bcaccef021
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=0de5e17…
Author: Peter Dunkley <peter.dunkley(a)crocodile-rcs.com>
Committer: Peter Dunkley <peter.dunkley(a)crocodile-rcs.com>
Date: Thu Jul 12 21:20:49 2012 +0100
modules_k/presence: Added missing use_table() call
---
modules_k/presence/notify.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/modules_k/presence/notify.c b/modules_k/presence/notify.c
index 73675e1..d6bea37 100644
--- a/modules_k/presence/notify.c
+++ b/modules_k/presence/notify.c
@@ -2777,6 +2777,14 @@ int process_dialogs(int round, int presence_winfo)
result_cols[updated_winfo_col = n_result_cols++] = &str_updated_winfo_col;
result_cols[expires_col = n_result_cols++] = &str_expires_col;
+ /* Need to redo this here as we might have switched to the
+ presentity table during a previous iteration. */
+ if (pa_dbf.use_table(pa_db, &active_watchers_table) < 0)
+ {
+ LM_ERR("use table failed\n");
+ goto error;
+ }
+
if (pa_dbf.start_transaction)
{
if (pa_dbf.start_transaction(pa_db) < 0)