Ubuntu Asterisk安装手册
- 格式:docx
- 大小:247.21 KB
- 文档页数:6
Asterisk系统的安装与配置一、安装包装备asterisk1.8.7.1.tar.gzdahdi-linux-complete-2.6.1+2.6.1.tar.gzdahdi是Asterisk管理硬件的插件(中间件)二、安装dahdi 安装时需要下载东西,所以需要互联网1.tar zxvf dahdi-linux-complete-2.6.1+2.6.1.tar.gz2.cd dahdi-linux-complete-2.6.1+2.6.13.make all4.make install5.make config ;生成启动脚本/etc/init.d/dahdi6./etc/init.d/dahdi restart ;启动dahdi7.chkconfig dahdi on ;检查编译DAHDI时CONFLICTING TYPES FOR ‘BOOL’解决办法,google上面有,说是linux版本宏引起的。
三、安装asterisk1.tar zxvf asterisk1.8.7.1.tar.gz2.cd asterisk1.8.7.13../configure --build=i3864.;指定安装路径 ./configure --prefix=/usr/local5.make menuselect ;在配置界面选中meete应用6.make ;编译7.make install 安装Asterisk8.make samples ;安装配置文件模版/etc/asterisk下9.make progdocs ;安装Asterisk程序文档10.asterisk 启动四、配置SIP通道默认语言 /etc/asterisk/sip.conf[general]language=cn/enbindaddr=0.0.0.0 服务器IP五、配置基本SIP账户 /etc/asterisk/sip.conf1.CLI命令sip show userssip show peerssip show settingssip set debug on/offsip reload2.分机号码模板[SIPPHONE](!)type=friend 呼入呼出均可host=dynamic 分机号注册时获取contex=geeyavoip ; 分机号呼入时使用的上下文extensions.conf中的上下文nat=no 不支持natqualify=20003.使用号码模板定义分机号[301](SIPPHONE) ;继承SIPPHONE模板username=301accountcode=301directrtpsetup=yes aster工作在proxy,不修改sdp实现rtp透传;secret=301 ;无需密码则注释掉这句;directmidia=yes 媒体穿越nat NAT=yes;canreinvite = yes 与上面一行等效的to disable re-invites if you had NAT=yes六、配置电话会议室 /etc/asterisk/meete.conf[rooms] ;会议室号将作为拨号计划中 meetme参数conf => 1001 ;定义会议室号1001,无密码conf => 1002,918 ;定义会议室密码为918备注:拨号计划中调用meetme函数时,将进入会议桥,如需要密码,系统将提示输入会议室密码。
1.安裝所需套件yum install gcc gcc-c++ kernel-devel zlib zlib-devel openssl openssl-devel2.下载asterisk、libpri、zaptelcd /usr/local/src/wgetwgetwget3.安装zapteltar -zxvf zaptel-.1.tar.gzcd /usr/local/src/zaptel-.1./configuremakemake installmodprobe zaptel4.安装libpritar -zxvf libpri-.tar.gzcd /usr/local/src/libpri-makemake install5.安装asterisktar -zxvf asterisk-.tar.gzcd /usr/local/src/asterisk-./configuremakemake installmake samplesasterisk -vvvc6.分机配置vim /etc/asterisk/sip.confSIP分机常用参数配置:[101] ;SIP分机注册账号callerid=ABC ;分机显示名称(可不设定)username=101 ;SIP再注册时要使用的账号(可不设定)type=friend ;连线的模式,一般话机设成friendsecret=101 ;分机注册密码qualify=yes ;验证模式,只有在type=peer时生效(可不设定)nat=yes ;是否在NAT下host=dynamic ;搜寻Client的模式,dynamic由话机主动去注册或者输入Hostname、IP由SIP Server去连线dtmfmode=rfc2833 ;按键信号模式,预设为rfc2833context=internal ;设定要用extensions.conf哪一组的动作canreinvite=no ;分机直通或由SIP连接callgroup=0 ;定义群组,可利用于群组广播....等(可不设定)pickupgroup=0 ;定义代接群组(可不设定)[102]username=102type=friendsecret=102qualify=yesnat=yeshost=dynamicdtmfmode=rfc2833context=internalcanreinvite=no7.设定接通动作vim /etc/asterisk/extensions.conf最后面加放设定[internal]exten => _X.,1,Dial(SIP/${EXTEN}|30) exten => _X.,n,Hangup()说明:_:代表开头X:代表0-9.:代表任意长度的字元_X.:电话以数字开始不限制长度Dial:接通SIP:线路模式SIP协议${EXTEN}:收到的号码30:只振玲等待30秒Hangup:挂断8.设定远端管理账号(依需求设定)vim /etc/asterisk/manager.confenabled = yes最后面增加[admin] secret=admin deny=.0/0.0.0.0 permit=127.0.0.1/255.255.255.0 read = system,call,log,verbose,command,agent,user write =system,call,log,verbose,command,agent,user用telnet localhost 5038到asterisk的管理界面出现Asterisk Call Manager/1.0输入action: login <enter>username: admin <enter>secret: admin <enter><e。
一步一步安装freepbx1. Ce ntOS5.3系统安装安装时需要注意把所有组件全部安装(在安装系统时选择自定义选项,即可。
)。
此问题主要是为了方便以后安装Asterisk和Pbx需要的软件开发包。
参考:http://blog.si .c n/s/blog_416adf890100aye1.html~type=v5_o ne&label=rela _n extarticle2.安装Tools Linux.iso。
用光驱加载Linux.iso。
把光驱里的文件拷贝到根文件夹,解压缩VMwareTools-5.5334685.tar.gz 文件(tar zxvf文件名),后来进入vmware-tools-distrib 文件夹。
执行./vmware-install.pl 后来一路回车即可。
3.配置虚拟机网络。
(2安装和3配置,完毕最好从启一下)4.要安装Asterisk 了各位观众请注意!!!/s/blog_416adf890100aydi.html/s/blog_416adf890100aye n.htmlhttp://blog.si .c n/s/blog_416adf890100b819.html/sv n/freeiris2/tru nk/INSTALL.html禁用Selinux,禁用防火墙运行一下包,看看那个不存在就更新安装那个yum in stall (包名)rpm -q 'ker nel-deve l'rpm -q 'httpd'rpm -q 'mysql-server'rpm -q 'mysql'rpm -q 'mysql-devel'rpm -q 'php'rpm -q 'php-mysql'rpm -q 'perl'rpm -q 'libdbi-dbd-mysql'rpm -q 'perl-libwww-perl'rpm -q bis onrpm -q bis on-develrpm -q n cursesrpm -q n curses-develrpm -q zlib-develrpm -q ope nsslrpm -q ope nssl-develrpm -q gnu tls-develrpm -q gccrpm -q gcc-c++以下也是要更新的包yumin stall e2fsprogs-devel keyutils-libs-devel krb5-devel libogg libseli nu x-devel libsepol-devel libxml2-devel libtiff-devel gmpphp-pear php-pear-DB php-gd php-pdo ncurses-devel audiofile-devel libogg-devel zlib-devel perl-DateMa nip sen dmail-cf bind sen dmail php-mbstri ng然后安装Lame 3.97cd /usr/srcwget http://eas yn ews.dl.sourceforge. net/sourceforge/lame/lame-3.97.tar.gztar zxvf lame-3.97.tar.gzcd lame-3.97./con figureMakemake in stall安装dahdi驱动(A1200P板卡用户要自己打patch请咨询openvox公司,如果要安装oslec回音消除也请参考资料):wget"/dow nload/dow n.php?target=asterisk&obj=& file=dahdi-li nux-2.1.0.4.tar.gz"tar zxvf dahdi-li nu x-2.1.0.4.tar.gzcd dahdi-li nux-2.1.0.4makemake in stallcd ..wget"/dow nload/dow n.php?target=asterisk&obj=& file=dahdi-tools-2.1.0.2.tar.gz"tar zxvf dahdi-tools-2.1.0.2.tar.gzcd dahdi-tools-2.1.0.2makemake in stallmake config/etc/i nit.d/dahdi start/etc/i nit.d/dahdi stopcd ..wget"/dow nload/dow n.php?target=asterisk&obj =& file=libpri-1.4.10.tar.gz"tar zxvf libpri-1410.tar.gzcd libpri-1.4.10makemake in stallcd ..安装asterisk软件:wget"/dow nload/dow n.php?target=asterisk&obj =& file=asterisk-1.4.26.tar.gz"tar zxvf asterisk-1.4.26.tar.gzcd asterisk-1.4.26./con figuremakemake in stallmake samplesmake configcd ..wget"/dow nload/dow n.php?target=asterisk&obj =& file=asterisk-add on s-1.4.8.tar.gz"tar zxvf asterisk-addo ns-1.4.8.tar.gzcd asterisk-add on s-1.4.8./con figuremake cdrcp cdr/cdr_addo n_mysql.so /usr/lib/asterisk/modules/ cd ..安装g729 g723的语音编码:请注意这两个语音编码是专利编码,如果你要使用在商业领域,请向编码版权所有者交纳版税•否则请跳过此步骤•wget"http://asterisk.hosti ng.l v/bi n/codec_g723-ast14-gcc4-glibc-pen tium3.sowget"http://asterisk.hosti ng.l v/bi n/codec_g729-ast14-gcc4-glibc-pen tium3.so"cp -avf codec_g72*.so /usr/lib/asterisk/modules/哇塞赛好累好累,休息休息,以上就是asterisk安装的全过程。
asterisk,mysql,freepbx完整安装手册1 Install Asterisk server1.1 Install CentOS 5.3Description :CentOS is an Enterprise-class Linux Distribution derived from sources freely provided to the public by a prominent North American Enterprise Linux vendor. CentOS conforms fully with the upstream vendors redistribution policy and aims to be 100% binary compatible.●Need install Web Server , Mail Server , MySQL Database , Development T ools●Enable W eb server, Mail server, MySql Database, Development tools.●Disable firewall, SElinux.●Config your network, make sure you can connect to the internet.1.2 Update your system#yum -y update1.3 Install dependencies and extra packages# yum install e2fsprogs-devel keyutils-libs-devel krb5-devel libogg libselinux-devel libsepol-devel libxml2-devel libtiff-devel gmp php-pear php-pear-DB php-gd php-mysqlphp-pdo kernel-devel ncurses-devel audiofile-devel libogg-devel openssl-devel mysql-devel zlib-devel perl-DateManip sendmail-cf1.4 Install lame-3.97Description :LAME is an educational tool to be used for learning about MP3 encoding. The goal of the LAME project is to use the opensource model to improve the psycho acoustics, noise shaping and speed of MP3. LAME is not for everyone - it is distributed as source code only and requires the ability to use a C compiler. However, many popular ripping and encoding programs include the LAME encoding engine.# cd /usr/src# wget /doc/945198382.html,/sourceforge/lame/l ame-3.97.tar.gz# tar zxvf lame-3.97.tar.gz# cd lame-3.97# ./configure# make# make install1.5 Install libpriDescription :libpri is a C implementation of the Primary Rate ISDN specification. It wasbased on the Bellcore specification SR-NWT-002343 for National ISDN. As ofMay 12, 2001, it has been tested work with NI-2, Nortel DMS-100, andLucent 5E Custom protocols on switches from Nortel and Lucent.# cd /usr/src# wget /doc/945198382.html,/pub/libpri/libpri-1.4-current.tar.gz# tar zxvf libpri-1.4-current.tar.gz# cd libpri-1.4.10/# make# make install1.6 Install mpg123The mpg123 is make for the “music on hold” module to up custom *.mp3 or *.wav file to PBX.#tar xvf mpg123-1.9.0.tar.bz2#./configure#make#make install1.7 Install Dahdi / Dahdi-toolsDescription :Dahdi is a short for ZAPata TELephony.This packet is the drive of the Digital Cards# cd /usr/src# download dahdi-linux-current.tar.gz dahdi-tools-current.tar.gz# tar zxvf dahdi-linux-2.2.0.2# cd zaptel-1.4.12.1# make# make install# cd .# . tar zxvf dahdi-tools-current.tar.gz# ./configure# make# make install# make config/etc/init.d/dahdi start# echo "/etc/init.d/dahdi start" >> /etc/rc.d/rc.local# dahdi_genconf //check the TDM400P board automatic#copy dahdi_channels.conf content to chan_dahdi.conf# dahdi_cfg –vv1.8 Install asterisk1.7.1 Install asterisk-1.6.1.4Description :Asterisk is the world's leading open source PBXi, telephony engine, and telephony applications toolkit. Offering flexibility unheard of in the world of proprietary communications, Asterisk empowers developers and integrators to create advanced communication solutions...for free.# cd /usr/src# useradd -c "Asterisk PBX" -d /var/lib/asterisk asterisk# mkdir /var/run/asterisk# mkdir /var/log/asterisk# chown -R asterisk:asterisk /var/run/asterisk# chown -R asterisk:asterisk /var/log/asterisk# chown -R asterisk:asterisk /var/lib/php/session/# sed -i "s/User apache/User asterisk/" /etc/httpd/conf/httpd.conf# sed -i "s/Group apache/Group asterisk/" /etc/httpd/conf/httpd.conf# sed -i "s/AllowOverride None/AllowOverride All/" /etc/httpd/conf/httpd.conf# download asterisk-1.6.1.4.tar.gz# tar zxvf asterisk/asterisk-1.6.1.4.tar.gz# cd asterisk-1.6.1.4# ./configure# make# make install# make samples# make config1.7.2 Install asterisk-addons-1.6.1.1Description :This package contains additional modules for Asterisk which are, for one reasonor another, not included in the normal base distribution. Many of thesemodules are experimental.# cd /usr/src# download asterisk-addons-1.6.1-current.tar.gz# tar zxvf asterisk-addons-1.6.1-current.tar.gz# cd asterisk-addons-1.6.1.1# ./configure# make# make install# make samples1.7.3 Install asterisk-soundsDescription :This packet is not for hardware dependency. It’s just the necessary packet (Include many sound file) for asterisk server.Download the packet asterisk-sounds-1.2.1.tar.gz# cd /usr/src# tar zxvf asterisk-sounds-1.2.1.tar.gz# cd asterisk-sounds-1.2.1# make install1.9 Install FreePBXDescription :FreePBX is for both developers and people searching for a Business Phone System (or a really fancy home one).# cd /usr/src# wget/doc/945198382.html,/sourceforge/ampo rtal/freepbx-2.3.1.tar.gz# tar zxvf freepbx-2.5.0.tar.gz# cd freepbx-2.5.0# service httpd start# service mysqld start# chkconfig httpd on# chkconfig mysqld on1.9.1 Config MySql# mysqladmin create asterisk# mysqladmin create asteriskcdrdb# mysql asterisk < SQL/newinstall.sql# mysql asteriskcdrdb < SQL/cdr_mysql_table.sql# mysql# GRANT ALL PRIVILEGES ON asteriskcdrdb.* TO asteriskuser@localhost IDENTIFIED BY 'occvoip';# GRANT ALL PRIVILEGES ON asterisk.* TO asteriskuser@localhost IDENTIFIED BY 'occvoip';# mysqladmin -u root password 'occvoip'1.9.2 Install freepbx# vi /etc/asterisk/asterisk.conf++++++++++++++++++++++++++++++++Modify [directories](!) ==> [directories]Modify /var/run ==> /var/run/asterisk++++++++++++++++++++++++++++++++# cd /usr/src/freepbx-2.5.0# ./start_asterisk start# ./install_amp --username=asteriskuser --password=occvoip# echo /usr/local/sbin/amportal start >> /etc/rc.localOpen browser to http://ipaddressofpbx#Click the FreePBX Administration to config the FreePBX. Then click Apply configuration changes.Download modules.: click Module Admin to download this modules:Feature codeVoicemailPhonebook Directory toolPhonebookSpeed dialDay night modeIVRFollow meRing groupCall ForwardCall WaitingCallbackConferencesDo-Not-Disturb (DND)Info ServicesannouncementMisc ApplicationsMisc DestinationsMusic on HoldPIN SetsParking lotAsterisk Info toolCustom Applications tool# reboot1.10 Open browser to http://ipaddressofpbxClick the FreePBX Administration to config the FreePBX.。
1. 准备环境1.1 安装前要确定已经安装了以下服务:*DNS Server*Web Server*Mail Server*MySQL Database*Development Toolsgroupadd asteriskuserdel -r asterisk创建用户asterisk到主组asteriskuseradd -g asterisk -d /etc/asterisk/ asterisk修改用户主目录可通过修改“/etc/passwd”文件实现1.2 没有安装的话可以用以下命令安装yum install bindyum install sendmailyum -y updateyum install e2fsprogs-devel keyutils-libs-devel krb5-devel libogg libselinux-devel libsepol-devel libxml2-devel libtiff-devel gmp php-pear php-pear-DB php-gd php-mysql php-pdo kernel-devel ncurses ncurses-devel audiofile-devel libogg-devel openssl-devel mysql-devel zlib zlib-devel perl-DateManip sendmail-cf sox gcc gcc-c++ gnutls-devel bison bison-deve1.3 安装完之后用以下命令设为自动启动chkconfig mysqld onchkconfig httpd on2. 在/usr/src目录中下载Asterisk相关安装包并解压2.1 下载#cd /usr/srcwget /sourceforge/lame/lame-3.97.tar.gzwget /pub/libpri/releases/libpri-1.4.10.tar.gzwget /pub/zaptel/releases/zaptel-1.4.12.1.tar.gzwget /pub/asterisk/releases/asterisk-1.6.2.6.tar.gzwget /pub/asterisk/releases/asterisk-addons-1.6.2.0.tar.gzwget /pub/asterisk/releases/asterisk-sounds-1.2.1.tar.gzwget /freepbx-2.7.0.tar.gzls *.tar.gz | xargs -n1 tar xzvf2.2 安装lametar zxvf lame-3.97.tar.gzcd lame-3.97./configuremakemake install2.3 安装libpri# cd libpri-1.4.9# make# make install2.4 安装zaptel# cd zaptel-1.4.12.1# ./configure# make# make install# make config2.5 安装asterisk创建用户和用户组:asterisk:asterisk# cd asterisk-1.4.24.1# ./configure# make# make install# make samples2.6 安装asterisk-addons# cd asterisk-addons-1.4.7# ./configure# make# make install# make samples启动asterisk#amportal start2.7 安装asterisk-sounds# cd asterisk-sounds-1.2.1# make# make installchown -R asterisk:asterisk /var/lib/asteriskchown -R asterisk:asterisk /var/run/asteriskchown -R asterisk:asterisk /var/log/asteriskchown -R asterisk:asterisk /var/lib/php/session3. 安装FreePBX3.1 下载FreePBX解压: tar zxvf freepbx-2.7.0.tar.gz3.2 安装数据库cd freepbx-2.7.0cd SQL/usr/bin/mysqladmin -u root password 'root'grant all privileges on *.* to asterisk@localhost identified by ‘asterisk’;grant all privileges on *.* to asterisk@’%’ identified by ‘asterisk’;flush privileges;create database asterisk default character set utf8 default collate utf8_general_ci; create database asteriskcdrdb default character set utf8 default collate utf8_general_ci; source SQL/newinstall.sqlsource SQL/cdr_mysql_table.sqlflush privileges;\q3.3 安装FREEPBXcd .../start_asterisk start./install_amp --username=asterisk --password=asterisk3.4 修改文件/文件夹权限chown -R asterisk /etc/asteriskchgrp -R asterisk /etc/asteriskchown -R asterisk /var/lib/asteriskchgrp -R asterisk /var/lib/asteriskchown -R asterisk /var/spool/asteriskchgrp -R asterisk /var/spool/asteriskchmod -R 777 /etc/asteriskchmod -R 777 /var/lib/asterisk/chmod -R 777 /var/spool/asteriskchmod -R 777 /var/www/htmlchmod -R 777 /etc/amportal.confFreePBX安装时要用的配置文件:/etc/amportal.conf重新加载asterisk配置/var/lib/asterisk/bin/retrieve_conf4. 安装成功后的配置4.1 中文件支持1. var/www/html/admin/header.php中的set_language()中修改默认语言在/var/www/html/admin/views/freepbx_admin.php文件中增加2. <option value="zh_CN" <?php echo ($_COOKIE['lang']=="zh_CN" ? "selected" : "") ?> >Chinese Simplified</option>3. 创立/admin/i18n/zh_CN/LC_MESSAGES的目录,并把翻译化后的amp.po amp.mo复制到这里,注意设置对应权限。
Asterisk pbx系统安装配置手册1.0一:系统及安装包选择1.1操作系统: CentOS。
必须选上mysql相关的所有选项,其他的按照默认即可。
由于安装asterisk-addons中需要使用mysqlclient,需要另外安装一个mysql-devel-5.0.37-2.fc7.i386.rpm,否则会有无法找到mysql.h的错误。
安装方法:rpm -ivh mysql-devel-5.0.37-2.fc7.i386.rpm.至此,系统平台搭建完毕,基于此系统下,以后的编译一般不会有问题。
1.2 asterisk相关包主程序: asterisk-1.4.11会议定时相关: zapatel-1.4.5.1以及 asterisk-addons-1.4.2,asterisk-sounds-1.2.1,asteriskgui,astbill-0.9.22.1.2.1 zaptel-1.4.5.1安装Zaptel的安装必须在主程序之前,这样在编译主程序的时候就能够找到ztdummy,才能够选择编译会议相关功能。
进入zaptel目录:-Make clean-./configure-Make menuselect这里记得选上Kernel Modules中的全部选项,其他的采用默认选项。
-make-make install.1.2.2 asterisk-1.4.11安装进入asterisk目录:-make clean-./configure-make menuselectApplication中的全部选中,Dialplan Functions除odbc相关其他能选的全部选上,其余默认。
-make-make install-make samplesAsterisk-addons和asterisk-sounds的安装基本差不多。
1.2.3 asteriskgui 安装/svn/asterisk-gui/trunk gui源码获取。
Ubuntu Asterisk安装手册
《1》
安装包放在:/asterisk 下面,以.tar.gz结尾的文件。
这里需要的安装包有4个
libpri-1.4.10.2.tar.gz,dahdi-linux-2.2.1.tar.gz,asterisk-1.6.2.20.tar.gz以及dahdi-tools-2.2.1.tar.gz
安装时先后安装的顺序为:
1》libpri-1.4.10.2.tar.gz
在当前文件夹下解压缩该文件
#tar –zxvflibpri-1.4.10.2.tar.gz
#cd libpri-1.4.10.2
#make
#make install
2》安装dahdi-linux-2.2.1.tar.gz
在当前文件夹下解压缩该文件
#tar –zxvfdahdi-linux-2.2.1.tar.gz
#cd dahdi-linux-2.2.1
#make
#makeinstsall
3》安装asterisk-1.6.2.20.tar.gz
在当前文件夹下解压缩该文件
#tar –zxvfasterisk-1.6.2.20.tar.gz
#cd asterisk-1.6.2.20
#./configure
#make
#make install
#make samples
Ps.其中如果报如下图的错误
需要执行
#apt-get install libxml2-dev
同理解决后续在执行./configure时产生的错误。
比如出现缺少时运行
#apt-get install libncurses5-dev
4》安装dahdi-tools-2.2.1.tar.gz
在当前文件夹下解压缩该文件
#tar –zxvfasterisk-1.6.2.20.tar.gz
#cd asterisk-1.6.2.20
#./configure
#make
#make install
#makeconfig
安装asterisk-gui
《2》
1》首先安装下vim 和subversion, apache2
#apt-get install vim
#apt-get install subversion
#apt-get install apache2
安装asterisk-gui
#cd /asterisk
#svn checkout /svn/asterisk-gui/branches/2.0 asterisk-gui ----将asterisk-gui下载到本地
#cd /asterisk-gui
#./configure 编译准备
#make 编译
#make install 安装
2》配置asterisk-gui
#cp -r /etc/asterisk /etc/asterisk.bak 以防出错,可以恢复
#vi /etc/asterisk/manager.conf
[general]
displaysystemname = yes
enabled = yes
webenabled = yes
port = 5038
httptimeout = 60
bindaddr = 0.0.0.0
[root] 设置管理账户
secret = asterisk 管理密码
read = system,call,log,verbose,command,agent,user,config 读的权限
write = system,call,log,verbose,command,agent,user,config 写的权限
#vi /etc/asterisk/http.conf
[general]
enabled=yes
enablestatic=yes
bindaddr=0.0.0.0
bindport=8088
redirect= / /static/config/index.html
检查
#cd /asterisk/asterisk-gui
#makecheckconfig
PS.注意此步骤在 /asterisk/asterisk-gui下执行,且出现以下的画面表示 gui安装成功!
web访问
用firefox或者google浏览器打开
http://192.168.1.200:8088/static/config/index.html
出现以下登陆界面表示成功,
用户名:root
密码:asterisk
之后可以创建和管理sip帐户了,详情访问
/space.php?uid=25512517&do=blog&id=1744652
拨号规则设定
《3》
#Vi /etc/asterisk/extensions.conf
现有系统在该文件的700行左右,运行:700 跳达。
【default】--------------------拨入规则exten => s,1,Answer()
exten => s,2,Background(ivr)
exten => s,3,WaitExten(20)
exten => 1,1,Dial(SIP/6001)
exten => 1,2,Background(alex)
exten => 2,1,Dial(SIP/6002)
exten => 2,2,Background(alex)
exten => 3,1,Dial(SIP/6003)
exten => 3,2,Background(alex)
exten => 4,1,Dial(SIP/6004)
exten => 4,2,Background(alex)
exten => 0,1,Dial(SIP/6000)
exten => 0,2,Background(alex)
【DLPN_outgoing】--------------------拨出规则exten => _x.,1,Dial(DAHDI/g0/${EXTEN})
include = default
include = parkedcalls
include = conferences
include = ringgroups
include = voicemenus
include = queues
include = voicemailgroups
include = directory
include = pagegroups
include = page_an_extension
IVR文件存放路径为
/var/lib/asterisk/sounds/en
拨入背景音乐为alex.wav
拨入规则音乐为ivr.wav
现有电话号
《4》
1.58690482
2.58690182
3.59002068
4.59002068
5.。