dect
/
asterisk
Archived
13
0
Fork 0

ensure that 'zap show status' always generates output, even when there are no interfaces present (bug #3585)

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5996 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
kpfleming 2005-06-24 02:37:32 +00:00
parent 3d921418ac
commit 3b5b886721
1 changed files with 1 additions and 0 deletions

View File

@ -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");