Hello All,
I have a small problem which I need your assistnace. I Have a Cisco 5400 box with T1 cards which I use for VOIP purpose. I have hairpinned (looped) the E1 ports. So the call going out of one port will end up into the other.
The scenario is like this. Calls will come via VoIP and based on the incoming number it will be sent to a pots dial-peer where an application will handle the call. Once the call is handled it will be sent out again via a VoIP dial-peer.
The simple config would look like this (Please note that port 5/0:D is connected to Port 7/0:D)
dial-peer voice 1000 voip
voice-class codec 1
session protocol sipv2
session transport udp
incoming called-number .
dtmf-relay rtp-nte
ip qos dscp cs5 media
ip qos dscp cs5 signaling
no vad
!
dial-peer voice 8001 pots
service callingcard
incoming called-number 1234
port 5/0:D
!
dial-peer voice 8002 pots
service callingcard
incoming called-number 1234
port 7/0:D
!
dial-peer voice 8001 pots
service callingcard
incoming called-number 5678
port 5/0:D
!
dial-peer voice 8002 pots
service callingcard
incoming called-number 5678
port 7/0:D
!
dial-peer voice 2000 voip
huntstop
destination-pattern .T
voice-class codec 1
session target ipv4:1.1.1.1
!
dial-peer voice 3000 voip
huntstop
destination-pattern .T
voice-class codec 1
session target ipv4:2.2.2.2
incoming called-number 5678
1000 is the Incoming VoIP Peer, 2000 and 3000 are outgoing VoIP Peers. Users will either dial 1234 or 5678 to be handled by the desired application.
Question:
I wanna ensure that if users is connected to the system by dialing 5678, then the calls should leave ONLY VIA 3000 dial-peer. 1234 (or any other numbers I may add in future) should use 2000 peer and never use 5678. How can I do this? I tried adding 'incoming called number 5678' to peer 3000, but didn't help. Any suggestions?
Rgds
Shaf