From: Anthony Minessale Date: Mon, 28 Jan 2013 22:41:29 +0000 (-0600) Subject: mutex around one-off sql stmts from sofia X-Git-Tag: v1.3.13~103 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4319bc8bd9ac6be1391d67282d1bf0ab1fbeb3d6;p=thirdparty%2Ffreeswitch.git mutex around one-off sql stmts from sofia --- diff --git a/src/mod/endpoints/mod_sofia/sofia_glue.c b/src/mod/endpoints/mod_sofia/sofia_glue.c index b47a0edbe2..859214237d 100644 --- a/src/mod/endpoints/mod_sofia/sofia_glue.c +++ b/src/mod/endpoints/mod_sofia/sofia_glue.c @@ -6389,7 +6389,9 @@ void sofia_glue_execute_sql_now(sofia_profile_t *profile, char **sqlp, switch_bo switch_assert(sqlp && *sqlp); sql = *sqlp; + switch_mutex_lock(profile->ireg_mutex); switch_sql_queue_manager_push_confirm(profile->qm, sql, 0, !sql_already_dynamic); + switch_mutex_unlock(profile->ireg_mutex); if (sql_already_dynamic) { *sqlp = NULL;