摘要: Asterisk译为星号(*)在很多应用中被用做通配符,Astrisk做为PBX系统的完美名称,原因之一是Asterisk可以连接数目庞大的接口类型,包括: 1模拟接接口,如你的电话线或模拟电话. 2数字线路,如T-1和E-1线路 3Voip协议,如SIP和IAX 目前正式版本是IAX2,但是IAX1的所有格式都已经停掉.所以当说到IAX都是特拽IAX2 使用接口配置文件 1.Zaptel.conf:硬件接口基层配置,我们将建立一个FX0和一个FXS通道. 2.zapata.conf:硬件配置Asterisk的接口. 3.extension.conf:拨号方案文件. 4.s... 阅读全文
posted @ 2011-12-19 10:40 RocTian 阅读(3665) 评论(0) 推荐(2) 编辑
摘要: AGC是自动增益补偿功能(Automatic Gain Control),AGC可以自动调麦克风的收音量,使与会者收到一定的音量水平,不会因发言者与麦克风的距离改变时,声音有忽大忽小声的缺点。 ANS是背景噪音抑制功能(Automatic Noise Suppression),ANS可探测出背景固定频率的杂音并消除背景噪音,例如:风扇、空调声自动滤除。呈现出与会者清晰的声音。 AEC是回声消除... 阅读全文
posted @ 2011-12-15 17:49 RocTian 阅读(2786) 评论(0) 推荐(0) 编辑
摘要: 1.thickbox 目前用的比较多的,最新版本是thickbox3.1 下载地址:http://jquery.com/demo/thickbox/#examples 2.colorBox 官方网站:http://colorpowered.com/colorbox/ 下载地址:http://colorpowered.com/colorbox/colorbox.zip 演示实例:http://colorpowered.com/colorbox/core/example1/index.html 3.FancyBox 官方网站:http://fancyb... 阅读全文
posted @ 2011-12-04 15:44 RocTian 阅读(810) 评论(0) 推荐(1) 编辑
摘要: 【鹏城万里】 发表于 http://www.sqlstudy.com/ 一、MySQL 获得当前日期时间 函数 1.1 获得当前日期+时间(date + time)函数:now() mysql> select now();+---------------------+| now() |+---------------------+| 2008-08-08 22:20:46 |+---------------------+除了 now() 函数能获得当前的日期时间外,MySQL 中还有下面的函数: current_timestamp(),current_time... 阅读全文
posted @ 2011-11-04 11:03 RocTian 阅读(425) 评论(1) 推荐(1) 编辑
摘要: public static String secondsToTime(long seconds) { long h = 0; long d = 0; long s = 0; long temp = seconds % 3600; if (seconds > 3600) { h = seconds / 3600; if (temp != 0) { if (temp > 6... 阅读全文
posted @ 2011-10-31 16:28 RocTian 阅读(264) 评论(0) 推荐(0) 编辑
摘要: 1、运行调试常用命令./asterisk & #后台启动./asterisk -vvvc #启动asterisk 并尽量多的在后台显示调试信息./asterisk -r #连接asterisk控制台set verbose #设置打印信息 2、asterisk控制台下常用命令set reload #重新加载sip配置信息sip set debug on #设置显示更多的Sip信息sip set debug off #关闭更多sip信息显示sip show channels #显示活动的sip通道sip show peers #显示已定义的sip peerdialplan show #显示 阅读全文
posted @ 2011-10-28 10:27 RocTian 阅读(1379) 评论(0) 推荐(0) 编辑
摘要: 修改 /etc/sysconfig/i18n 文件,如 LANG="en_US.UTF-8",xwindow会显示英文界面, LANG="zh_CN.GB18030",xwindow会显示中文界面。 还有一种方法 cp /etc/sysconfig/i18n $HOME/.i18n 修改 $HOME/.i18n 文件,如 LANG="en_US.UTF-8",xwindow会显示英文界面, LANG="zh_CN.GB18030",xwindow会显示中文界面。 这样就可以改变个人的界面语言,而不影响别的用户 修改 阅读全文
posted @ 2011-10-17 11:23 RocTian 阅读(337) 评论(0) 推荐(0) 编辑
摘要: 一、Unix编辑器概述 编辑器是使用计算机的重要工具之一,在各种操作系统中,编辑器都是必不可少的部件。Unix及其相似的ix操作系统系列中,为方便各种用户在各个不同的环境中使用,提供了一系列的ex编辑器,包括 ex, edit,ed 和vi.其中ex,edit,ed都是行编辑器,现在已很少有人使用,Unix提供他们的原因是考虑到满足各种用户特别是某些终端用户的需要。 值得庆幸的是,Unix提供了全屏幕的Vi编辑器,这使我们的工作轻松不少。不少DOS用户抱怨Vi编辑器不象DOS下的编辑器如edit那么好用,这是因为Vi考虑到各种用户的需要,没有使用某些通用的编辑键(在各个不同的终端机上他们的定. 阅读全文
posted @ 2011-10-17 11:15 RocTian 阅读(646) 评论(0) 推荐(0) 编辑
摘要: 方法1: var number = 123.4567number.toString().replace(/^(\d+\.\d{2})\d*$/,"$1")//结果:123.45方法2:var number = 123.4567number.toFixed(2);//结果:123.46//IE 5.5以上方法3:var number=123.4567Math.round(parseFloat(... 阅读全文
posted @ 2011-09-06 12:55 RocTian 阅读(222) 评论(0) 推荐(0) 编辑
摘要: ! 叹号 exclamation mark/bang ? 问号 question mark , 逗号 comma . 点号 dot/period/point : 冒号 colon ; 分号 semicolon ” 双引号 quotation marks/double quote ‘ 单引号/撇号 apostrophe/single quote ` 重音号 backquote/grave accen... 阅读全文
posted @ 2011-07-23 21:54 RocTian 阅读(532) 评论(0) 推荐(0) 编辑