git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10542
d0543943-73ff-0310-b7d9-
9358b9ac24b2
switch_channel_t *channel;
switch_time_t started;
unsigned int elapsed;
- int32 timeout = 60;
+ int32 timeout = 60000;
jsrefcount saveDepth;
jsval ret = JS_TRUE;
if (argc > 0) {
JS_ValueToInt32(cx, argv[0], &timeout);
+ if (timeout < 1000) {
+ timeout = 1000;
+ }
}
+
if (check_hangup_hook(jss, NULL) != JS_TRUE) {
return JS_FALSE;
}
switch_channel_t *channel;
switch_time_t started;
unsigned int elapsed;
- int32 timeout = 60;
+ int32 timeout = 60000;
jsrefcount saveDepth;
jsval ret = JS_TRUE;
if (argc > 0) {
JS_ValueToInt32(cx, argv[0], &timeout);
+ if (timeout < 1000) {
+ timeout = 1000;
+ }
}
if (check_hangup_hook(jss, NULL) != JS_TRUE) {