通信人家园
标题:
华为MA5612做模拟语音网关对接freeswitch(xswitch)
[查看完整版帖子]
[打印本页]
时间:
2022-7-2 14:43
作者:
13306334015
标题:
华为MA5612做模拟语音网关对接freeswitch(xswitch)
现有16个客房,模拟电话线路,及MA5612一台(8ETH网口+16路模拟语音)
在xwitch 已创建好分机/账号密码
Ma5612:192.168.123.10
sip服务器(xwitch): 192.168.123.20 端口5060
房间号: 密码1234
3002
3003
3006
3007
3008
3009
3013
3015
3016
3102
3103
3105
3106
3107
3111
3113
MA5612配置如下:
enable
config
配置上行口为ge模式
port mode 0/0 ge
透传vlan到上行光口0
port vlan 200 0/0 0
创建vlan:
vlan 200 smart
interface vlanif 200
ip address 192.168.123.10 255.255.255.0
quit
配置媒体ip和信令ip:
voip
ip address media 192.168.123.10 192.168.123.1
ip address signaling 192.168.123.10
进入if-sip接口
interface sip 0
if-sip attribute basic media-ip 192.168.123.10 signal-ip 192.168.123.10 signal-port 5060 home-domain 192.168.123.20
if-sip attribute basic primary-proxy-ip1 192.168.123.20 primary-proxy-port 5060
if-sip attribute optional register-uri 192.168.123.20
reset 使之生效
quit
esl user
添加用户数据
sippstnuser add 0/3/0 0 telno 3002
sippstnuser add 0/3/1 0 telno 3003
sippstnuser add 0/3/2 0 telno 3006
sippstnuser add 0/3/3 0 telno 3007
sippstnuser add 0/3/4 0 telno 3008
sippstnuser add 0/3/5 0 telno 3009
sippstnuser add 0/3/6 0 telno 3013
sippstnuser add 0/3/7 0 telno 3015
sippstnuser add 0/3/8 0 telno 3016
sippstnuser add 0/3/9 0 telno 3102
sippstnuser add 0/3/10 0 telno 3103
sippstnuser add 0/3/11 0 telno 3105
sippstnuser add 0/3/12 0 telno 3106
sippstnuser add 0/3/13 0 telno 3107
sippstnuser add 0/3/14 0 telno 3111
sippstnuser add 0/3/15 0 telno 3113
添加认证数据,记得1234下面加个空行,相当于回车。
sippstnuser auth set 0/3/0 telno 3102 password-mode password
3102
1234
sippstnuser auth set 0/3/1 telno 3103 password-mode password
3103
1234
sippstnuser auth set 0/3/2 telno 3105 password-mode password
3105
1234
sippstnuser auth set 0/3/3 telno 3106 password-mode password
3106
1234
sippstnuser auth set 0/3/4 telno 3107 password-mode password
3107
1234
sippstnuser auth set 0/3/5 telno 3111 password-mode password
3111
1234
sippstnuser auth set 0/3/6 telno 3113 password-mode password
3113
1234
sippstnuser auth set 0/3/7 telno 3115 password-mode password
3115
1234
sippstnuser auth set 0/3/8 telno 3116 password-mode password
3116
1234
sippstnuser auth set 0/3/9 telno 3002 password-mode password
3002
1234
sippstnuser auth set 0/3/10 telno 3003 password-mode password
3003
1234
sippstnuser auth set 0/3/11 telno 3006 password-mode password
3006
1234
sippstnuser auth set 0/3/12 telno 3007 password-mode password
3007
1234
sippstnuser auth set 0/3/13 telno 3008 password-mode password
3008
1234
sippstnuser auth set 0/3/14 telno 3009 password-mode password
3009
1234
sippstnuser auth set 0/3/15 telno 3013 password-mode password
3013
1234
配置完成,查看pstn注册状态
MA5612(config-esl-user)#display sippstnuser reg-state 0/3
--------------------------------------------------------
F /S /P MGID RegisterState TelNo
--------------------------------------------------------
0 /3 /0 0 Active 3102
0 /3 /1 0 Active 3103
0 /3 /2 0 Active 3105
0 /3 /3 0 Active 3106
0 /3 /4 0 Active 3107
0 /3 /5 0 Active 3111
0 /3 /6 0 Active 3113
0 /3 /7 0 Active 3115
0 /3 /8 0 Active 3116
0 /3 /9 0 Active 3002
0 /3 /10 0 Active 3003
0 /3 /11 0 Active 3006
0 /3 /12 0 Active 3007
0 /3 /13 0 Active 3008
0 /3 /14 0 Active 3009
0 /3 /15 0 Active 3013
--------------------------------------------------------
时间:
2022-7-10 12:16
作者:
longpei
如果不需要外线,做自交换就行好了,不需要对接语音网关。
通信人家园 (https://www.txrjy.com/)
Powered by C114