[asterisk-users] Discover connected Zap lines

Andreas van dem Helge joakimsen at gmail.com
Wed Apr 30 18:34:08 CDT 2008


in the CLI you can issue the command

>zap show status

e.g.:

pbxserver-doral*CLI> zap show status
Description                              Alarms     IRQ        bpviol     CRC4
Wildcard X101P Board 1                   RED        0          0          0

In this case the phone line is unplugged and the hardware is just a
cheap winmodem with the resistor removed. If the phone line were
plugged in there would not be a red alarm. Certainly any digital line
will provide the same sort of status notifications.

On Wed, Apr 30, 2008 at 3:07 PM, Vinz486 <vinz486 at gmail.com> wrote:
> Hi,
>  i have 2 FXO ports on my host (Asterisk 1.4 on Debian)..
>
>  In the production env i will not know if will be analog cable plugged
>  in port 1, 2 or both.
>
>  How can i discover this programmatically?
>
>  I see NOTICE messages on CLI upon plug and unplug lines: ho get these info?
>
>  Thanks.
>
>
>  --
>  PicoStreamer - the real WEB live streaming software
>  vinz486.com
>
>  _______________________________________________
>  -- 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