matching multiple dial-peers...

snickeredsnickered Member Posts: 25 ■□□□□□□□□□
I have a situation where I need to send one person out one way and send another person out another. So, I figured if I added "answer-address" along with the "incoming called-number" it would match one dial-peer more specifically than the other and use it. But that's not the case. Can someone tell me how to do what I'm trying to do the proper way?

Here's what I was thinking.
1. matching the incoming dial-peer with "incoming called-number" AND "answer-address".
2. translate called number to something specific in order to match the proper outbound dial-peer.
3. use translated number to match outbound dial-peer
dial-peer voice 100 voip
description ****INCOMING 10-DIGIT****
incoming called-number 9[2-9]..[2-9]......
voice-class codec 1
session protocol sipv2
dtmf-relay rtp-nte
no vad
!
dial-peer voice 500 voip
description ****INCOMING (SPECIAL)****
translation-profile incoming some-translation
incoming called-number 9[2-9]..[2-9]......
answer-address 5001
voice-class codec 1
session protocol sipv2
dtmf-relay rtp-nte
no vad

See, I want to match dial-peer 500 if the person is calling from 5001 and therefore apply the translation-profile but it doesn't work. Does someone know of a better way to do what I need? TIA.
Sign In or Register to comment.