From: Rupa Schomaker Date: Mon, 19 Jul 2010 15:13:48 +0000 (-0500) Subject: FSCORE-632 - limit not decrementing properly X-Git-Tag: v1.2-rc1~541^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f10eebf86f2e4f2f3eb4e79c304775d3d8446cc5;p=thirdparty%2Ffreeswitch.git FSCORE-632 - limit not decrementing properly --- diff --git a/src/switch_limit.c b/src/switch_limit.c old mode 100755 new mode 100644 index 810d83b105..f76e1de1c0 --- a/src/switch_limit.c +++ b/src/switch_limit.c @@ -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); }