[commit] r10382 - freeswitch/trunk/src/mod/applications/mod_limit
Author: anthm Date: Thu Nov 13 15:41:44 2008 New Revision: 10382 Log: shorten sql stmt Modified: freeswitch/trunk/src/mod/applications/mod_limit/mod_limit.c Modified: freeswitch/trunk/src/mod/applications/mod_limit/mod_limit.c ============================================================================== --- freeswitch/trunk/src/mod/applications/mod_limit/mod_limit.c (original) +++ freeswitch/trunk/src/mod/applications/mod_limit/mod_limit.c Thu Nov 13 15:41:44 2008 @@ -258,8 +258,8 @@ if (state == CS_HANGUP || state == CS_ROUTING) { id = switch_channel_get_variable(channel, "limit_id"); realm = switch_channel_get_variable(channel, "limit_realm"); - sql = switch_mprintf("delete from limit_data where uuid='%q' and hostname='%q' and realm='%q'and id='%q';", - switch_core_session_get_uuid(session), globals.hostname, realm, id); + sql = switch_mprintf("delete from limit_data where uuid='%q'", + switch_core_session_get_uuid(session)); limit_execute_sql(sql, globals.mutex); switch_safe_free(sql); switch_core_event_hook_remove_state_change(session, hanguphook);
participants (1)
-
FreeSWITCH SVN