IP备份拨号策略
一、组网需求:
无
二、组网图:
TEL1----C&C08----(FXO)2008L-----IP-----VG1
|
-------VG2
说明:
VG1的ip地址是172.31.19.104
VG2的ip地址是172.31.19.103
VG2上有fxs的电话号码是02885146960,VG1上无此电话号码
2008L上的配置:
[VG2008L-voice-dial-entity12]dis cu
Now create configuration...
Current configuration
!
version 1.80
local-user a service-type administrator password simple a
sysname VG2008L
info-center console
info-center console debugging
firewall enable
!
interface Ethernet0
ip address 172.31.19.116 255.255.0.0
!
voice-setup
!
dial-program
terminator #
number-match longest
!
entity 1 pots
match-template 1T
line 0
send-number all
!
entity 3 pots
match-template 1T
line 1
send-number all
!
entity 4 pots
match-template 1T
line 2
send-number all
!
entity 5 pots
match-template 1T
line 3
send-number all
!
entity 6 pots
match-template 1T
line 4
send-number all
!
entity 7 pots
match-template 1T
line 5
send-number all
!
entity 8 pots
match-template 1T
line 6
send-number all
!
entity 9 pots
dial-prefix 8,,,,,
match-template T
line 7
send-number all
!
!
entity 10 pots
match-template 1T
send-number all
!
entity 11 voip
address ip 172.31.19.103
fast-connect
match-template 028…
outband h225
type-number called national
tunnel-on
!
entity 12 voip
address ip 172.31.19.104
match-template 0288514
!
subscriber-line 0
!
subscriber-line 1
!
subscriber-line 2
!
subscriber-line 3
!
subscriber-line 4
!
subscriber-line 5
!
subscriber-line 6
!
subscriber-line 7
private-type delay
cid type simple
然后,TEL1通过CC08二次拨号,被叫号码为02885146960,得到的调试信息如下:
DPL_INTF: Get entity 12 successfully!
IPP_VCC [ 7]: Receive CCSetup Msg: CallerNumber=8801, CalledNumber=02885146960,FacilityLen=0
IPP_VCC [ 7]: Send IPCallProceeding Msg when receive CCSetup Msg
IPP_VCC [ 7]: Get VOIP dialpeer 12 in CCSetup Msg
IPP_SOK [ 7]: Send H225 AsynSocket Request when receive CCSetup Msg port:1720
IPP: SOCK: SOCK_STREAM =====> INADDR_ANY
IPP_SOK [ 7]: IPP_CreateAsycSock is OK!
IPP_SOK [ 7]: Now Connect Socket!
IPP_SOK [ 7]: Receive H225 AsynSock Ack, sokid=308, src=1720@172.31.19.116, dst=1720@172.31.19.116
IPP_225 [ 7]: Send Setup Msg when 225 socket created
IPP_225 [ 7]: Setup Msg FastCOnnect=False, Tunnel=False
IPP_225 [ 7]: Receive CallProceeding Msg, crv=99, FastStart=FALSE, tunnel=FALSE
IPP_225 [ 7]: Receive ReleaseComplete Msg crv=99 reason=129+255,FacilityLen=0
IPP_VCC [ 7]: Send IPRelease Msg when receive ReleaseComplete Msg
IPP_C&C [ 7]: IPCCB is released
DPL_INTF: Get entity 11 successfully!
IPP_VCC [ 7]: Receive CCSetup Msg: CallerNumber=8801, CalledNumber=02885146960,FacilityLen=0
IPP_VCC [ 7]: Send IPCallProceeding Msg when receive CCSetup Msg
IPP_VCC [ 7]: Get VOIP dialpeer 11 in CCSetup Msg
IPP_SOK [ 7]: Send H225 AsynSocket Request when receive CCSetup Msg port:1720
IPP: SOCK: SOCK_STREAM =====> INADDR_ANY
IPP_SOK [ 7]: IPP_CreateAsycSock is OK!
IPP_SOK [ 7]: Now Connect Socket!
IPP_SOK [ 7]: Receive H225 AsynSock Ack, sokid=308, src=1720@172.31.19.116, dst=1720@172.31.19.116
IPP_225 [ 7]: Send Setup Msg when 225 socket created
IPP_225 [ 7]: Setup Msg FastCOnnect=True, Tunnel=True
IPP_225 [ 7]: Receive CallProceeding Msg, crv=100, FastStart=FALSE, tunnel=TRUE
IPP_225 [ 7]: Receive Alerting Msg crv=100, faststart=TRUE, tunnel=TRUE, h245=NONE,FacilityLen=0
IPP_SOK [ 7]: Send RTP/RTCP Sock Req when receive Alerting Msg
IPP_SOK [ 7]: Rcv DATA SockAck, ids=309:310, RTP=16912@172.31.19.116, RTCP=16913@172.31.19.116
IPP_VPP [ 7]: Send Codec Msg when create RTP/RTCP socket OK: CodecType = G729
IPP_VCC [ 7]: Send IPAlerting Msg when receive Alerting Msg
IPP_225 [ 7]: Receive Connect Msg crv=100, faststart=FALSE, tunnel=TRUE, h245=NONE,FacilityLen=0
IPP_VCC [ 7]: Send IPConnect Msg when receive Connect Msg
结果说明:1.我们的voip语音实体match-template命令只管匹配,送出去的号码还是按照实际的被叫号码发送:如上例,用户拨的是02885146960,无论选择实体11还是实体12,虽然match-template只是028…/0288514,但送到对端的都是02885146960这个号码。但请注意实体9的存在,如果没有它,当用户拨到0288514的时候,网关就会把号码路由出去了(网关在收号的同时就在匹配实体),而由于它的存在,使得网关不能确定可选实体,这样使得用户拨完了02885146960,再按照精确度匹配实体12
2. IP备份策略。从调试信息可以看到,因为实体12比实体11更精确,所以呼叫选择实体12发出,但是因为实体12对应的vg1(172.31.19.104)没有02885146960这个号码,于是vg1返回releasecomplete消息,这时,2008L不是挂断呼叫,而是再选择实体11(比实体12次一级的匹配),于是呼叫又向vg2(172.31.19.103)发起,最终成功进行通话。
四、配置关键点:
无
该案例暂时没有网友评论
✖
案例意见反馈
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作