}
- switch_mutex_lock(profile->ireg_mutex);
+ switch_mutex_lock(profile->dbh_mutex);
sofia_glue_execute_sql_callback(profile, NULL, sql, notify_callback, profile);
- switch_mutex_unlock(profile->ireg_mutex);
+ switch_mutex_unlock(profile->dbh_mutex);
sofia_glue_release_profile(profile);
free(sql);
switch_assert(sqlp && *sqlp);
sql = *sqlp;
- switch_mutex_lock(profile->ireg_mutex);
+ switch_mutex_lock(profile->dbh_mutex);
switch_sql_queue_manager_push_confirm(profile->qm, sql, 0, !sql_already_dynamic);
- switch_mutex_unlock(profile->ireg_mutex);
+ switch_mutex_unlock(profile->dbh_mutex);
if (sql_already_dynamic) {
*sqlp = NULL;