03-12-2008 08:36 AM
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
03-19-2008 06:45 AM
Shaf,
You have a couple of options:
1. Change the destination-pattern of dial peer 3000 to 5678. This would make only calls to 5678 use this dial peer.
2. Create another dial peer with a destination pattern of 5678 with the same session target as dial peer 3000. This would allow other calls to continue to use dial peers 2000 and 3000 while all calls to 5678 would use the new dial peer.
Hope this helps. If so, please rate the post.
Brandon
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