diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2005-06-24 02:37:32 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2005-06-24 02:37:32 +0000 |
commit | 9f4ad3363d6989a4be25e68b8c218cb0866c8646 (patch) | |
tree | 1eee4b6a1c404f0d2d0f471e5f5f0e0420e581d9 /channels | |
parent | 5769e904272409d36c97802ec577967bb96f965a (diff) |
ensure that 'zap show status' always generates output, even when there are no interfaces present (bug #3585)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5996 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rwxr-xr-x | channels/chan_zap.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c index 6ad37d2bc..9f412703b 100755 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -9373,6 +9373,7 @@ static int zap_show_status(int fd, int argc, char *argv[]) { ctl = open("/dev/zap/ctl", O_RDWR); if (ctl < 0) { fprintf(stderr, "Unable to open /dev/zap/ctl: %s\n", strerror(errno)); + ast_cli(fd, "No Zaptel interface found.\n"); return RESULT_FAILURE; } ast_cli(fd,FORMAT2, "Description", "Alarms","IRQ","bpviol","CRC4"); |