[asterisk-users] Dial out through multiple Zap groups

Eric "ManxPower" Wieling eric at fnords.org
Tue Jul 24 16:01:58 CDT 2007


You cannot detect disconnected analog lines in Asterisk.  You can't even 
determine of the lines have dialtone.  All you can do is determine if 
there is a current active asterisk managed call.



Noah Miller wrote:
> Hi Vieri -
> 
>> I'm trying to set a rule to dial out through multiple
>> Zap groups so that, say, g0 is the cheaper POTS lines
>> group
>> and must be used first. However, if g0 is busy or
>> disconnected then try dialing out g1.
>>
>> My g0 group is made up of 4 analog lines connected to
>> a 4-FXO card. I disconnected the RJ-11 wires from the
>> FXO card
>> to simulate a line disconnection. So theoretically all
>> calls should immediately go out through g1 but they
>> don't.
>> They get "stuck" on g0 as I can see in the asterisk
> 
> You've discovered a big limitation in analog lines.  If this were a
> PRI or BRI, the lines would behave as you want, but analog lines
> won't.
> 
> You can try using ChanIsAvail() to test beforehand if the zap channels
> will accept a call.  I don't know if it will work in this fashion
> (I've never tried).
> 
> 
> - Noah
> 
> _______________________________________________
> --Bandwidth and Colocation Provided by http://www.api-digital.com--
> 
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
> 




More information about the asterisk-users mailing list