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

Addpac voip语音网关 缩位号码四例

时间:2017-03-21 11:34:06      阅读:202      评论:0      收藏:0      [点我收藏+]

标签:addpac voip gateway 语音网关 路由器

案例一、

Voip peer configuration 

!Voip peer configuration. 
dial-peer voice 1000 voip 
destination-pattern 0.T 
session target ras  
dtmf-relay h245-alphanumeric 
translate-outgoing called-number 0 
dial-peer voice 1001 voip 
destination-pattern [1-5]. 
session target ras  
dtmf-relay h245-alphanumeric 
translate-outgoing called-number 100 
!Translation Rule configuration. 
translation-rule 0 
rule 10     002                      001%04%99                        
translation-rule 100 
rule 11     11                       xxxxxxxxx                    
rule 22     22                       xxxxxxxxx                     
rule 33     33                       xxxxxxxxx                     
rule 44     44                       xxxxxxxxx                     

案例二、
Voip peer configuration. 
dial-peer voice 1000 voip 
destination-pattern 0..T 
session target ras 
dtmf-relay h245-alphanumeric 
 dial-peer voice 1001 voip 
destination-pattern [1-2][1-2] 
session target ras 
dtmf-relay h245-alphanumeric 
translate-outgoing called-number 100

!Translation Rule configuration. 
translation-rule 100 
rule 10     11                      xxxxxxxxx                     
rule 11     22                      xxxxxxxxx 

案例三、
! Voip peer configuration. 
dial-peer voice 1000 voip 
destination-pattern 0..T 
session target ras 
dtmf-relay h245-alphanumeric 
dial-peer voice 1001 voip 
destination-pattern *.. 
session target ras 
dtmf-relay h245-alphanumeric 
translate-outgoing called-number 200 
dial-peer terminator n 
dial-peer ipaddr-prefix n 
Translation Rule configuration. 
translation-rule 200 
rule 10     *11                      xxxxxxxxx                    
rule 11     *22                      xxxxxxxxx                     
rule 12     *33                      xxxxxxxxx                     
rule 13     *44                      xxxxxxxxx                     

案例四、
! Voip peer configuration

dial-peer voice 1000 voip
destination-pattern 0...T
session target ras
dtmf-relay h245-alphanumeric
dial-peer voice 1001 voip
destination-pattern 99
session target ras
dtmf-relay h245-alphanumeric
translate-outgoing called-number 99

dial-peer voice 1002 voip
destination-pattern 98
session target ras
dtmf-relay h245-alphanumeric
translate-outgoing called-number 98
Translation Rule configuration.
translation-rule 98
rule 11     98                       xxxxxxxxx
translation-rule 99
rule 10     99                       xxxxxxxxx

本文出自 “IT无忧吧” 博客,请务必保留此出处http://it568.blog.51cto.com/4060643/1908634

Addpac voip语音网关 缩位号码四例

标签:addpac voip gateway 语音网关 路由器

原文地址:http://it568.blog.51cto.com/4060643/1908634

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