[Asterisk-cvs] asterisk/channels chan_zap.c,1.344.2.6,1.344.2.7

citats at lists.digium.com citats at lists.digium.com
Wed Oct 27 10:38:36 CDT 2004


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

Modified Files:
      Tag: v1-0
	chan_zap.c 
Log Message:
Backport chan_zap.c part of bug 2703 to 1.0

Index: chan_zap.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v
retrieving revision 1.344.2.6
retrieving revision 1.344.2.7
diff -u -d -r1.344.2.6 -r1.344.2.7
--- chan_zap.c	25 Oct 2004 17:57:25 -0000	1.344.2.6
+++ chan_zap.c	27 Oct 2004 14:41:55 -0000	1.344.2.7
@@ -8258,10 +8258,19 @@
 	}
 	for(x=0;x<NUM_DCHANS;x++) {
 		if (pris[span-1].dchannels[x]) {
+			char *info_str = NULL;
 			ast_cli(fd, "%s D-channel: %d\n", pri_order(x), pris[span-1].dchannels[x]);
 			build_status(status, sizeof(status), pris[span-1].dchanavail[x], pris[span-1].dchans[x] == pris[span-1].pri);
 			ast_cli(fd, "Status: %s\n", status);
+#ifdef PRI_DUMP_INFO_STR
+			info_str = pri_dump_info_str(pris[span-1].pri);
+			if (info_str) {
+				ast_cli(fd, "%s", info_str);
+				free(info_str);
+			}
+#else
 			pri_dump_info(pris[span-1].pri);
+#endif
 			ast_cli(fd, "\n");
 		}
 	}




More information about the svn-commits mailing list