[sr-dev] git:master: modules_k/presence Fixed last commit - use_table before delete
Peter Dunkley
peter.dunkley at crocodile-rcs.com
Fri Mar 16 14:08:26 CET 2012
Hi,
This fix works on my system. The latest presence code will be used in our upcoming performance and soak tests.
Thanks,
Peter
On 16 Mar 2012, at 11:54, Anca Vamanu <anca.vamanu at 1and1.ro> wrote:
> Module: sip-router
> Branch: master
> Commit: 78e7405eb227f684e156466b55335f401d17a139
> URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=78e7405eb227f684e156466b55335f401d17a139
>
> Author: Anca Vamanu <anca.vamanu at 1and1.ro>
> Committer: Anca Vamanu <anca.vamanu at 1and1.ro>
> Date: Fri Mar 16 13:52:49 2012 +0200
>
> modules_k/presence Fixed last commit - use_table before delete
>
> Reported by Peter Dunkley
>
> ---
>
> modules_k/presence/presentity.c | 6 ++++++
> 1 files changed, 6 insertions(+), 0 deletions(-)
>
> diff --git a/modules_k/presence/presentity.c b/modules_k/presence/presentity.c
> index bb69df6..368afc5 100644
> --- a/modules_k/presence/presentity.c
> +++ b/modules_k/presence/presentity.c
> @@ -503,6 +503,12 @@ after_dialog_check:
> goto error;
> }
>
> + if (pa_dbf.use_table(pa_db, &presentity_table) < 0)
> + {
> + LM_ERR("unsuccessful use table sql operation\n");
> + goto error;
> + }
> +
> LM_DBG("expires =0 -> deleting from database\n");
> if(pa_dbf.delete(pa_db,query_cols,0,query_vals,n_query_cols)<0)
> {
>
>
> _______________________________________________
> sr-dev mailing list
> sr-dev at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
More information about the sr-dev
mailing list