]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Added "Connected Line ID" and "Connected Line ID Name" to "core show channel" output.
authorRichard Mudgett <rmudgett@digium.com>
Mon, 11 Apr 2011 22:27:25 +0000 (22:27 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Mon, 11 Apr 2011 22:27:25 +0000 (22:27 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@313366 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/cli.c

index 7f4c1791fd76fb2bd883806e869b5163ebccad22..8fc3033f307f3210e685a3d1b19cd08cb3110513 100644 (file)
@@ -1438,6 +1438,8 @@ static char *handle_showchan(struct ast_cli_entry *e, int cmd, struct ast_cli_ar
                "       LinkedID: %s\n"
                "      Caller ID: %s\n"
                " Caller ID Name: %s\n"
+               "Connected Line ID: %s\n"
+               "Connected Line ID Name: %s\n"
                "    DNID Digits: %s\n"
                "       Language: %s\n"
                "          State: %s (%d)\n"
@@ -1466,6 +1468,8 @@ static char *handle_showchan(struct ast_cli_entry *e, int cmd, struct ast_cli_ar
                c->name, c->tech->type, c->uniqueid, c->linkedid,
                S_COR(c->caller.id.number.valid, c->caller.id.number.str, "(N/A)"),
                S_COR(c->caller.id.name.valid, c->caller.id.name.str, "(N/A)"),
+               S_COR(c->connected.id.number.valid, c->connected.id.number.str, "(N/A)"),
+               S_COR(c->connected.id.name.valid, c->connected.id.name.str, "(N/A)"),
                S_OR(c->dialed.number.str, "(N/A)"),
                c->language,    
                ast_state2str(c->_state), c->_state, c->rings,