06-01-2008 12:54 PM - edited 03-15-2019 10:59 AM
Hi, i need routing the calls for diferent voice gateway.
The call from 4000 whit destination 909[6-9]T go to E1 attach yo AS5350XM.
and the call from 4004 whit destination 909[6-9]T go to E1 in the gateway 2811 in 172.27.0.9
the dial-peer configuration is:
dial-peer voice 10 pots
trunkgroup CLARO
tone ringback alert-no-PI
description ***PREPAGO CELULARES CLARO***
answer-address 4000
destination-pattern 909[6-9].......
incoming called-number 4000
direct-inward-dial
prefix 09
!
dial-peer voice 11 voip
tone ringback alert-no-PI
description ***PREPAGO LOCALES***
answer-address 4000
destination-pattern 9.......
progress_ind setup enable 3
redirect ip2ip
session target ipv4:172.27.0.9
dtmf-relay rtp-nte
codec g711ulaw
!
dial-peer voice 50 voip
tone ringback alert-no-PI
description ***ADMINISTRATIVOS CELULARES***
answer-address 4004
destination-pattern 909[6-9].......
progress_ind setup enable 3
redirect ip2ip
session target ipv4:172.27.0.9
incoming called-number 4004
dtmf-relay rtp-nte
codec g711ulaw
!
dial-peer voice 51 voip
tone ringback alert-no-PI
description ***ADMINISTRATIVOS LOCALES***
answer-address 4004
destination-pattern 9.......
progress_ind setup enable 3
redirect ip2ip
session target ipv4:172.27.0.9
dtmf-relay rtp-nte
codec g711ulaw
but when call from 4004 to 909[6-9]....... the go to dial-peer 10
Saludos!
06-02-2008 03:06 AM
Is it not because the match is in dial-peer order and that the destination-pattern is checked first and if there is a match it then looks at the order of the possible matches i.e Dial-Peer 10 is matched first ?
06-02-2008 06:10 AM
but, i have anwnser incoming command apply in dial-peer.
in this case, the call number match whit 2 dial-peer in destination-patter OK.... call go for the first... but the dial-peer have two condition, the destination-patter and anwser incoming why call whit the dial-peer doesn't match?
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide