Dial Plan

I know I have seen a similar answer in here somewhere, but searching today and i cant for the life of me find it.

What i am after is the correct and best way to make outgoing calls.

To explain fully, my system is comprised of a few SIP Trunks, ISDN and standard FXO lines. When someone makes an outgoing call i want it to select the first available line in the order I specify. Is it as simple as doing :-
(For simplicity i will dial 0 for an outside line)

exten => _0.,1,Dial(SIP/FirstTrunk/${EXTEN:1})
exten => _0.,2,Dial(SIP/SecondTrunk/${EXTEN:1})
exten => _0.,3,Dial(mISDN/1:1/${EXTEN:1})
exten => _0.,4,Dial(mISDN/1:2/${EXTEN:1})

So if someone dials an outside number, it just keeps trying down the list until it gets a match.

Ive just got a feeling that there is a better way to do this.

Again i apologise as i know i have seen a similar question related to Zaptel lines in here but i havent been able to find it.


Well, like zapata, in misdn there are groups, so just put both misdn channels in one group, then just dial that group, it will get the first available. So thats zapata and misdn that have groups, but sip does not. But other than that, I cant really think of a better way to do it.

I’ve tried to find how to dial a different channel on one mISDN port, but with no success. So this is the syntax :smile:. Where did you get it ? Some manual?