<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>呼叫中心系统◆开发者随笔 &#187; asterisk</title>
	<atom:link href="http://www.cn-cti.com/tag/asterisk/feed" rel="self" type="application/rss+xml" />
	<link>http://www.cn-cti.com</link>
	<description>软件&#124;论坛&#124;CTI&#124;呼叫中心系统解决方案&#124;呼叫中心运营&#124;技术</description>
	<lastBuildDate>Thu, 22 Dec 2011 05:19:41 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>asterisk常用调试监测命令</title>
		<link>http://www.cn-cti.com/1770.html</link>
		<comments>http://www.cn-cti.com/1770.html#comments</comments>
		<pubDate>Mon, 07 Mar 2011 06:33:42 +0000</pubDate>
		<dc:creator>呆子</dc:creator>
				<category><![CDATA[呼叫中心开发技术]]></category>
		<category><![CDATA[asterisk]]></category>

		<guid isPermaLink="false">http://www.cn-cti.com/?p=1770</guid>
		<description><![CDATA[asterisk是开源的VOIP系统。是目前最流行的VOIP开源软件。

在使用过程中  可以使用下述的命令，对系统进行监控调试。

下文来自网络，非本人原创

]]></description>
			<content:encoded><![CDATA[<p>asterisk是开源的VOIP系统。是目前最流行的VOIP开源软件。</p>
<p>在使用过程中  可以使用下述的命令，对系统进行监控调试。</p>
<p>下文来自网络，非本人原创</p>
<p>1. 运行调试常用命令<br />
./asterisk &amp; 在后台启动asterisk<br />
./asterisk –vvvc 启动asterisk并尽量多的在控制台显示调试信息<br />
./asterisk –r 连接asterisk控制台<br />
set verbose 9999 设置打印详细信息</p>
<p>2.asterisk控制台下常用命令</p>
<p>sip reload 重新加载sip配置信息<br />
sip set debug on  设置显示更多的sip信息<br />
sip set debug off关闭显示更多的sip信息<br />
sip show channels 显示所有活动的SIP通道<br />
sip show peers 显示所有已定义的SIP peer</p>
<p>dialplan show 显示拨号方案<br />
dialplan reload重新加载拨打方案</p>
<p>stop gracefully 优雅地停止asterisk<br />
stop now 立即停止运行asterisk</p>
<p>module show 显示所有已加载模块<br />
module load cdr_radius.so     加载模块cdr_radius.so<br />
module reload cdr_radius.so 重新加载模块cdr_radius.so<br />
module unload cdr_radius.so 卸载模块cdr_radius.so</p>
<p>core show applications 显示所有的应用，比如Dial, Radius, Hangup, Answer等<br />
core show channels 显示所有的通话频道<br />
core show codecs 显示所有支持的编解码器<br />
core show functions 显示所有的功能函数<br />
ps -aux ：     显示进程命令。<br />
asterisk -rvc               进入到asterisk。<br />
输入: stop now           停止关闭asterisk。<br />
运行:  safe_asterisk   启动asterisk。<br />
core show channels          显示并发线数。</p>
<p>Asterisk 提供了多种调试方法。连接控制台后，可以察看不同级别的冗长和调试输出，同时还有协议包 tracing。我们看一下本节不同的选项(The Asterisk 控制台详细信息请参考附件 E)。<br />
连接控制台     <br />
  连接 Asterisk 控制台，你可以在控制台直接启动服务器（这样你如果不结束Asterisk 进程就不能退出控制台），或者后台启动 Asterisk，然后远程控制台登录。  <br />
直接在控制台启动 Asterisk，使用下面的控制台命令：<br />
# /usr/sbin/asterisk –c      <br />
远程连接控制台，首先启动后台，然后连接：<br />
# /usr/sbin/asterisk<br />
# /usr/sbin/asterisk -r      <br />
如<br />
果遇到某个模块不能载入的问题，或者某个模块导致 Asterisk 不能载入，用–c flag 启动 Asterisk<br />
进程，监视模块载入状态。例如，如果你试图载入 OSS通道驱动（此驱动启动控制台通道），并且 Asterisk<br />
不能打开/dev/dsp，你会收到如下的错误信息：<br />
WARNING[32174]: chan_oss.c:470 soundcard_init: Unable to open /dev/dsp:<br />
No such file or directory<br />
== No sound card detected &#8212; console channel will be unavailable<br />
== Turn off OSS support by adding &#8216;noload=chan_oss.so&#8217; in /etc/asterisk/modules.conf<br />
启动 Verbosity 和 Debugging      <br />
  <br />
Asterisk 可以以 WARNING，NOTICE 和 ERROR<br />
消息形式输出调试信息。这些消息可以为你提供系统信息，例如注册、状态、呼叫进程和多种其它信息。请注意 WARNING 和 NOTICE<br />
消息不是错误；然而，ERROR 信息需要进行检查。      <br />
激活不同级别的 verbosity，使用 set verbose，附加一个数值。有效值从 3-10，例如设置 verbosity 的最高数值，<br />
使用：# set verbose 10      <br />
你也可以通过设置调试级别激活核心调试信息。激活控制台的 DEBUG 输出，需要在 logger.conf 文件中增加 debug 到 console =&gt;文段，<br />
例如：console =&gt; warning,notice,error,event,debug      <br />
设置调试级别的有效值为 3-10，<br />
例如：# set debug 10</p>
<h3  class="related_post_title">关联阅读</h3><ul class="related_post"><li><a href="http://www.cn-cti.com/1592.html" title="基于asterisk的呼叫中心坐席呼叫方式">基于asterisk的呼叫中心坐席呼叫方式</a></li><li><a href="http://www.cn-cti.com/1561.html" title="asterisk兼容数字卡上面调试中国7号信令（ss7）">asterisk兼容数字卡上面调试中国7号信令（ss7）</a></li><li><a href="http://www.cn-cti.com/1348.html" title="asterisk用于CTI开发话务批发平台的需求">asterisk用于CTI开发话务批发平台的需求</a></li><li><a href="http://www.cn-cti.com/1245.html" title="Asterisk与Cent OS">Asterisk与Cent OS</a></li><li><a href="http://www.cn-cti.com/1216.html" title="基于asterisk的呼叫中心系统VICIDIAL介绍">基于asterisk的呼叫中心系统VICIDIAL介绍</a></li><li><a href="http://www.cn-cti.com/1062.html" title=" asterisk和普通语音板卡构建的呼叫中心差别"> asterisk和普通语音板卡构建的呼叫中心差别</a></li><li><a href="http://www.cn-cti.com/681.html" title="IAX 设置详细（zt）">IAX 设置详细（zt）</a></li><li><a href="http://www.cn-cti.com/679.html" title="linux下面配置IAX（ZT）">linux下面配置IAX（ZT）</a></li><li><a href="http://www.cn-cti.com/664.html" title="asterisk电子教程">asterisk电子教程</a></li><li><a href="http://www.cn-cti.com/659.html" title="asterisk开发资料">asterisk开发资料</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.cn-cti.com/1770.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>基于asterisk的呼叫中心坐席呼叫方式</title>
		<link>http://www.cn-cti.com/1592.html</link>
		<comments>http://www.cn-cti.com/1592.html#comments</comments>
		<pubDate>Fri, 05 Feb 2010 23:55:46 +0000</pubDate>
		<dc:creator>呆子</dc:creator>
				<category><![CDATA[呼叫中心开发技术]]></category>
		<category><![CDATA[asterisk]]></category>
		<category><![CDATA[呼叫中心]]></category>

		<guid isPermaLink="false">http://www.cn-cti.com/?p=1592</guid>
		<description><![CDATA[ringall:  同时呼叫所有的座席 直到有人接听 (默认)
roundrobin: 在可用的空闲座席上轮流振铃
leastrecent: 呼叫最长时间没有被呼叫的座席
fewestcalls: 呼叫应答次数最少的座席
random: 随机呼叫座席
rrmemory: 记忆式轮流振铃，从上次应答的下一个开始


]]></description>
			<content:encoded><![CDATA[<p>ringall:  同时呼叫所有的座席 直到有人接听 (默认)<br />
roundrobin: 在可用的空闲座席上轮流振铃<br />
leastrecent: 呼叫最长时间没有被呼叫的座席<br />
fewestcalls: 呼叫应答次数最少的座席<br />
random: 随机呼叫座席<br />
rrmemory: 记忆式轮流振铃，从上次应答的下一个开始</p>
<h3  class="related_post_title">关联阅读</h3><ul class="related_post"><li><a href="http://www.cn-cti.com/1245.html" title="Asterisk与Cent OS">Asterisk与Cent OS</a></li><li><a href="http://www.cn-cti.com/1216.html" title="基于asterisk的呼叫中心系统VICIDIAL介绍">基于asterisk的呼叫中心系统VICIDIAL介绍</a></li><li><a href="http://www.cn-cti.com/1062.html" title=" asterisk和普通语音板卡构建的呼叫中心差别"> asterisk和普通语音板卡构建的呼叫中心差别</a></li><li><a href="http://www.cn-cti.com/655.html" title="asterCRM 预拨号功能应用于外呼-呼叫中心">asterCRM 预拨号功能应用于外呼-呼叫中心</a></li><li><a href="http://www.cn-cti.com/1770.html" title="asterisk常用调试监测命令">asterisk常用调试监测命令</a></li><li><a href="http://www.cn-cti.com/1757.html" title="一个做呼叫中心的同行的2010年">一个做呼叫中心的同行的2010年</a></li><li><a href="http://www.cn-cti.com/1756.html" title="平安E家">平安E家</a></li><li><a href="http://www.cn-cti.com/1754.html" title="送水行业呼叫中心解决方案">送水行业呼叫中心解决方案</a></li><li><a href="http://www.cn-cti.com/1714.html" title="物联网技术在居家养老信息系统的应用">物联网技术在居家养老信息系统的应用</a></li><li><a href="http://www.cn-cti.com/1707.html" title="如何对付盗版者（自曝反盗版措施）">如何对付盗版者（自曝反盗版措施）</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.cn-cti.com/1592.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>asterisk兼容数字卡上面调试中国7号信令（ss7）</title>
		<link>http://www.cn-cti.com/1561.html</link>
		<comments>http://www.cn-cti.com/1561.html#comments</comments>
		<pubDate>Sun, 17 Jan 2010 08:39:44 +0000</pubDate>
		<dc:creator>呆子</dc:creator>
				<category><![CDATA[呼叫中心开发技术]]></category>
		<category><![CDATA[asterisk]]></category>
		<category><![CDATA[openvox]]></category>
		<category><![CDATA[ss7]]></category>

		<guid isPermaLink="false">http://www.cn-cti.com/?p=1561</guid>
		<description><![CDATA[asterisk是一个免费开源的软PBX系统。国内的openVOX，杭州三汇均出与其配套兼容卡。原生的驱动以及调试信息，使得pri信令在上面很好运行，但有些环境需要7号信令，使用第三方的so文件，可以很好解决问题。]]></description>
			<content:encoded><![CDATA[<p align="left"><strong>How to install asterisk, chan_ss7 and zaptel with openvox PRI cards</strong></p>
<p align="left">hello:<br />
if you want to install asterisk, chan_ss7 and zaptel, please follow these steps:<br />
1) download asterisk-1.4.20, zaptel-1.4.10 and chan_ss7_1.1<br />
2) unzip asterisk-1.4.20.tar.gz to /usr/src, under asterisk dir, please run: ./configure, make and make install, make samples.<br />
3) unzip zaptel-1.4.10.tar.gz to /usr/src/, under zaptel dir, please run: ./confiugre, make and make install<br />
4) unzip the chan_ss7_1.1 to /usr/src, under chan_ss7_1.1, please do this:<br />
4.1) modify the Makefile, do like this:<br />
=======================<br />
# non-standard places.<br />
INCLUDE+=-I /usr/src/zaptel-1.4.10/kernel  ; point to the zaptel source<br />
#INCLUDE+=-I../source/telephony/dahdi/include<br />
INCLUDE+=-I /usr/src/asterisk-1.4.20  ; point to asterisk source<br />
=======================<br />
4.2) save and quit<br />
4.3) run make and make install<br />
4.4) copy the ss7.conf file to /etc/asterisk<br />
4.5) copy the chan_ss7.so to /usr/lib/asterisk/modules<br />
5) edit the zaptel.conf like this:<br />
===========================<br />
# Autogenerated by ./genzaptelconf &#8212; do not hand edit<br />
# Zaptel Configuration File<br />
#<br />
# This file is parsed by the Zaptel Configurator, ztcfg<br />
#</p>
<p># It must be in the module loading order</p>
<p># Span 1: TE4/0/1 &#8220;T4XXP (PCI) Card 0 Span 1&#8243; (MASTER)<br />
span=1,1,0,ccs,hdb3,crc4<br />
# termtype: te<br />
bchan=1-15,17-31<br />
dchan=16</p>
<p># Span 2: TE4/0/2 &#8220;T4XXP (PCI) Card 0 Span 2&#8243;<br />
span=2,2,0,ccs,hdb3,crc4<br />
# termtype: te<br />
bchan=32-46,48-62<br />
dchan=47</p>
<p># Span 3: TE4/0/3 &#8220;T4XXP (PCI) Card 0 Span 3&#8243;<br />
span=3,3,0,ccs,hdb3,crc4<br />
# termtype: te<br />
bchan=63-77,79-93<br />
dchan=78</p>
<p># Span 4: TE4/0/4 &#8220;T4XXP (PCI) Card 0 Span 4&#8243;<br />
span=4,4,0,ccs,hdb3,crc4<br />
# termtype: te<br />
bchan=94-108,110-124<br />
dchan=109</p>
<p># Global data</p>
<p>loadzone        = us<br />
defaultzone     = us<br />
===========================<br />
6) edit ss7.conf like this:<br />
===========================<br />
[linkset-ls1]<br />
enabled =&gt; yes<br />
enable_st =&gt; yes<br />
use_connect =&gt; no<br />
hunting_policy =&gt; even_mru<br />
context =&gt; ss7_call<br />
language =&gt; en<br />
subservice =&gt; auto<br />
variant =&gt; CHINA ; 支持中国ss7 号信令<br />
[link-l1]<br />
linkset =&gt; ls1<br />
channels =&gt; 1-15,17-31<br />
schannel =&gt; 16<br />
firstcic =&gt; 1<br />
enabled =&gt; yes</p>
<p>echocancel =&gt; no<br />
echocan_train =&gt; 350<br />
echocan_taps =&gt; 128</p>
<p>[link-l2]<br />
linkset =&gt; ls1<br />
channels =&gt; 1-31<br />
schannel =&gt;<br />
firstcic =&gt; 33<br />
enabled =&gt; yes</p>
<p>[link-l3]<br />
linkset =&gt; ls1<br />
channels =&gt; 1-31<br />
schannel =&gt;<br />
firstcic =&gt; 65<br />
enabled =&gt; yes</p>
<p>[link-l4]<br />
linkset =&gt; ls1<br />
channels =&gt; 1-31<br />
schannel =&gt;<br />
firstcic =&gt; 97<br />
enabled =&gt; yes</p>
<p>[host-openvox]<br />
enabled =&gt; yes<br />
opc =&gt; 0&#215;222222<br />
dpc =&gt; ls1:0&#215;298922<br />
links =&gt; l1:1,l2:2,l3:3,l4:4<br />
===========================<br />
7) edit extensions.conf：<br />
==========================<br />
[ss7_call]<br />
exten =&gt; 100,1,Dial(ss7/outgoing number)<br />
exten =&gt; 100,2,Hangup<br />
==========================<br />
 <img src='http://www.cn-cti.com/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> make sure ss7 is up:<br />
==========================<br />
CLI&gt; ss7 link status<br />
linkset ls1, link l1, schannel 16, sls 0, INSERVICE, rx: 5, tx: 1/3, sentseq/lastack: 4/4, total    199328,    199424<br />
CLI&gt; ss7 status<br />
linkset        idle busy initiating resetting total incoming total outgoing<br />
ls1              30    0          0         0              0              0<br />
gw1*CLI&gt; ss7 linestat<br />
Linkset: ls1<br />
CIC   1 Idle<br />
CIC   2 Idle<br />
CIC   3 Idle<br />
CIC   4 Idle<br />
CIC   5 Idle<br />
CIC   6 Idle<br />
CIC   7 Idle<br />
CIC   8 Idle<br />
CIC   9 Idle<br />
CIC  10 Idle<br />
CIC  11 Idle<br />
CIC  12 Idle<br />
CIC  13 Idle<br />
CIC  14 Idle<br />
CIC  15 Idle<br />
CIC  17 Idle<br />
CIC  18 Idle<br />
CIC  19 Idle<br />
CIC  20 Idle<br />
CIC  21 Idle<br />
9） use an extension dial 100 to make a call to ss7<br />
Test tools:<br />
asterisk-1.4.20<br />
zaptel-1.4.10<br />
chan_ss7-1.1(支持中国ss7 号信令)</p>
<p align="left"> </p>
<h3  class="related_post_title">关联阅读</h3><ul class="related_post"><li><a href="http://www.cn-cti.com/1770.html" title="asterisk常用调试监测命令">asterisk常用调试监测命令</a></li><li><a href="http://www.cn-cti.com/1592.html" title="基于asterisk的呼叫中心坐席呼叫方式">基于asterisk的呼叫中心坐席呼叫方式</a></li><li><a href="http://www.cn-cti.com/1348.html" title="asterisk用于CTI开发话务批发平台的需求">asterisk用于CTI开发话务批发平台的需求</a></li><li><a href="http://www.cn-cti.com/1336.html" title="GSM蜂窝通信系统的子系统接口">GSM蜂窝通信系统的子系统接口</a></li><li><a href="http://www.cn-cti.com/1322.html" title="ss7在呼叫中心系统中的应用">ss7在呼叫中心系统中的应用</a></li><li><a href="http://www.cn-cti.com/1320.html" title="HLR-VLR&#8212;ss7">HLR-VLR&#8212;ss7</a></li><li><a href="http://www.cn-cti.com/1314.html" title="1号信令2号信令&#8212;7号信令（二）">1号信令2号信令&#8212;7号信令（二）</a></li><li><a href="http://www.cn-cti.com/1305.html" title="移动与固网7号信令的TUP协议区别">移动与固网7号信令的TUP协议区别</a></li><li><a href="http://www.cn-cti.com/1245.html" title="Asterisk与Cent OS">Asterisk与Cent OS</a></li><li><a href="http://www.cn-cti.com/1216.html" title="基于asterisk的呼叫中心系统VICIDIAL介绍">基于asterisk的呼叫中心系统VICIDIAL介绍</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.cn-cti.com/1561.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>asterisk用于CTI开发话务批发平台的需求</title>
		<link>http://www.cn-cti.com/1348.html</link>
		<comments>http://www.cn-cti.com/1348.html#comments</comments>
		<pubDate>Sun, 02 Aug 2009 02:06:58 +0000</pubDate>
		<dc:creator>呆子</dc:creator>
				<category><![CDATA[呼叫中心开发技术]]></category>
		<category><![CDATA[asterisk]]></category>

		<guid isPermaLink="false">http://www.cn-cti.com/?p=1348</guid>
		<description><![CDATA[用asterisk开发话务系统，对呼叫中心开发者来说，小事一桩]]></description>
			<content:encoded><![CDATA[<p>一个一直和我关系很好的朋友，接到一个利用asterisk开发一个话务批发平台的需求。</p>
<p>我这个朋友，以前一直做呼叫中心的开发工作。当然，经常用asterisk来做软交换。</p>
<p>相比呼叫中心系统，话务批发要简单得多。</p>
<p>下面是这个系统的主要需求：</p>
<p>1. 可对任何基于asterisk 的系统进行计费。<br />
2. 实时计费。<br />
3. 支持预付费款和后付款费。<br />
4. 最大可支持1024 并发通话。<br />
5. 话机锁定/解锁功能。<br />
6. 话机/话吧/分销商额度限定。<br />
7. 单系统支持多话吧。<br />
8. 单系统支持多分销商。<br />
9. 可分别针对每个用户/话吧/分销商设置费率<br />
10. 支持带额度限定的回拨功能(主叫计费/被叫计费/双方计费)<br />
11. 支持三级计费：分销商计费/话吧计费/用户计费<br />
12. 管理者/代理商/话吧/操作员四种用户级别<br />
13. 支持费率的在线导入导出<br />
14. 强制结束通话<br />
15. 页面应用部分开放源代码, 便于自定义界面活开发</p>
<p>16. 收益计算<br />
17. 网络式布局<br />
18. 通话信息查询<br />
19. 五通道免费许可（没有注册文件的话，可以提供五路的免费并发）<br />
20. 充值信息记录<br />
21. 提供了可以用作电话卡或内部pbx 计费的agi 脚本<br />
22. 单独分机计费<br />
23. 分机可登陆</p>
<h3  class="related_post_title">关联阅读</h3><ul class="related_post"><li><a href="http://www.cn-cti.com/1770.html" title="asterisk常用调试监测命令">asterisk常用调试监测命令</a></li><li><a href="http://www.cn-cti.com/1592.html" title="基于asterisk的呼叫中心坐席呼叫方式">基于asterisk的呼叫中心坐席呼叫方式</a></li><li><a href="http://www.cn-cti.com/1561.html" title="asterisk兼容数字卡上面调试中国7号信令（ss7）">asterisk兼容数字卡上面调试中国7号信令（ss7）</a></li><li><a href="http://www.cn-cti.com/1245.html" title="Asterisk与Cent OS">Asterisk与Cent OS</a></li><li><a href="http://www.cn-cti.com/1216.html" title="基于asterisk的呼叫中心系统VICIDIAL介绍">基于asterisk的呼叫中心系统VICIDIAL介绍</a></li><li><a href="http://www.cn-cti.com/1062.html" title=" asterisk和普通语音板卡构建的呼叫中心差别"> asterisk和普通语音板卡构建的呼叫中心差别</a></li><li><a href="http://www.cn-cti.com/681.html" title="IAX 设置详细（zt）">IAX 设置详细（zt）</a></li><li><a href="http://www.cn-cti.com/679.html" title="linux下面配置IAX（ZT）">linux下面配置IAX（ZT）</a></li><li><a href="http://www.cn-cti.com/664.html" title="asterisk电子教程">asterisk电子教程</a></li><li><a href="http://www.cn-cti.com/659.html" title="asterisk开发资料">asterisk开发资料</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.cn-cti.com/1348.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Asterisk与Cent OS</title>
		<link>http://www.cn-cti.com/1245.html</link>
		<comments>http://www.cn-cti.com/1245.html#comments</comments>
		<pubDate>Sun, 12 Jul 2009 07:07:27 +0000</pubDate>
		<dc:creator>呆子</dc:creator>
				<category><![CDATA[呼叫中心开发技术]]></category>
		<category><![CDATA[asterisk]]></category>
		<category><![CDATA[cent os]]></category>
		<category><![CDATA[呼叫中心]]></category>

		<guid isPermaLink="false">http://www.cn-cti.com/?p=1245</guid>
		<description><![CDATA[采用cent os 5.3操作系统的，asterisk软交换系统的呼叫中心。是一个稳定、廉价易维护的系统。]]></description>
			<content:encoded><![CDATA[<p>据说 Asterisk跑在cent os下面。匹配性最好。</p>
<p>其实  CENT OS与RED Hat linux出自一门。</p>
<p>安装了一下  Cent os  并没有发现多少好处</p>
<p>对于一个软件开发商来讲  最好不要用多种操作系统  以免增加维护难度。</p>
<p>不过  CENT OS其实就是red hat 9的后续。</p>
<p>以前用三汇的板卡搭建系统  采用的菱华/研祥/研华工控机，最好的搭配，就是RED Hat linux 9.0。这个操作系统，连续用了4年。</p>
<p>直到最近  SATA硬盘  新型网卡的出现。</p>
<p>9.0的驱动跟不上  才开始使用AS4U5</p>
<p>CENT OS 如果好用  公司部署出去的设备  都要采用CENT了</p>
<p>现在采用的版本为cent os 5.3</p>
<p>asterisk采用版本1.6</p>
<p>据说 t.38传真很稳定。</p>
<p>如果您希望购买基于板卡/交换机/VOIP的呼叫中心系统，请访问我公司网站</p>
<p><a href="http://www.dxinfo.com">大象通信公司</a></p>
<p>如需转贴或者转载，请您拨打电话0371-68243399或者邮件cui_yingjiu@msn.com与我联系。未经许可擅自转贴转载的，本人将根据我国民法通则、著作权法以及其他法律追究侵权者的法律责任。</p>
<h3  class="related_post_title">关联阅读</h3><ul class="related_post"><li><a href="http://www.cn-cti.com/1592.html" title="基于asterisk的呼叫中心坐席呼叫方式">基于asterisk的呼叫中心坐席呼叫方式</a></li><li><a href="http://www.cn-cti.com/1216.html" title="基于asterisk的呼叫中心系统VICIDIAL介绍">基于asterisk的呼叫中心系统VICIDIAL介绍</a></li><li><a href="http://www.cn-cti.com/1062.html" title=" asterisk和普通语音板卡构建的呼叫中心差别"> asterisk和普通语音板卡构建的呼叫中心差别</a></li><li><a href="http://www.cn-cti.com/655.html" title="asterCRM 预拨号功能应用于外呼-呼叫中心">asterCRM 预拨号功能应用于外呼-呼叫中心</a></li><li><a href="http://www.cn-cti.com/1770.html" title="asterisk常用调试监测命令">asterisk常用调试监测命令</a></li><li><a href="http://www.cn-cti.com/1757.html" title="一个做呼叫中心的同行的2010年">一个做呼叫中心的同行的2010年</a></li><li><a href="http://www.cn-cti.com/1756.html" title="平安E家">平安E家</a></li><li><a href="http://www.cn-cti.com/1754.html" title="送水行业呼叫中心解决方案">送水行业呼叫中心解决方案</a></li><li><a href="http://www.cn-cti.com/1714.html" title="物联网技术在居家养老信息系统的应用">物联网技术在居家养老信息系统的应用</a></li><li><a href="http://www.cn-cti.com/1707.html" title="如何对付盗版者（自曝反盗版措施）">如何对付盗版者（自曝反盗版措施）</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.cn-cti.com/1245.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>基于asterisk的呼叫中心系统VICIDIAL介绍</title>
		<link>http://www.cn-cti.com/1216.html</link>
		<comments>http://www.cn-cti.com/1216.html#comments</comments>
		<pubDate>Fri, 10 Jul 2009 07:00:12 +0000</pubDate>
		<dc:creator>呆子</dc:creator>
				<category><![CDATA[呼叫中心解决方案]]></category>
		<category><![CDATA[asterisk]]></category>
		<category><![CDATA[VICIDIAL]]></category>
		<category><![CDATA[呼叫中心]]></category>

		<guid isPermaLink="false">http://www.cn-cti.com/?p=1216</guid>
		<description><![CDATA[VICIDIAL是一套基于asterisk的VOIP型呼叫中心开源软件]]></description>
			<content:encoded><![CDATA[<p>很多公司都在做基于asterisk的小型呼叫中心。<br />
其实，Digium公司为了更好销售其兼容语音卡，早就资助一个团队开发了一套呼叫中心系统，并开源。这便是VICIDIAL.</p>
<p>对VICIDIAL进行再开发，便可以满足大多数项目的需求。</p>
<p>只是，外国人搞的东西，虽然功能基本完备，但界面不太符合中国人的审美习惯。需要作出一定的改动。</p>
<p>VICIDIAL是一基于Asterisk开源PBX电话系统的比较完善的呼入/呼出型呼叫中心软件包。 </p>
<p>坐席界面是基于浏览器的WEB交互页面，坐席电脑仅需安装浏览器，但是坐席功能页面可以提供实时信息和全面的话务操作功能。管理员界面也是基于WEB，可以提供很多实时报告，以及汇总报表。另外，可以进行详细的运动（compaign）和坐席设置。</p>
<p>VICIDIAL 可以为呼入话务或来自前端呼出话务的终结话务作为自动呼叫分派机, 甚至也允许远程坐席登陆，即使这些远程坐席只配备有一部普通电话机。<br />
现在全世界超过70个国家，总共有超过700个VICIDIAL软件包安装于生产环境，有些呼叫中心拥有超过300个坐席，也有几家呼叫中心是分布于多个不同地域。 </p>
<p>VICIDIAL主要功能:<br />
呼入,呼出和混合型呼叫处理<br />
由坐席控制的广播式和预测式外呼<br />
完全兼容 USA FTC 标准（美国联邦电信委员会）<br />
基于WEB的坐席和管理操作界面<br />
坐席具有远程操作的能力<br />
集成电话录音<br />
在坐席软件中包含了3路呼叫功能<br />
回呼排程: 定时回呼，由特定坐席应答，或任何人应答<br />
可以扩展到几百个坐席<br />
可以使用标准电信线路以及VOIP软通道<br />
开源GPL授权,没有软件授权费用 </p>
<p>全部特性列表:<br />
支持一个坐席代表使用WEB客户端，基于数据库一个接一个地呼叫客户<br />
可以显示由坐席代表阅读的话术剧本（script），中间可以嵌入客户姓名、地址等资料<br />
可以设定一个话务运动进行自动拨出，并将连接成功的呼叫发送给空闲的坐席代表<br />
可以在一个话务运动中进行预测式拨号，使用一套自适应算法<br />
可以在多个Asterisk服务器上运行同一个话务运动，或将多个话务运动放在一个Asterisk服务器上运行<br />
可以将呼叫合并客户数据一起转移给终结坐席，这个终结坐席既可以是注册于本地服务器上，也可以是注册于远程服务器 上<br />
可以为呼叫结束处理打开一个可定制的WEB页面，录入此呼叫及此运动的有关调查数据<br />
可以进行这样的自动拨出话务运动，先用一个简单的自动IVR（交互式语音应答）开场，然后转给坐席代表<br />
可以进行自动的语音广播，使用预先录制的语音<br />
每个话务运动都可以使用不同的定制音乐停泊客户呼叫<br />
如果没有空闲坐席代表处理呼叫，可以将一个准备挂掉的呼叫送到语音信箱，每个话务运动都可以设定其特定的语音信箱<br />
每个话务运动都可以设定其呼出来电显示号码（CallerID）<br />
可以抓取呼入来电号码（CallerID ）<br />
可以为呼入话务、前端/后端验证话务作为自动分派机<br />
同一个坐席在一次登陆会话中可以同时处理内呼和外呼<br />
可以在任何时间开始和停止对坐席线路的录音<br />
可以自动为所有呼叫录音<br />
可以手工或自动呼叫一个客户记录的至多两个其它号码<br />
可以为客户的回呼排程，设置特定坐席应答或任何坐席应答<br />
在手工拨号模式下，拨号之前可以预览客户记录<br />
客户代表可以远程登陆系统，仅需要一部座机和一个上网电脑<br />
更快的挂机和一键式结果处理<br />
可为每个话务运动设定不同的坐席总结时长 (Wrapup time)<br />
可以为每个话务运动添加定制的呼叫结束处理<br />
在话务运动拨出中，可以使用定制的数据库查询<br />
可以在设定的时间间隔内回收忙线呼叫，而不需重置呼叫列表<br />
拨出时，可以包含时区限制和工作日限制<br />
播出时，侦测是否为自动应答机，并为它播放留言语音<br />
同时有多个话务运动和客户清单<br />
为了遵循美国联邦电信委员会规则，系统提供带有安全泊话语音信息的断线定时器，可以设置断线超时和泊话语音<br />
为了遵循美国联邦电信委员会规则，可以为预测式呼叫自由设定断线百分比（drop call percentage）<br />
每个话务运动可以设定黑名单DNC(do not call，不可拨打名单)<br />
所有呼叫及呼叫状态均被记录， 可以按照坐席时间进行分组<br />
可以在多个呼入或呼出Asterisk服务器之间进行负载平衡<br />
有几种实时和汇总报表<br />
实时话务运动状态查看界面<br />
第三方会议 (使用 DTMF宏和预设数字键)<br />
第三方忙呼转移<br />
坐席离开的第三方会议<br />
定制呼入等待音乐和坐席告警声音<br />
针对不同呼入分组和话务运动可以设定其特定的基于技能的分级和呼叫路由<br />
座席代表可以分为不同组，可以访问不同的呼叫专案，也可以分为，呼入组或呼出组，或前端组，后端组：比如高级员工组或专门处理某类业务的组<br />
可以为某个话务运动设定用户经验水平、级别和权限<br />
经理、组长可以听取坐席交谈<br />
经理、组长可以加入坐席和客户的交谈<br />
当坐席离开时，她们可以选择一个暂停代码（Pause Code ）<br />
坐席可以控制她们的音量大小和设置静音<br />
外呼拨号兼容QueueMetrics统计系统<br />
基于WEB的管理 界面<br />
按电话号码进行录音检索、下载和监听<br />
访问结果编辑、修改和日志<br />
名单管理：多个名单、名单导入、导出、自动取回 </p>
<p><strong>报表与统计： </strong><br />
实时呼叫专案监控台，实时显示所有正在发出的呼叫，正在振铃的呼叫、正在等待接入的呼叫、等待队列长度，名单长度、今天呼叫总数、接通总数、断线总数、座席状态、断线率等<br />
统计总表：<br />
总数 ： 专案总呼叫数、平均通话长度（秒）<br />
断线：总断线数、断线比率、断线呼叫的平均时长（秒）<br />
无法成功连接呼叫（忙、挂机、无应答）：呼叫总数、平均呼叫时长<br />
呼叫处理结果统计：各种呼叫结果的对应呼叫数量<br />
座席统计：每个座席及全部座席的呼叫数量、总通话时长、平均通话时长、平均等待时长<br />
以15分钟为间隔的各类呼叫分布<br />
后端呼叫终座席统计：<br />
呼叫总数、总通话时长、平均通话时长<br />
总断线数、断线比率、平均每次断线呼叫的等待时长<br />
进入队列的总呼叫数、按进入队列呼叫数进行平均的队列长度、按总呼叫数平均的队列长度<br />
按各处理结果状态分类的呼叫数量<br />
按座席分类的呼叫数量、通话时长、平均通话时长<br />
以15分钟为间隔的各类呼叫分布</p>
<p><strong>按每个座席工作绩效详细统计</strong><br />
座席id及姓名<br />
总通话数量、总工作时长<br />
暂停时长、平均暂停时长<br />
等待时长、平均等待时长<br />
通话时长、平均通话时长<br />
结果处理总时长、平均结果处理时长<br />
访问结果明细报表<br />
座席代表姓名<br />
录音下载<br />
调查数据明细<br />
呼叫时间<br />
外呼分机号</p>
<p><strong>拨打情况日报表</strong><br />
日期<br />
按各类结果统计的每日呼叫数量，比如成功、拒绝访问、回呼、不合格等<br />
每日呼出总量<br />
员工拨打情况小时报表、半日报表<br />
座席姓名<br />
提取数据量<br />
成功量、成功率<br />
成功的平均工作时长、总时长</p>
<p><strong>按时间段统计的服务器性能监控报表</strong><br />
该服务器呼入呼出总数量<br />
该服务器总摘机时间<br />
平均、尖峰通道占用数量<br />
平均、尖峰服务器负载<br />
平均用户进程CPU占有比率<br />
平均系统进程CPU占有比率<br />
平均系统空转进程CPU占有比率</p>
<h3  class="related_post_title">关联阅读</h3><ul class="related_post"><li><a href="http://www.cn-cti.com/1592.html" title="基于asterisk的呼叫中心坐席呼叫方式">基于asterisk的呼叫中心坐席呼叫方式</a></li><li><a href="http://www.cn-cti.com/1245.html" title="Asterisk与Cent OS">Asterisk与Cent OS</a></li><li><a href="http://www.cn-cti.com/1062.html" title=" asterisk和普通语音板卡构建的呼叫中心差别"> asterisk和普通语音板卡构建的呼叫中心差别</a></li><li><a href="http://www.cn-cti.com/655.html" title="asterCRM 预拨号功能应用于外呼-呼叫中心">asterCRM 预拨号功能应用于外呼-呼叫中心</a></li><li><a href="http://www.cn-cti.com/1770.html" title="asterisk常用调试监测命令">asterisk常用调试监测命令</a></li><li><a href="http://www.cn-cti.com/1757.html" title="一个做呼叫中心的同行的2010年">一个做呼叫中心的同行的2010年</a></li><li><a href="http://www.cn-cti.com/1756.html" title="平安E家">平安E家</a></li><li><a href="http://www.cn-cti.com/1754.html" title="送水行业呼叫中心解决方案">送水行业呼叫中心解决方案</a></li><li><a href="http://www.cn-cti.com/1714.html" title="物联网技术在居家养老信息系统的应用">物联网技术在居家养老信息系统的应用</a></li><li><a href="http://www.cn-cti.com/1707.html" title="如何对付盗版者（自曝反盗版措施）">如何对付盗版者（自曝反盗版措施）</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.cn-cti.com/1216.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>asterisk和普通语音板卡构建的呼叫中心差别</title>
		<link>http://www.cn-cti.com/1062.html</link>
		<comments>http://www.cn-cti.com/1062.html#comments</comments>
		<pubDate>Mon, 18 May 2009 03:17:19 +0000</pubDate>
		<dc:creator>呆子</dc:creator>
				<category><![CDATA[呼叫中心开发技术]]></category>
		<category><![CDATA[asterisk]]></category>
		<category><![CDATA[Digium]]></category>
		<category><![CDATA[呼叫中心]]></category>

		<guid isPermaLink="false">http://www.cn-cti.com/?p=1062</guid>
		<description><![CDATA[采用asterisk开源软件构建的呼叫中心系统，廉价但可靠]]></description>
			<content:encoded><![CDATA[<p>采用普通语音模拟板卡构建的呼叫中心，需要外线模块，坐席模块</p>
<p>假如一个8路外线8个座席的呼叫中心，需要一块16路的模拟板卡，安装8路外线模块，8路坐席模块。</p>
<p>无论是三汇  还是东进  硬件的价格都不便宜</p>
<p>如果采用 asterisk来构建</p>
<p>则只需要采购一个8路的Digium兼容卡</p>
<p>坐席端用软电话实现即可  一块Digium的8路兼容卡，价格在1500左右。</p>
<p>而一块普通模拟16路语音卡 价格在3000左右。</p>
<p>再者</p>
<p>1  采用 asterisk的系统，布线的时候，可以只部署网线，而不用同时部署电话线。</p>
<p>2 远程坐席是 asterisk的强项，普通语音板卡构建的呼叫中心系统，几乎无法实现</p>
<p>缺点</p>
<p>1  asterisk 构建的系统，只适合小规模。即使采用Digium兼容数字卡，一个系统只能最多接入8个E1。如果需要更多的接入，就要采用集群系统，而采用集群系统，则系统的稳定性成问题。</p>
<p>2  asterisk数字兼容卡，不支持7号信令，只能PRI接入。</p>
<h3  class="related_post_title">关联阅读</h3><ul class="related_post"><li><a href="http://www.cn-cti.com/1592.html" title="基于asterisk的呼叫中心坐席呼叫方式">基于asterisk的呼叫中心坐席呼叫方式</a></li><li><a href="http://www.cn-cti.com/1245.html" title="Asterisk与Cent OS">Asterisk与Cent OS</a></li><li><a href="http://www.cn-cti.com/1216.html" title="基于asterisk的呼叫中心系统VICIDIAL介绍">基于asterisk的呼叫中心系统VICIDIAL介绍</a></li><li><a href="http://www.cn-cti.com/655.html" title="asterCRM 预拨号功能应用于外呼-呼叫中心">asterCRM 预拨号功能应用于外呼-呼叫中心</a></li><li><a href="http://www.cn-cti.com/1770.html" title="asterisk常用调试监测命令">asterisk常用调试监测命令</a></li><li><a href="http://www.cn-cti.com/1757.html" title="一个做呼叫中心的同行的2010年">一个做呼叫中心的同行的2010年</a></li><li><a href="http://www.cn-cti.com/1756.html" title="平安E家">平安E家</a></li><li><a href="http://www.cn-cti.com/1754.html" title="送水行业呼叫中心解决方案">送水行业呼叫中心解决方案</a></li><li><a href="http://www.cn-cti.com/1714.html" title="物联网技术在居家养老信息系统的应用">物联网技术在居家养老信息系统的应用</a></li><li><a href="http://www.cn-cti.com/1707.html" title="如何对付盗版者（自曝反盗版措施）">如何对付盗版者（自曝反盗版措施）</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.cn-cti.com/1062.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IAX 设置详细（zt）</title>
		<link>http://www.cn-cti.com/681.html</link>
		<comments>http://www.cn-cti.com/681.html#comments</comments>
		<pubDate>Sun, 18 Jan 2009 06:35:34 +0000</pubDate>
		<dc:creator>呆子</dc:creator>
				<category><![CDATA[呼叫中心开发技术]]></category>
		<category><![CDATA[asterisk]]></category>
		<category><![CDATA[IAX]]></category>
		<category><![CDATA[VOIP]]></category>

		<guid isPermaLink="false">http://www.cn-cti.com/?p=681</guid>
		<description><![CDATA[IAX设置详细]]></description>
			<content:encoded><![CDATA[<p>两台Asterisk服务器设置步骤如下：<br />
* 设置iax.conf文件，一台设置成为peer模式另外一台设置成为user模式<br />
* 设置user的extensions.conf让他的用户可以从user发送呼叫peer上<br />
* 任意的, 在user上注册peer(当peer是动态IP地址的时候)<br />
* 相反设置以上的步骤, 如果你想实现相互呼叫</p>
<p>===========================================</p>
<p>声明IAX2 user(在peer中)<br />
如果想一个peer能收到呼叫. 必须在peer机器上设置iax.conf识别呼叫来自user.</p>
<p>[username]<br />
type=user<br />
auth=md5<br />
secret=secretword<br />
context=iax2users</p>
<p>context非常重要,他用来设置user新来的呼叫路由如何处理.</p>
<p>这个步骤将允许远程的user设备注册到peer上.如果你想限制请在peer的iax.conf里增加限制和许可的设置.</p>
<p>=================================</p>
<p>声明IAX2 peer(在user中)<br />
从一个user产生呼叫的时候必须在user的iax.conf里设置到peer的验证.</p>
<p>[peername]<br />
type=peer<br />
host=hostname.domain.tld (如果用&#8221;dynamic&#8221;就要先进行一下register到peer)<br />
auth=md5<br />
secret=secretword                  ; 如果拨号的时候填写这里就不需要再填写<br />
username=username-at-the-peer      ; 如果拨号的时候填写这里就不需要再填写</p>
<p>请注意:</p>
<p>* type=user 表示你将通过这个号码将验证一个进来的呼叫<br />
* type=peer 表示你将通过这个号码发送呼叫给某人<br />
* type=friend 表示两个功能都有</p>
<p>Using type=friend makes life easier, but treat it as a shortcut. If you add both type=friend and host=hostname, domain.ext you limit the hosts your peer can place calls from, which may not be what you want.</p>
<p>现在完成第一步和第二步之后我们只需要考虑设置拨号方案了.读下面的例子看看怎么做吧.</p>
<p>================================<br />
连接到拨号方案</p>
<p>示例1</p>
<p>extensions.conf:<br />
exten =&gt; _7XXX,1,Dial(IAX2/myserver:passwordA@IAXserverA/${EXTEN:1},30,r)<br />
exten =&gt; _7XXX,2,Dial(SIP/myserver:passwordA@SIPserverA/${EXTEN:1},30,r)<br />
exten =&gt; _7XXX,3,Congestion</p>
<p>exten =&gt; _8XXX,1,Dial(IAX2/myserver:passwordB@IAXserverB/${EXTEN:1},30,r)<br />
exten =&gt; _8XXX,2,Dial(SIP/myserver:passwordB@SIPserverB/${EXTEN:1},30,r)<br />
exten =&gt; _8XXX,3,Congestion</p>
<p>记得要在iax.conf和sip.conf设置[IAXserverA]的这些定义.这个示例当出现问题后使用SIP做逃逸系统.注意你的用户名和密码可能会被CDR记录下来(你需要使用第二个示例的方法来实现隐藏).</p>
<p>示例2<br />
这个示例将不会把用户名同密码显示在CDR当中</p>
<p>注意：在1.0.9版这个方法仍然不是Asterisk标准分支,所以仍然需要用户名和密码在dial字符串中<br />
exten =&gt; _7XXX,1,Dial(IAX2/username:pass@serverB/${EXTEN:1},30,r)</p>
<p>(serverA)<br />
iax.conf<br />
[general]<br />
register =&gt; &lt;username&gt;:&lt;password&gt;@&lt;serverB hostname or IP&gt;</p>
<p>[serverB]<br />
type=friend<br />
user=&lt;username&gt;<br />
secret=&lt;password&gt;<br />
host=&lt;serverB hostname or IP&gt;</p>
<p>extensions.conf<br />
exten =&gt; _7XXX,1,Dial(IAX2/serverB/${EXTEN:1},30,r)<br />
exten =&gt; _7XXX,2,Congestion</p>
<p>(serverB)<br />
iax.conf<br />
[serverA]<br />
type=friend<br />
user=&lt;username&gt;<br />
secret=&lt;password&gt;<br />
host=&lt;dynamic&gt; | &lt;serverA hostname or IP&gt;</p>
<p>extensions.conf<br />
exten =&gt; _8XXX,1,Dial(IAX2/serverA/${EXTEN:1},30,r)<br />
exten =&gt; _8XXX,2,Congestion</p>
<p>在一些时候serverA和serverB就是在对方服务器上的用户</p>
<p>示例3<br />
在extensions.conf使用switch对象你可以连接两台服务器或是其他服务器的连接方案。在这个方案中我们自己的serverC将连接ServerA或serverB:</p>
<p>[default]<br />
exten =&gt; _801XXX,1,Goto,srvA|${EXTEN}|1<br />
exten =&gt; _802XXX,1,Goto,srvB|${EXTEN}|1</p>
<p>[srvA]<br />
exten =&gt; _801XXX,1,StripMSD,3<br />
exten =&gt; _XXX,2,Goto,1<br />
switch =&gt; IAX/serverA</p>
<p>[srvB]<br />
exten =&gt; _802XXX,1,StripMSD,3<br />
exten =&gt; _XXX,2,Goto,1<br />
switch =&gt; IAX/serverB</p>
<p>注意：你要注意不能建立死循环serverA到serverB并且serverB又到serverA!同样考虑使用iax.conf中设置autokill来杀掉被悬起长时间进程(当远程服务器无法连接)</p>
<p>示例4<br />
extensions.conf: (主服务器)</p>
<p>[outbound]<br />
switch =&gt; IAX2/master:secret@iax-gw1.company.net/outbound</p>
<p>iax.conf (主服务器):<br />
[slave]<br />
type=user<br />
auth=plaintext<br />
context=outbound<br />
secret=secret<br />
host=dynamic<br />
callerid=&#8221;slave&#8221;<br />
trunk=yes<br />
notransfer=yes</p>
<p>[slave]<br />
type=peer<br />
auth=plaintext<br />
context=outbound-nuphone<br />
secret=secret<br />
host=dynamic<br />
trunk=yes<br />
notransfer=yes</p>
<p>extensions.conf (从服务器):</p>
<p>[assigned-dids]<br />
; uncomment a dial mechanism, first one goes to specific extension<br />
; other one goes to dial parameter s.</p>
<p>;exten =&gt; 7046446999,1,Dial,IAX2/master@slave/${EXTEN}<br />
;exten =&gt; 7046446999,1,Dial,IAX2/master@slave</p>
<p>iax.conf (从服务器):</p>
<p>register =&gt; slave:secret@iax-gw1.company.net</p>
<p>[master]<br />
type=peer<br />
host=iax-gw1.company.net<br />
secret=secret<br />
context=outbound<br />
trunk=yes<br />
canreinvite=no</p>
<p>[master]<br />
type=user<br />
secret=secret<br />
context=acontext<br />
trunk=yes<br />
canreinvite=no</p>
<p>===========================<br />
关于register命令<br />
当peer的ip并不明确，用户将不知道如何发送呼叫信息(当一个办公室用户呼叫 在家里工作的peer，因为在家里工作的peer只有一个动态IP或他是在NAT设置) 这个时候peer要注册到user及时的把自己的IP告诉user:</p>
<p>在peer的iax.conf的[general]上怎么写:</p>
<p>register =&gt; user:password@hostname.domain.ext</p>
<p>因为不断更新所以user总是知道peer的ip是否改变了.</p>
<p>register命令仅仅被用在动态IP地址的情况下,如果两台服务器都是静态IP地址你不需要做任何设置.</p>
<h3  class="related_post_title">关联阅读</h3><ul class="related_post"><li><a href="http://www.cn-cti.com/679.html" title="linux下面配置IAX（ZT）">linux下面配置IAX（ZT）</a></li><li><a href="http://www.cn-cti.com/664.html" title="asterisk电子教程">asterisk电子教程</a></li><li><a href="http://www.cn-cti.com/662.html" title="使用IAX来搭建您的VOIP系统">使用IAX来搭建您的VOIP系统</a></li><li><a href="http://www.cn-cti.com/1770.html" title="asterisk常用调试监测命令">asterisk常用调试监测命令</a></li><li><a href="http://www.cn-cti.com/1592.html" title="基于asterisk的呼叫中心坐席呼叫方式">基于asterisk的呼叫中心坐席呼叫方式</a></li><li><a href="http://www.cn-cti.com/1561.html" title="asterisk兼容数字卡上面调试中国7号信令（ss7）">asterisk兼容数字卡上面调试中国7号信令（ss7）</a></li><li><a href="http://www.cn-cti.com/1356.html" title="IP分布式呼叫中心坐席电话该用硬电话还是软电话？">IP分布式呼叫中心坐席电话该用硬电话还是软电话？</a></li><li><a href="http://www.cn-cti.com/1348.html" title="asterisk用于CTI开发话务批发平台的需求">asterisk用于CTI开发话务批发平台的需求</a></li><li><a href="http://www.cn-cti.com/1245.html" title="Asterisk与Cent OS">Asterisk与Cent OS</a></li><li><a href="http://www.cn-cti.com/1219.html" title="我将公司电话系统拓展到了外地">我将公司电话系统拓展到了外地</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.cn-cti.com/681.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>linux下面配置IAX（ZT）</title>
		<link>http://www.cn-cti.com/679.html</link>
		<comments>http://www.cn-cti.com/679.html#comments</comments>
		<pubDate>Sun, 18 Jan 2009 06:28:36 +0000</pubDate>
		<dc:creator>呆子</dc:creator>
				<category><![CDATA[呼叫中心开发技术]]></category>
		<category><![CDATA[asterisk]]></category>
		<category><![CDATA[IAX]]></category>
		<category><![CDATA[VOIP]]></category>

		<guid isPermaLink="false">http://www.cn-cti.com/?p=679</guid>
		<description><![CDATA[asterisk吸引了很多人的兴趣，本文主要介绍如何在一个LINUX服务器下面配置IAX通信]]></description>
			<content:encoded><![CDATA[<p>最近稍微了解了一下IAX协议，全称为Inter-Asterisk eXchange，即Asterisk内部交换协议。和SIP相类似，它也是一个传输协议。但是IAX的一个比较特殊的地方则是它仅仅只使用一个UDP端口（4569）来传输通道信号以及RTP流。也由于单端口可能更集中的关系，因此IAX更加适合NAT环境以及对防火墙的穿透。现在IAX版本为IAX2版本，版本1已经放弃淘汰了。所以目前在很多地方看到所提到的IAX协议，其实默认都是说的是IAX2协议。</p>
<p>另外，IAX还有一个特点，就是它可以将多个会话集中在一个数据流里传输，实际上的做法就是将多个数据流用一个数据报报头表示和概括。也就说IAX拥有中继Trunk能力，并也因为这个原因，IAX可以在中继流量的时候在一定程度上减小对带宽的消耗和需求。</p>
<p>这一话的目的也是非常简单，没有复杂的配置，仅仅是为了实现让个IAX的终端能够注册上Asterisk并且能够互相呼叫并和对方通话的功能。</p>
<p>系统环境：CentOS 5.0 Linux操作系统</p>
<p>Asterisk 1.4.5版本</p>
<p>IAX终端为iaxLite SoftPhone</p>
<p>一.修改配置文件</p>
<p>1.设定IAX配置文件：</p>
<p>在Asterisk当中IAX的特性配置文件都保存在iax.conf这个独立的配置文件当中。</p>
<p>[root@asterisk-test1 ~]# vi /etc/asterisk/iax.conf</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>与Asterisk其他配置文件一样，iax.conf中也是采用分段配置的结构，并且也是使用分号“;”来注释掉配置项的。</p>
<p>[general]</p>
<p>全局配置段“general”里面可以写上对IAX全局的全局配置信息，这里配置的条目将影响整个Asterisk中IAX的性能。</p>
<p>bindport=4569</p>
<p>指定IAX2协议的监听端口，这里我使用默认的4569。</p>
<p>bindaddr=0.0.0.0</p>
<p>指定IAX2协议监听的网络接口。这里我设定为0.0.0.0表示对系统的所有网络接口进行监听。</p>
<p>;iaxcompat=yes</p>
<p>设定IAX的协作性和兼容性。如果打算使用分层式交换或者其他一些方案，而这些都会在拨号方案查找时造成延迟的时候，应该将这项设定为“yes”。启用该项会对系统性能造成一个小小的冲击。这个选项会造成Asterisk在收到一个IAX拨号规则请求时衍生一个分开独立的线程，而不是傻堵在那里等待一个回应。这里我采用默认的“yes”。</p>
<p>;nochecksums=no</p>
<p>设定关闭UDP校验。如果设定“yes”关闭UDP校验的话，那么在你的系统上将不会为UDP计算以及检察校验和。这里我采用默认的“no”，表示启用UDP校验。</p>
<p>;delayreject=yes</p>
<p>设定拒绝硬直。为了提高系统安全以及防止暴力密码破解攻击，开启拒绝硬直功能后，验证失败的对象必须要经过一段时间的硬直状态才能进行下一次验证的尝试。这里我也采用默认的“yes”，表示开启拒绝硬直功能。</p>
<p>;amaflags=default</p>
<p>设定AMA标记类型。AMA的全称是“Automated Message Accounting”，自动消息记帐。可以为IAX呼叫指定一个全局的默认AMA标记类型，这些标记将会在生成CDR时被用到，而这些记录的类型必须是以下种类：</p>
<p>（1）default: 默认，设定为系统默认。这里我使用默认的“Default”类型。</p>
<p>（2）omit: 忽略，不记录呼叫。</p>
<p>（3）billing: 计费，打上标记作为计费用。</p>
<p>（4）documentation: 文档说明，打上标记作为文档说明。</p>
<p>;adsi=no</p>
<p>设定是否开启ADSI功能。所谓ADSI全称就是“Analog Display Services Interface”即模拟显示服务接口，大致意思就是一种让模拟电话也能处理数字信息服务的接口，就像那种带有屏幕而又通过电话线连接的电话机，这些电话机上面可以支持比如发短信或者其他的服务功能，但是这些都需要你平台支持ADSI服务接口。现在当然不需要啦，所以我选择默认的“no”，关闭掉它。</p>
<p>;accountcode=lss0101</p>
<p>设定帐户代码。指定一个默认全局的帐户代码，也可以为每个帐户指定各自的帐户代码，这将会记录到CDR当中去。这里暂时不涉及到计费以及CDR，所以使用默认的注释掉该项。</p>
<p>;language=en</p>
<p>设定对用户的全局默认语言种类，也可以为每个帐户指定各自的语言种类。如果忽略该项的话，就使用默认的英语语言。这里使用默认的英语。</p>
<p>;mohsuggest=default</p>
<p>;mohinterpret=default</p>
<p>设定电话挂起的时候通道里播放的内容。如果是“default”的话，那么当电话挂起的时候，通道里就会播放拨号规则里指定的音乐。如果是“passthough”的话，就会用消息信号代替。这里使用默认的“default”。</p>
<p>接下来是编解码设定部分：</p>
<p>bandwidth=low</p>
<p>设定带宽。指定低、中、高带宽来控制编解码。这里使用默认的低带宽。</p>
<p>disallow=all</p>
<p>这里首先关闭所有的编解码。目的是为了只开放指定允许的编解码。</p>
<p>allow=gsm</p>
<p>然后允许GSM的编解码。在IAX当中使用GSM编解码比较多，因为比较节省带宽。</p>
<p>allow=g729</p>
<p>然后再允许G.729的编解码。G.729也是非常优秀的编解码，但是这存在版权问题，貌似在没有获得许可的情况下，你只能用G.729进行解码而不能编码，否则要负法律责任的哟。</p>
<p>jitterbuffer=no</p>
<p>设定抗抖动缓冲。设定是否要全局缓冲，在不稳定的网络环境下应该启用，一般情况不需要。因为终端设备会对抖动处理缓冲。使用默认的“no”。</p>
<p>forcejitterbuffer=no</p>
<p>设定强制抗抖动缓冲。一般来说应该是在通信通道上做抗抖动的缓冲，而不是在交换系统局端上作，因为终端设备会自己处理抖动缓冲，所以一般也不需要。使用默认的“no”。</p>
<p>;maxjitterbuffer=1000</p>
<p>设定最大抗抖动缓冲。单位是毫秒，设定得合适会使抖动问题得到改善，设定过大会造成额外的延迟。</p>
<p>;maxjitterinterps=10</p>
<p>设定最大抖动补偿。设定在一次返回列中抗抖动缓冲应该返回的补偿帧的最大数量。</p>
<p>;resyncthreshold=1000</p>
<p>设定重新同步阀值。当抗抖动缓冲注意到一个巨大的改变可能造成持续好几帧发生延迟的时候，它就会去重新同步。设定“-1”表示关闭重新同步功能。</p>
<p>至于IAX中继设定部分，这里就不详细展开交待了。</p>
<p>;trunkfreq=20</p>
<p>;trunktimestamps=yes</p>
<p>;authdebug=no</p>
<p>;regcontext=iaxregistrations</p>
<p>autokill=yes</p>
<p>;rtcachefriends=yes</p>
<p>;rtupdate=yes</p>
<p>;rtautoclear=yes</p>
<p>;rtignoreregexpire=yes</p>
<p>接下来是IAX对象设定部分：</p>
<p>[iax](!)</p>
<p>这里设定的是iax小节，后面的“（!）”表示它是一个属性抽象类，它本身不是对象实例，却定义了很多属性值，提供其他实体来继承它的属性。</p>
<p>type=friend</p>
<p>指定类型为Friend“友端”，即可以对Asterisk进行呼叫也可以被Asterisk呼叫的这种双向类型终端。</p>
<p>其他的还有Peer“对端”，即只能作为被Asterisk呼叫的类型终端。</p>
<p>以及的还有User“用户端”，即只能作为呼叫Asterisk的类型终端。</p>
<p>host=dynamic</p>
<p>指定终端主机位置。这里可以取2种值：</p>
<p>static“静态”表示服务的终端对象的IP是固定已知的；</p>
<p>dynamic“动态”表示服务的终端对象IP是动态的不确定的，每次要联系Asterisk的话就必须要注册上来。</p>
<p>port=4569</p>
<p>设定IAX监听端口。其实和全局里设定的是一样的话就可以省去。</p>
<p>context=demo2</p>
<p>指定该段内的对象所使用的拨号规则，全部对应extensions.conf文件中的[demo2]小节内定义的规则。</p>
<p>[8801](iax)</p>
<p>这里定义了名字为“8801”的小节，后面跟“（iax）”，这表示该段定义的对象将继承[iax]定义段内的属性。</p>
<p>username=8801</p>
<p>指定该对象的用户名。</p>
<p>secret=123456</p>
<p>指定该对象的密码。</p>
<p>[8802](iax)</p>
<p>username=8802</p>
<p>sercret=123456</p>
<p>同样，对象8802也继承sip抽象类中的公共属性。</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>2.配置拨号规则文件</p>
<p>[root@asterisk-test1 ~]# vi /etc/asterisk/extensions.conf</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>配置方式也是同样，通过定义每一个小节，再在每一个小节中定义详细的属性。</p>
<p>这里比较重要的是“general”和“globals”这两个默认就有的小节，也是起到“全局属性”的作用，请根据实际情况确定，但请不要删除这两个小节。其他的小节都是可以订制、删除修改的。</p>
<p>[general]</p>
<p>static=yes</p>
<p>writeprotect=no</p>
<p>autofallthrough=no</p>
<p>clearglobalvars=no</p>
<p>priorityjumping=no</p>
<p>[globals]</p>
<p>CONSOLE=Console/dsp</p>
<p>IAXINFO=guest                                    ; IAXtel username/password</p>
<p>TRUNK=Zap/g2                                     ; Trunk interface</p>
<p>TRUNKMSD=1                                       ; MSD digits to strip (usually 1 or 0)</p>
<p>其他的不重要的小节我都删除了，这里我自定义一个简单的拨号规则。小节取名为“demo2”，与iax.conf里面的context项中指定的规则小节名对应。</p>
<p>[demo2]</p>
<p>exten =&gt; _88.,1,Dial(IAX2/${EXTEN},20,r)</p>
<p>(1)规则就一条，使得8801和8802可以互相拨打。当中的格式简要讲述一下。更多的请参考Asterisk的手册，这里不详细展开。</p>
<p>(2)开头部分“exten =&gt;”表示，也可以用“exten =”表示。并且在一个小节内可以定义多条exten语句。</p>
<p>(3)之后的“_88.”表示匹配上所有“88”开头的拨号，“.”表示不限制长度的任意字符。</p>
<p>(4)然后的“1”表示优先级，我喜欢称作为“执行次序”。“1”表示第一步执行的意思，如果后续还需要执行其他动作的话，可以继续写多条exten语句，并且用递增执行次序依次设计下去。</p>
<p>(5)接着的“Dail()”表示“执行动作”，这里是表示拨号的执行动作。更规范的说，这个是APP应用程序。</p>
<p>(6)括号当中又分成3个部分。第一个IAX2表示拨号动作中拨向的通道是IAX2协议的通道。${EXTEN}则一个变量，其值就是用户实际拨打的号码。如果你拨打8801那么${EXTEN}的值就是8801。</p>
<p>(7)括号内的“20”，表示等待时间单位秒，如果有多个执行次序，即一组拨号规则的话，如果过了20秒，就跳跃执行次序（跳跃的幅度是101个优先级）。</p>
<p>(8)最后的“r”表示强行播放振铃。在拨打对方等待对方接通的时候，就能听到回振铃音。</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>二.测试：</p>
<p>1.进入Asterisk控制台刷新配置。</p>
<p>[root@asterisk-test1 ~]# /usr/local/asterisk/sbin/asterisk -crvvvvv</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>Asterisk 1.4.5, Copyright (C) 1999 &#8211; 2007 Digium, Inc. and others.</p>
<p>Created by Mark Spencer &lt;markster@digium.com&gt;</p>
<p>Asterisk comes with ABSOLUTELY NO WARRANTY; type &#8216;core show warranty&#8217; for details.</p>
<p>This is free software, with components licensed under the GNU General Public</p>
<p>License version 2 and other licenses; you are welcome to redistribute it under</p>
<p>certain conditions. Type &#8216;core show license&#8217; for details.</p>
<p>=========================================================================</p>
<p>== Parsing &#8216;/etc/asterisk/asterisk.conf&#8217;: Found</p>
<p>== Parsing &#8216;/etc/asterisk/extconfig.conf&#8217;: Found</p>
<p>Connected to Asterisk 1.4.5 currently running on asterisk-test1 (pid = 1929)</p>
<p>Verbosity is at least 5</p>
<p>asterisk-test1*CLI&gt; reload</p>
<p>当Asterisk需要完全重载所有配置的时候，就需要在控制台当中使用reload命令，而没有必要去重新启动服务。重新载入当中会产生大量信息,这里只贴出一部分。</p>
<p>&#8230;&#8230;</p>
<p>&#8230;&#8230;</p>
<p>&#8211; Reloading module &#8216;chan_iax2.so&#8217; (Inter Asterisk eXchange (Ver 2))</p>
<p>== Parsing &#8216;/etc/asterisk/iax.conf&#8217;: Found</p>
<p>[Oct 30 13:48:44] NOTICE[4395]: chan_iax2.c:9071 set_config: Ignoring bindport on reload</p>
<p>[Oct 30 13:48:44] NOTICE[4395]: chan_iax2.c:9130 set_config: Ignoring bindaddr on reload</p>
<p>这个部分是重载IAX配置以及模块。</p>
<p>&#8230;..</p>
<p>&#8230;..</p>
<p>[Oct 30 13:48:44] NOTICE[4395]: pbx_ael.c:3984 pbx_load_module: AEL load process: compiled config file name &#8216;/etc/asterisk/extensions.ael&#8217;.</p>
<p>[Oct 30 13:48:44] NOTICE[4395]: pbx_ael.c:3987 pbx_load_module: AEL load process: merged config file name &#8216;/etc/asterisk/extensions.ael&#8217;.</p>
<p>[Oct 30 13:48:44] WARNING[4395]: pbx.c:6236 ast_context_verify_includes: Context &#8216;ael-local&#8217; tries includes nonexistent context &#8216;ael-parkedcalls&#8217;</p>
<p>[Oct 30 13:48:44] WARNING[4395]: pbx.c:6236 ast_context_verify_includes: Context &#8216;ael-dundi-e164-local&#8217; tries includes nonexistent context</p>
<p>&#8216;ael-dundi-e164-canonical&#8217;</p>
<p>[Oct 30 13:48:44] WARNING[4395]: pbx.c:6236 ast_context_verify_includes: Context &#8216;ael-dundi-e164-local&#8217; tries includes nonexistent context</p>
<p>&#8216;ael-dundi-e164-customers&#8217;</p>
<p>[Oct 30 13:48:44] WARNING[4395]: pbx.c:6236 ast_context_verify_includes: Context &#8216;ael-dundi-e164-local&#8217; tries includes nonexistent context</p>
<p>&#8216;ael-dundi-e164-via-pstn&#8217;</p>
<p>[Oct 30 13:48:44] NOTICE[4395]: pbx_ael.c:3990 pbx_load_module: AEL load process: verified config file name &#8216;/etc/asterisk/extensions.ael&#8217;.</p>
<p>&#8211; Reloading module &#8216;pbx_dundi.so&#8217; (Distributed Universal Number Discovery (DUNDi))</p>
<p>== Parsing &#8216;/etc/asterisk/dundi.conf&#8217;: Found</p>
<p>== MGCP Listening on 0.0.0.0:2727</p>
<p>== Using TOS bits 0</p>
<p>这些是重载拨号规则部分。</p>
<p>&#8230;&#8230;</p>
<p>&#8230;&#8230;</p>
<p>独立重新载入IAX，这样不大会影响Asterisk其他部分。</p>
<p>asterisk-test1*CLI&gt; iax2 reload</p>
<p>== Parsing &#8216;/etc/asterisk/iax.conf&#8217;: Found</p>
<p>[Oct 30 14:40:54] NOTICE[4704]: chan_iax2.c:9071 set_config: Ignoring bindport on reload</p>
<p>[Oct 30 14:40:54] NOTICE[4704]: chan_iax2.c:9130 set_config: Ignoring bindaddr on reload</p>
<p>== Parsing &#8216;/etc/asterisk/users.conf&#8217;: Found</p>
<p>&#8211; Seeding &#8216;8801&#8242; at 192.168.0.199:4569 for 60</p>
<p>&#8211; Seeding &#8216;8802&#8242; at 192.168.0.149:4569 for 60</p>
<p>== Loaded firmware &#8216;iaxy.bin&#8217;</p>
<p>== Parsing &#8216;/etc/asterisk/iaxprov.conf&#8217;: Found</p>
<p>&#8211; Loaded provisioning template &#8216;default&#8217;</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>2.注册终端</p>
<p>在这次测试当中我使用的是iaxLite SoftPhone。注册帐户分别是8801和8802，密码123456。</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>&#8211; Registered IAX2 &#8216;8801&#8242; (AUTHENTICATED) at 192.168.0.199:4569</p>
<p>[Oct 30 14:06:49] NOTICE[2018]: chan_iax2.c:5699 update_registry: Restricting registration for peer &#8216;8801&#8242; to 60 seconds (requested 300)</p>
<p>这个是8801注册上来后在Asterisk控制台上看到的信息。</p>
<p>&#8211; Registered IAX2 &#8216;8802&#8242; (AUTHENTICATED) at 192.168.0.149:4569</p>
<p>[Oct 30 14:07:04] NOTICE[2020]: chan_iax2.c:5699 update_registry: Restricting registration for peer &#8216;8802&#8242; to 60 seconds (requested 300)</p>
<p>这个是8802注册上来后在Asterisk控制台上看到的信息。</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>3.察看注册信息</p>
<p>asterisk-test1*CLI&gt; iax2 show peers</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>Name/Username     Host                  Mask              Port           Status</p>
<p>8802/8802         192.168.0.149    (D)   255.255.255.255   4569           Unmonitored</p>
<p>8801/8801         192.168.0.199    (D)   255.255.255.255   4569           Unmonitored</p>
<p>2 iax2 peers [0 online, 0 offline, 2 unmonitored]</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>4.互相呼叫</p>
<p>（1）8801呼叫8802，8802接通并且由8801主叫方挂断。</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>&#8211; Remote UNIX connection</p>
<p>&#8211; Accepting AUTHENTICATED call from 192.168.0.199:</p>
<p>从通过验证端192.168.0.199发起呼叫。</p>
<p>&gt; requested format = g729,</p>
<p>请求使用的编解码是G.729。</p>
<p>&gt; requested prefs = (),</p>
<p>&gt; actual format = gsm,</p>
<p>实际使用格式为GSM。</p>
<p>&gt; host prefs = (gsm|g729),</p>
<p>&gt; priority = mine</p>
<p>&#8211; Executing [8802@demo2:1] Dial(&#8220;IAX2/8801-3&#8243;, &#8220;IAX2/8802|20|r&#8221;) in new stack</p>
<p>按照拨号方案demo2来执行拨号8802。</p>
<p>&#8211; Called 8802&gt;</p>
<p>被叫方8802</p>
<p>&#8211; Call accepted by 192.168.0.149 (format gsm)</p>
<p>呼叫被192.168.0.149接受了，格式为GSM。</p>
<p>&#8211; Format for call is gsm</p>
<p>呼叫格式为GSM。</p>
<p>&#8211; IAX2/8802-6 is ringing</p>
<p>用户8801呼叫用户8802，编码是GSM，并且8802已经在振铃。</p>
<p>&#8211; IAX2/8802-6 answered IAX2/8801-5</p>
<p>用户8802应答了用户8801。</p>
<p>&#8211; Channel &#8216;IAX2/8801-5&#8242; ready to transfer</p>
<p>通道IAX2/8801-5已经准备好传输。</p>
<p>&#8211; Channel &#8216;IAX2/8802-6&#8242; ready to transfer</p>
<p>通道IAX2/8802-6也已经准备好传输。</p>
<p>&#8211; Releasing IAX2/8802-6 and IAX2/8801-5</p>
<p>释放IAX2/8802-6以及IAX2/8801-5通道建立。</p>
<p>== Spawn extension (demo2, 8802, 1) exited non-zero on &#8216;IAX2/8801-5&#8242;</p>
<p>&#8211; Hungup &#8216;IAX2/8801-5&#8242;</p>
<p>最后由8801-5挂断连接。</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>（2）8802呼叫8801，8801接通。</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>&#8211; Remote UNIX connection</p>
<p>&#8211; Accepting UNAUTHENTICATED call from 192.168.0.149:</p>
<p>&gt; requested format = g729,</p>
<p>&gt; requested prefs = (),</p>
<p>&gt; actual format = gsm,</p>
<p>&gt; host prefs = (gsm|g729),</p>
<p>&gt; priority = mine</p>
<p>&#8211; Executing [8801@demo2:1] Dial(&#8220;IAX2/8802-6&#8243;, &#8220;IAX2/8801|20|r&#8221;) in new stack</p>
<p>&#8211; Called 8801</p>
<p>&#8211; Call accepted by 192.168.0.199 (format gsm)</p>
<p>&#8211; Format for call is gsm</p>
<p>&#8211; IAX2/8801-7 is ringing</p>
<p>&#8211; IAX2/8801-7 answered IAX2/8802-6</p>
<p>&#8211; Channel &#8216;IAX2/8801-7&#8242; ready to transfer</p>
<p>&#8211; Channel &#8216;IAX2/8802-6&#8242; ready to transfer</p>
<p>&#8211; Releasing IAX2/8802-6 and IAX2/8801-7</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>三.问题：</p>
<p>通是通了，通话也没有什么问题，但是还有几个地方不是非常明白：</p>
<p>1.口令错误的终端照样可以以（UNAUTHENTICATIED）的方式注册到Asterisk上并且还能呼叫连接。</p>
<p>2.被叫端不能主动挂断电话。</p>
<p>3.有个别几通电话，主叫方已经断线了，被叫方竟然还显示自己是连接状态并且挂不断。</p>
<p>目前还没有解决这些问题，等解决了把原因以及解决方法帖上。</p>
<p>最后要提一个比较有意思的地方，IAX的正确读法好像应该是“eeks”，而不是字面上那样读成“ai-ei-eks”。</p>
<p>读错的人，会被老鸟嘲笑。</p>
<h3  class="related_post_title">关联阅读</h3><ul class="related_post"><li><a href="http://www.cn-cti.com/681.html" title="IAX 设置详细（zt）">IAX 设置详细（zt）</a></li><li><a href="http://www.cn-cti.com/664.html" title="asterisk电子教程">asterisk电子教程</a></li><li><a href="http://www.cn-cti.com/662.html" title="使用IAX来搭建您的VOIP系统">使用IAX来搭建您的VOIP系统</a></li><li><a href="http://www.cn-cti.com/1770.html" title="asterisk常用调试监测命令">asterisk常用调试监测命令</a></li><li><a href="http://www.cn-cti.com/1592.html" title="基于asterisk的呼叫中心坐席呼叫方式">基于asterisk的呼叫中心坐席呼叫方式</a></li><li><a href="http://www.cn-cti.com/1561.html" title="asterisk兼容数字卡上面调试中国7号信令（ss7）">asterisk兼容数字卡上面调试中国7号信令（ss7）</a></li><li><a href="http://www.cn-cti.com/1356.html" title="IP分布式呼叫中心坐席电话该用硬电话还是软电话？">IP分布式呼叫中心坐席电话该用硬电话还是软电话？</a></li><li><a href="http://www.cn-cti.com/1348.html" title="asterisk用于CTI开发话务批发平台的需求">asterisk用于CTI开发话务批发平台的需求</a></li><li><a href="http://www.cn-cti.com/1245.html" title="Asterisk与Cent OS">Asterisk与Cent OS</a></li><li><a href="http://www.cn-cti.com/1219.html" title="我将公司电话系统拓展到了外地">我将公司电话系统拓展到了外地</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.cn-cti.com/679.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>asterisk电子教程</title>
		<link>http://www.cn-cti.com/664.html</link>
		<comments>http://www.cn-cti.com/664.html#comments</comments>
		<pubDate>Sun, 18 Jan 2009 02:40:00 +0000</pubDate>
		<dc:creator>呆子</dc:creator>
				<category><![CDATA[呼叫中心开发技术]]></category>
		<category><![CDATA[asterisk]]></category>
		<category><![CDATA[VOIP]]></category>

		<guid isPermaLink="false">http://www.cn-cti.com/?p=664</guid>
		<description><![CDATA[asterisk教程]]></description>
			<content:encoded><![CDATA[<p>asterisk是开源的VOIP软件。</p>
<p>使用该系统可以很快搭建VOIP系统，如果使用配套的硬件卡，就可以与TDM系统连接，从而可以和手机、固定电话互通。</p>
<p>目前，杭州三汇已经开发出配套的硬件卡。</p>
<p>该资料是国内一些热心的朋友翻译的。</p>
<p>感谢他们</p>
<p><a href="http://www.cn-cti.com/Asterisk.pdf">pdf下载</a></p>
<h3  class="related_post_title">关联阅读</h3><ul class="related_post"><li><a href="http://www.cn-cti.com/681.html" title="IAX 设置详细（zt）">IAX 设置详细（zt）</a></li><li><a href="http://www.cn-cti.com/679.html" title="linux下面配置IAX（ZT）">linux下面配置IAX（ZT）</a></li><li><a href="http://www.cn-cti.com/1770.html" title="asterisk常用调试监测命令">asterisk常用调试监测命令</a></li><li><a href="http://www.cn-cti.com/1592.html" title="基于asterisk的呼叫中心坐席呼叫方式">基于asterisk的呼叫中心坐席呼叫方式</a></li><li><a href="http://www.cn-cti.com/1561.html" title="asterisk兼容数字卡上面调试中国7号信令（ss7）">asterisk兼容数字卡上面调试中国7号信令（ss7）</a></li><li><a href="http://www.cn-cti.com/1356.html" title="IP分布式呼叫中心坐席电话该用硬电话还是软电话？">IP分布式呼叫中心坐席电话该用硬电话还是软电话？</a></li><li><a href="http://www.cn-cti.com/1348.html" title="asterisk用于CTI开发话务批发平台的需求">asterisk用于CTI开发话务批发平台的需求</a></li><li><a href="http://www.cn-cti.com/1245.html" title="Asterisk与Cent OS">Asterisk与Cent OS</a></li><li><a href="http://www.cn-cti.com/1219.html" title="我将公司电话系统拓展到了外地">我将公司电话系统拓展到了外地</a></li><li><a href="http://www.cn-cti.com/1216.html" title="基于asterisk的呼叫中心系统VICIDIAL介绍">基于asterisk的呼叫中心系统VICIDIAL介绍</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.cn-cti.com/664.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

