Four examples of abbreviated number of Addpac voip Voice Gateway
Case 1.
Voip peer configuration
! Voip peer configuration.
Dial-peer voice 1000 voip
Destination-pattern 0.T
Session target ras
Dtmf-relay h345-alphanumeric
Translate-outgoing called-number 0
Dial-peer voice 1001 voip
Destination-pattern [1-5].
Session target ras
Dtmf-relay h345-alphanumeric
Translate-outgoing called-number 100
! Translation Rule configuration.
Translation-rule 0
Rule 10 002 001% 99
Translation-rule 100
Rule 11 11 xxxxxxxxx
Rule 22 22 xxxxxxxxx
Rule 33 33 xxxxxxxxx
Rule 44 44 xxxxxxxxx
Case 2.
Voip peer configuration.
Dial-peer voice 1000 voip
Destination-pattern 0..T
Session target ras
Dtmf-relay h345-alphanumeric
Dial-peer voice 1001 voip
Destination-pattern [1-2] [1-2]
Session target ras
Dtmf-relay h345-alphanumeric
Translate-outgoing called-number 100
! Translation Rule configuration.
Translation-rule 100
Rule 10 11 xxxxxxxxx
Rule 11 22 xxxxxxxxx
Case 3.
! Voip peer configuration.
Dial-peer voice 1000 voip
Destination-pattern 0..T
Session target ras
Dtmf-relay h345-alphanumeric
Dial-peer voice 1001 voip
Destination-pattern *.
Session target ras
Dtmf-relay h345-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
Case 4.
! Voip peer configuration
Dial-peer voice 1000 voip
Destination-pattern 0...T
Session target ras
Dtmf-relay h345-alphanumeric
Dial-peer voice 1001 voip
Destination-pattern 99
Session target ras
Dtmf-relay h345-alphanumeric
Translate-outgoing called-number 99
Dial-peer voice 1002 voip
Destination-pattern 98
Session target ras
Dtmf-relay h345-alphanumeric
Translate-outgoing called-number 98
Translation Rule configuration.
Translation-rule 98
Rule 11 98 xxxxxxxxx
Translation-rule 99
Rule 10 99 xxxxxxxxx
Attachment: http://down.51cto.com/data/2366524