[commit] r11003 - freeswitch/trunk/src/mod/applications/mod_limit
Author: mrene Date: Tue Dec 30 12:08:00 2008 New Revision: 11003 Log: MODAPP-188 Cleanup the limit_realm channel variable so we re-register the state handler if limit is called again 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 Tue Dec 30 12:08:00 2008 @@ -285,6 +285,8 @@ limit_execute_sql(sql, globals.mutex); switch_safe_free(sql); switch_core_event_hook_remove_state_change(session, db_state_handler); + /* Remove limit_realm variable so we register another hook if limit is called again */ + switch_channel_set_variable(channel, "limit_realm", ""); } return SWITCH_STATUS_SUCCESS; }
participants (1)
-
FreeSWITCH SVN