SIP Trunk groups?

I have a particular scenario I would like to try. I’m not sure if this can be done with * or not so I’d like to ask.

I have 2 identical devices (Cisco 2432 IADs) that are each capable of handling a single PRI each. I’d like to have each one talk to * via SIP and but route outbound calls from * out the SIP trunks in such a way that when the first PRI on the first SIP trunk is full that * will try the call on the next SIP trunk for the next outbound call.

I’m assuming there’s probably some method of doing this in the extensions.conf but I’m not sure what to search for exactly because I’ve always been used to having groups of trunks being called “trunk groups”.

Anything you can point me at or tell me about will be appreciated.

Well, you do
exten => _X.,1,Dial(cisco1)
exten => _X.,2,Dial(cisco2)

where * would dial the cisco1, and if cisco1 returned Congestion, the cisco would be dialled. Or a better way:

exten => _X.,1,Dial(cisco1)
exten => _X.,2,Goto(pd-${DIALSTATUS})

exten => pd-CONGESTION,1,Dial(cisco2)

So cisco would alwasys be dialled first, then cisco2. Or maybe you want a group, like in zapata, then I have some code that would do a R or r, so it would round-robin on the cisco’s. Say if you want it.


I new it would probably be something very simple in the extensions.conf.

My brain just can’t get off the idea of trunkgroups, so when I recently started tinkering with asterisk it broke my brain.