How to Distrubute outbound calls between multiple channels


I have 2 port PRI cards with 2 E1 CONNECTIONS, but when outbound calls are made it uses only one port E1 connection

I want to use both PRI connections, how can i distribute call to both PRI channels

example: when outbound calls are made i want 5 calls to be made by 1st PRI port and next 5 calls from 2nd PRI port

can i change anything in channels or grouping in asterisk

Please can anybody help me


Use GROUP_COUNT() function

You can group them in the chan_dahdi.conf file, then when making a call, send the call to

If the group is 1.

g1 = ascending ordered channel use
G1 = descending
r1 = round_robin
R1 = round_robin