【需求】
两台AR28通过IP链 路互连,分别通过FXS接口卡连接一个和两个电话机,在连接两个电话机的AR28系列路由器上, 将两个电话机的号码设置成不同的长度,通过配置相应命令实现正常通话。
【组网图】
【配置脚本】
AR28_A 配置脚本 |
interface Ethernet2/0 ip address 1.1.1.3 255.0.0.0 # voice-setup # aaa-client # dial-program number-match longest //设置为最长匹配 # entity 2 voip //设置连接对端的voip实体1 match-template .... address ip 1.1.1.1 # entity 3 voip //设置连接对端的voip实体2 match-template ........ address ip 1.1.1.1 # entity 101 pots //本端pots实体的配置 match-template 101 line 1/1 # gk-client # sip # subscriber-line 1/0 # subscriber-line 1/1 |
AR28_B 配置脚本 |
interface Ethernet1/0 ip address 1.1.1.1 255.0.0.0 # voice-setup # aaa-client # dial-program number-match longest //设置为最长匹配 # entity 1 voip //设置连接对端的voip实体 match-template 1.. address ip 1.1.1.3 # entity 21 pots //本端pots实体1的配置 match-template 1234 line 2/0 # entity 22 pots //本端pots实体2的配置 match-template 12345678 line 2/1 # gk-client # sip # subscriber-line 2/0 # subscriber-line 2/1 |
【验证】
两个电话可正常通话。
【提示】
在配置时应注意在连接 一个电话机的路由器上配置两个voip实体。