[Asterisk-cvs] zaptel zttool.c,1.8,1.9
markster at lists.digium.com
markster at lists.digium.com
Mon Feb 2 00:06:46 CST 2004
Update of /usr/cvsroot/zaptel
In directory mongoose.digium.com:/tmp/cvs-serv17842
Modified Files:
zttool.c
Log Message:
make zttool show "UNCONFIGURED" if there are no configured channels
Index: zttool.c
===================================================================
RCS file: /usr/cvsroot/zaptel/zttool.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- zttool.c 3 Jun 2003 03:10:53 -0000 1.8
+++ zttool.c 2 Feb 2004 06:15:28 -0000 1.9
@@ -121,8 +121,12 @@
/* Strip trailing / */
alarms[strlen(alarms)-1]='\0';
}
- } else
- strcpy(alarms, "OK");
+ } else {
+ if (s[span].numchans)
+ strcpy(alarms, "OK");
+ else
+ strcpy(alarms, "UNCONFIGURED");
+ }
snprintf(tmp, sizeof(tmp), "%-15s %s", alarms, s[span].desc);
return tmp;
More information about the svn-commits
mailing list