码迷,mamicode.com
首页 > 其他好文 > 详细

Freeswitch+Sangma板卡安装教程(2)

时间:2015-11-14 16:25:27      阅读:618      评论:0      收藏:0      [点我收藏+]

标签:

5、开机启动
把(当前目录下:要求安装目录为 freeswitch,且用户为 root;为启动板卡必须使用管理
员权限)freeswitch.init 复制到/etc/init.d/目录下
增加执行权限 chmod a+x
chkconfig --add freeswitch.init 添加到配置中
6、修改保持音
删除 sounds/music/8000 目录下文件
复制(当前目录下的)music_on_hold.wav 8000 目录下
拨打 9664 测试
7、配置板卡
/usr/sbin/wancfg_fs 配置板卡与交换机对接(板卡作为客户端,交换机作为电信端)
Select media type for AFT-A101 on port 1 [slot:4 bus:2 span:1]
1. T1
2. E1
3. Unused
4. Exit
[1-4]:2
Configuring port 1 on AFT-A101 as E1, line coding:HDB3, framing:CRC4
1. YES - Keep these settings
2. NO - Configure line coding and framing
[1-2, ENTER=‘YES‘]:2
Select line coding for port 1 on 101
1. HDB3
2. AMI
[1-2, ENTER=‘HDB3‘]:1
Select framing for port 1 on 101
1. CRC4
2. NCRC4
3. UNFRAMED
[1-3, ENTER=‘CRC4‘]:2
Select clock for AFT-101 on port 1 [slot:4 bus:2 span:1]
1. NORMAL
2. MASTER // 主端(电信)
[1-2]:1
Select Switchtype for AFT-101 on port 1 [slot:4 bus:2 span:1]
1. EuroISDN/ETSI
2. QSIG
[1-2]:1
Select signalling type for AFT-101 on port 1 [slot:4 bus:2 span:1]
1. PRI CPE // 客户端
2. PRI NET // 电信端
[1-2]:1
Select dialplan context for AFT-101 on port 1
1. default
2. public
3. Custom
[1-3]:1
Input the dialing group for this port
: 1
8、通过板卡拨打电话
wp1 autoload_configs]/freetdm.conf.xml 文 件 中 设 定 <span name="wp1"
cfgprofile="my_pri_te_1">
a 表示选线规则为,从小到大选择一个空闲时隙(A 表示从大到小选择) 。
<extension name="Out-going">
<condition field="destination_number" expression="^0(\d+)$">
<action application="set" data="ringback=${us-ring}"/>
<action application="set" data="transfer_ringback=$${hold_music}"/>
<action application="set" data="call_timeout=30"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="set" data="continue_on_fail=true"/>
<action application="bridge" data="freetdm/wp1/a/$1"/>
</condition>
</extension>
9、话机(yealink T22)配置
通过浏览器输入话机 IP 地址(在话机主页面按‘OK’键即可查到) ,打开后登录(admin
admin
在‘Account(账户) ’栏中输入相应信息:
Register Name(注册名) // 需要与 FS 中配置的相同
User Name(用户名)
Password(密码)
Server Host(服务器地址) :FS IP 地址
Server Expires(心跳报文) :注册超时时间;
Server Retry Counts(重试次数) :双服务器时,移至下一服务器前重试次数
完成后把‘Line Active(线路激活) ’改为 Enabled(启用) ,然后提交即可。
话机通话时,禁止来电:
‘功能’-‘基本信息’-‘呼叫等待[Call Waiting]‘ 禁用。
三方通过时,发起方挂断后另外两方正常通话
在‘Features(功能) ’栏的‘Transfer(通话转接) ’中把‘Transfer on Conference Hang
up(会议挂机转接) ’设为启用即可。
日志查看:
在‘Setting(设置) ’栏中选‘Configuration(配置管理) ’ :
可设定日志等级(6 st: auto; -webkit-text-stroke-width: 0最高,内容最多) ;
通过‘导出’功能可导出日志

Freeswitch+Sangma板卡安装教程(2)

标签:

原文地址:http://www.cnblogs.com/flyoung/p/4964388.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!