04-19-2012 03:48 PM - edited 03-16-2019 10:44 AM
Anyone knows a way in IOS to route based on number of calls. I want to send all incoming SIP calls to one SIP destinations, and once there are 10 calls, route to the second destination. If there's not anything native in IOS, I'd like to do this possibly with EEM (but not TCL).
Solved! Go to Solution.
04-19-2012 04:26 PM
Hi,
May be someting like this :-
!
dial-peer voice 100 voip
preference 1
desc ** TEST 1 **
destination-pattern 1234
incoming called-number .
Session protocol sipv2
session target ipv4:192.168.1.100
Dtmf-relay rtp-nte
codec g711ulaw
max-conn 10
ip qos dscp ef media
ip qos dscp cs3 sig
no vad
!
!
dial-peer voice 200 voip
preference 2
desc ** TEST 2**
destination-pattern 1234
incoming called-number .
Session protocol sipv2
session target ipv4:192.168.1.200
Dtmf-relay rtp-nte
codec g711ulaw
ip qos dscp ef media
ip qos dscp cs3 sig
no vad
!
The 1st 10 calls will route tp 192.168.1.100 as it is preference 1 after that it will use 192.168.1.200
HTH
Alex
04-19-2012 04:26 PM
Hi,
May be someting like this :-
!
dial-peer voice 100 voip
preference 1
desc ** TEST 1 **
destination-pattern 1234
incoming called-number .
Session protocol sipv2
session target ipv4:192.168.1.100
Dtmf-relay rtp-nte
codec g711ulaw
max-conn 10
ip qos dscp ef media
ip qos dscp cs3 sig
no vad
!
!
dial-peer voice 200 voip
preference 2
desc ** TEST 2**
destination-pattern 1234
incoming called-number .
Session protocol sipv2
session target ipv4:192.168.1.200
Dtmf-relay rtp-nte
codec g711ulaw
ip qos dscp ef media
ip qos dscp cs3 sig
no vad
!
The 1st 10 calls will route tp 192.168.1.100 as it is preference 1 after that it will use 192.168.1.200
HTH
Alex
04-29-2012 12:11 PM
I'll have to give that a try, thanks!
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