sql=switch_mprintf("delete from registrations where reg_user='%q' and realm='%q' and hostname='%q' and token='%q'",user,realm,switch_core_get_hostname(),token);
}else{
sql=switch_mprintf("delete from registrations where reg_user='%q' and realm='%q' and hostname='%q'",user,realm,switch_core_get_hostname());
}
switch_cache_db_execute_sql(dbh,sql,NULL);
switch_cache_db_release_db_handle(&dbh);
free(sql);
switch_queue_push(sql_manager.sql_queue[0],sql);
returnSWITCH_STATUS_SUCCESS;
}
...
...
@@ -1718,7 +1700,6 @@ SWITCH_DECLARE(switch_status_t) switch_core_del_registration(const char *user, c