I am new to asterisk so try to bear with me. I am using asterisk 1.6 + Asterisk Gui 2.0, and this is the output of the extension.conf file. Let me tell you a bit about what I have and what I want to do.
I have 2 FXS and 2 FXO, so I have to analog phone lines and two analog phone devices. What I’d like is to fallback automatically to the secondary analog phone line if the default is busy.
What I have configured so far is:
1.- When I dial 9, I get the first phone line:
exten = _904XXXXXXXXX!,1,Macro(trunkdial,${trunk_2}/${EXTEN:1},${trunk_2_cid})
comment = _904XXXXXXXXX!,1,Mobiles 1,standard
2.- When I dial 91, I get the second phone line
exten = _9104XXXXXXXXX!,1,Macro(trunkdial,${trunk_1}/${EXTEN:2},${trunk_1_cid})
comment = _9104XXXXXXXXX!,1,Mobiles 2,standard
So as you can see it is not automatic, what I understood from the explanation above is that I would have to substitute the configuration of each trunk for one configuration, correct me if i am wrong:
exten = _904XXXXXXXXX!,1,Macro(trunkdial,${trunk_2}/${EXTEN:1},${trunk_2_cid})
exten = _904XXXXXXXXX!,2,Macro(trunkdial,${trunk_1}/${EXTEN:2},${trunk_1_cid})
comment = _904XXXXXXXXX!,???,Mobiles,standard
Thanks for your help!!!
Regards,
Carlos V.