[commit] r11706 - freeswitch/trunk/src/mod/applications/mod_commands
Author: brian Date: Mon Feb 9 10:40:37 2009 New Revision: 11706 Log: tweak time_Test to not take insane values Modified: freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c Modified: freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c ============================================================================== --- freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c (original) +++ freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c Mon Feb 9 10:40:37 2009 @@ -55,12 +55,19 @@ stream->write_function(stream, "parameter missing\n"); return SWITCH_STATUS_SUCCESS; } + mss = atol(cmd); + if (mss > 10000) { + mss = 10000; + } + if ((p = strchr(cmd, ' '))) { max = atoi(p+1); if (max < 0) { - max = 10; + max = 1; + } else if (max > 100) { + max = 100; } }
participants (1)
-
FreeSWITCH SVN