⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cli.html.svn-base

📁 asterisk-gui asterisk网关接口编程 控制asterisk的接口
💻 SVN-BASE
字号:
<!-- * Asterisk-GUI	-	an Asterisk configuration interface * * Asterisk CLI emulator  * * Copyright (C) 2006-2007, Digium, Inc. * * Pari Nannapaneni <pari@digium.com> * * See http://www.asterisk.org for more information about * the Asterisk project. Please do not directly contact * any of the maintainers of this project for assistance; * the project provides a web site, mailing lists and IRC * channels for your use. * * This program is free software, distributed under the terms of * the GNU General Public License Version 2. See the LICENSE file * at the top of the source tree. *--><script src="scripts/prototype.js"></script><script src="scripts/astman.js"></script><link href="stylesheets/schwing.css" media="all" rel="Stylesheet" type="text/css" /><script>var CLI_HSTY = []; // cli history of previous commands var CLI_INDEX = 0; // index for navigating through command historyvar COMMAND;function localajaxinit() {	var adjust_toScreen = function(){		var i = ASTGUI.displayHeight();		_$('cli_output').style.height = (i -60);	}	top._$('mainscreen').width= 798;	ASTGUI.events.add( window , 'resize', adjust_toScreen);	setWindowTitle("Asterisk CLI Emulator");	parent.loadscreen(this);	_$('cli_cmd').value = "core show version";	setTimeout( function(){_$('cli_cmd').focus();},500);}function resetmainscreen(){	top._$('mainscreen').width= 540;}function executeCommand(cmd){	parent.astmanEngine.cliCommand(cmd, gotResponse);}function gotResponse(op){	var cc = _$('cli_cmd');	op = op.replace(/Response: Follows/, "");	op = op.replace(/Privilege: Command/, "");	op = op.replace(/--END COMMAND--/, "");	op = "Command><B> <Font color=#13138a size=+1>" + COMMAND + "</FONT></B>" + op ;	CLI_HSTY.push(COMMAND); CLI_INDEX = CLI_HSTY.length;	_$('cli_output').innerHTML = "<PRE>"+ op + "</PRE>";	_$('cli_cmd').value = "";	_$('cli_cmd').focus();}function sendCommand(e){	var cc = _$('cli_cmd');	if(e.keyCode == 38){		if(CLI_INDEX ==0){return false;}		cc.value =CLI_HSTY[CLI_INDEX-1]; CLI_INDEX -= 1;		cc.focus(); 		return false;	}	if(e.keyCode == 40){		if(!CLI_HSTY[CLI_INDEX]){cc.value = ""; CLI_INDEX = CLI_HSTY.length; return false;}		cc.value = CLI_HSTY[CLI_INDEX]; CLI_INDEX += 1;		cc.focus();		return false;	}	if(e.keyCode == 13){		COMMAND = cc.value;		executeCommand(COMMAND);		return false;	}}</script><body id="foo" onload="localajaxinit()"  bgcolor="#FFFFFF" onunload="resetmainscreen();"><div style="font-size : 12px; padding : 4px 6px 4px 6px; border-style : solid none solid none; border-top-color : #BDC7E7; border-bottom-color : #182052; border-width : 1px 0px 1px 0px; background-color : #ef8700; color : #ffffff;">	<span style="margin-left: 4px;font-weight:bold;">Asterisk Command Line Interface</span>	<span style="cursor: pointer; cursor: hand;" onclick="window.location.href=window.location.href;" >&nbsp;<img src="images/refresh.png" title=" Refresh " border=0 >&nbsp;</span>	&nbsp;&nbsp;</div><div style="padding : 0px 0px 0px 0px;"><div style="padding : 0px 1px 0px 2px; height:444px;width= 797px; overflow :auto; font-size : 12px;" id="cli_output"></div><BR>Asterisk CLI>&nbsp;<input id="cli_cmd" style="height:18px" onKeyDown="sendCommand(event)" class="input9" size=95></div></body>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -