提交 7daf4ac0 authored 作者: Mitch Capper's avatar Mitch Capper

Added pass through option for new timeout param for fs_cli added note that a…

Added pass through option for new timeout param for fs_cli added note that a patched fs_cli is included with FSClient
上级 16baf04c
#!/usr/bin/perl
##### NOTE: You need: http://jira.freeswitch.org/browse/FS-3188
##### NOTE: You need an fs_cli patched with: http://jira.freeswitch.org/browse/FS-3188 or FSClient for windows comes bundled with the patched fs_cli
use strict;
$| = 1;
my $THREADS_SUPPORTED; #required for polling support on STDIN in windows...
......@@ -46,6 +46,7 @@ sub usage(){
-X, --quit-execute=command Execute Command when quitting
-l, --loglevel=command Log Level
-d, --debug=level fs_cli Debug Level (0 - 7)
-t, --timeout Timeout for API commands (in miliseconds)
-q, --quiet Disable logging
-r, --retry Retry connection on failure
-R, --reconnect Reconnect if disconnected
......@@ -391,6 +392,7 @@ sub puke($$){
next if (parse_args_through("-q","--quiet","",1));
next if (parse_args_through("-r","--retry","",1));
next if (parse_args_through("-R","--reconnect","",1));
next if (parse_args_through("-t","--timeout"));
($matches,$value) = arg_test("-A","--auto",0,0);
$do_auto = 1 and next if ($matches);
($matches,$value) = arg_test("-x","--execute",1,1);
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论