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

📄 cdr_conf.html.svn-base

📁 asterisk-gui asterisk网关接口编程 控制asterisk的接口
💻 SVN-BASE
字号:
<!-- * Asterisk-GUI	-	an Asterisk configuration interface * * CDR Configuration * * Copyright (C) 2007, Digium, Inc. * * Brett Bryant <bbryant@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. * * * // see if the GUI-CDR configuration requirements are met * //   Just see if there is a [csv] section in cdr.conf * //   and see if [general]->enable is yes * // * //       if enable=yes is not found add enable=yes in general * //       if [csv] is not found, add [csv]  * //        Reload asterisk * // * // ln -s /var/log/asterisk/cdr-csv/Master.csv /var/lib/asterisk/static-http/Master.csv * // redirect to the cdr.html  --><script type="text/javascript" src="scripts/prototype.js"></script><script type="text/javascript" src="scripts/astman.js"></script><link href="stylesheets/schwing.css" media="all" rel="Stylesheet" type="text/css" /><script type="text/javascript">var symlink_csv = 'touch /var/log/asterisk/cdr-csv/Master.csv && ln -s /var/log/asterisk/cdr-csv/Master.csv /var/lib/asterisk/static-http/Master.csv';var redirect_ToCdr = function(){	parent.astmanEngine.run_tool(symlink_csv, function(t) {		setTimeout( function(){ window.location.href="cdr.html";},1000);	});};function get_cdrConfig(){		var parse_cdrconf = function(n){			var c = 0, uri='';							if( n.hasOwnProperty('general') &&  n['general']['enable']=='no'  ){ // cdr module is diabled 				uri += build_action('update' , c , 'general' , "enable" , "yes") ; c++ ;			}			if( !n.hasOwnProperty('csv') ){ // [csv] context is not found in cdr.conf				uri += build_action('newcat', c, 'csv' , "", ""); c++;			}			if(uri.length){ 				makerequest('u', "cdr.conf", uri, function(t){ 					redirect_ToCdr();				}); 			}else{				redirect_ToCdr();			}		};		config2json("cdr.conf", 1, parse_cdrconf);}</script><body id="foo" onload="get_cdrConfig()">	<div id="page_header">		<span style="margin-left: 4px;"><strong>CDR Configuration</strong></span>	</div>  <div class="mainscreenContentBox" style="width: 500px; margin-left: 20px;">		  </div></body>

⌨️ 快捷键说明

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