]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FSCORE-632 - limit not decrementing properly
authorRupa Schomaker <rupa@rupa.com>
Mon, 19 Jul 2010 15:13:48 +0000 (10:13 -0500)
committerRupa Schomaker <rupa@rupa.com>
Mon, 19 Jul 2010 15:16:15 +0000 (10:16 -0500)
src/switch_limit.c [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index 810d83b..f76e1de
@@ -98,8 +98,8 @@ static switch_status_t limit_state_handler(switch_core_session_t *session)
                        switch_limit_release(argv[x], session, NULL, NULL);
                }
                switch_core_event_hook_remove_state_change(session, limit_state_handler);
-               /* Remove limit_realm variable so we register another hook if limit is called again */
-               switch_channel_set_variable(channel, "limit_realm", NULL);
+               /* Remove limit_backend variable so we register another hook if limit is called again */
+               switch_channel_set_variable(channel, LIMIT_BACKEND_VARIABLE, NULL);
                
                free(mydata);
        }