[Asterisk-cvs] asterisk/channels chan_zap.c,1.464,1.465

kpfleming at lists.digium.com kpfleming at lists.digium.com
Thu Jun 23 22:37:01 CDT 2005


Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv24570/channels

Modified Files:
	chan_zap.c 
Log Message:
ensure that 'zap show status' always generates output, even when there are no interfaces present (bug #3585)


Index: chan_zap.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v
retrieving revision 1.464
retrieving revision 1.465
diff -u -d -r1.464 -r1.465
--- chan_zap.c	24 Jun 2005 02:15:04 -0000	1.464
+++ chan_zap.c	24 Jun 2005 02:37:32 -0000	1.465
@@ -9373,6 +9373,7 @@
 	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");




More information about the svn-commits mailing list