Module: sip-router
Branch: 3.3
Commit: ac24a183397924a7dab209c6f205b955936d4379
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=ac24a18…
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
(cherry picked from commit 0de5e17770cd5dcfcdd64174eb24f0bcaccef021)
---
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)