cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
501
Views
0
Helpful
2
Replies

dial-peer routing based on number of connections

Roman Rodichev
Level 7
Level 7

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).

1 Accepted Solution

Accepted Solutions

acampbell
VIP Alumni
VIP Alumni

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

Regards, Alex. Please rate useful posts.

View solution in original post

2 Replies 2

acampbell
VIP Alumni
VIP Alumni

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

Regards, Alex. Please rate useful posts.

I'll have to give that a try, thanks!