]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
chan_dahdi: dahdi show channels slices PRI channel dnid on output
authorKevin Harwell <kharwell@digium.com>
Fri, 3 Jan 2014 19:02:25 +0000 (19:02 +0000)
committerKevin Harwell <kharwell@digium.com>
Fri, 3 Jan 2014 19:02:25 +0000 (19:02 +0000)
dahdi show channels output slices the callerid (which is dnid copied over on
PRI channels). If the channel naming structures look like:

 'DAHDI/i1/1408409XXXX-6'

then the output slices 1408409XXXX down to 1408409XXX. This patch just opens
it up to 15 chars so you can see the whole thing.

(closes issue ASTERISK-22918)
Reported by: outtolunc
Patches:
     svn_chan_dahdi.c.format12_15.diff.txt uploaded by outtolunc (license 5198)
........

Merged revisions 404784 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 404785 from http://svn.asterisk.org/svn/asterisk/branches/11
........

Merged revisions 404786 from http://svn.asterisk.org/svn/asterisk/branches/12

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@404787 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_dahdi.c

index a97f3c3a28697e6bc84b789716de1016b6ea8972..3cd71edc1d30a1c28235811aa22e36bc5b15d86e 100644 (file)
@@ -14930,8 +14930,8 @@ static int action_dahdirestart(struct mansession *s, const struct message *m)
 
 static char *dahdi_show_channels(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
 {
-#define FORMAT "%7s %-10.10s %-15.15s %-10.10s %-20.20s %-10.10s %-10.10s %-32.32s\n"
-#define FORMAT2 "%7s %-10.10s %-15.15s %-10.10s %-20.20s %-10.10s %-10.10s %-32.32s\n"
+#define FORMAT "%7s %-15.15s %-15.15s %-10.10s %-20.20s %-10.10s %-10.10s %-32.32s\n"
+#define FORMAT2 "%7s %-15.15s %-15.15s %-10.10s %-20.20s %-10.10s %-10.10s %-32.32s\n"
        ast_group_t targetnum = 0;
        int filtertype = 0;
        struct dahdi_pvt *tmp = NULL;