On Wed, Jul 22, 2009 at 12:40:23PM -0500, Tilghman Lesher wrote:
>
> Yes, but on the other side of the switch, a station can detect battery. This
> is what the Digium analog cards do in order to report whether a line is in
> "red alarm" status or not. Whether the analog gateways do this or not is
> another question entirely, but it's certainly possible.
Xorcom "gateways" certainly do. Again, that's for FXOs
And generally
perl -MDahdi -e '
my @chans = map {$_->chans()} Dahdi::spans();
foreach (@chans) {
next unless $_->type() eq 'FXO';
printf "%3d %s\n",$_->num, $_->battery;
}'
The "battery" method ATM only implemented on Astribanks in the perl
modules, however this should be soon fixed.
--
Tzafrir Cohen
icq#16849755 jabber:[email protected]
+972-50-7952406 mailto:[email protected]
http://www.xorcom.com iax:[email protected]/tzafrir
_______________________________________________
-- 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