[Asterisk-Users] reverse the selection order of zap channels for outgoing calls

Paul Zimm pbzinc at dejazzd.com
Fri Sep 17 04:51:26 MST 2004


exten => _9NXXXXXX,1,Dial(Zap/G1/${EXTEN})

Zap/g1 = hunts for the first available channel in group 1
Zap/G1 =  hunts for the first available channel in reverse order in group 1

>
> Is it possible, code wise, configuration wise, at all - to reverse the
> order in which the available zap channels are used for *outgoing* calls?
>
> Code wise, I looked at the channel structure and it appears as though
> there is only a next pointer, not a previous pointer, so to 'easily' to
> this in the code would require a change to the code that reads in
> zapata.conf?
>
> I know I could simply plug the wires in 'backwards' for POTS lines, but
> I was just wondering if this could be done otherwise.
>
> Thanks,
> Chris
>
>




More information about the asterisk-users mailing list