diff options
author | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-12-05 12:58:12 +0000 |
---|---|---|
committer | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-12-05 12:58:12 +0000 |
commit | 8694b5efff61e2e92c2ccbec5f7c174cb3c78425 (patch) | |
tree | d94a0a0f33b12c6c2269378a66a58c7dc23fc919 | |
parent | bb78883d21bfeac4d8851a1bffb6ea5f4b47d479 (diff) |
Remove the cseqs from "sip show channel" and make more place for the call ID.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@91151 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | channels/chan_sip.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index d4532521f..26965318d 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -12016,9 +12016,9 @@ struct __show_chan_arg { int numchans; /* return value */ }; -#define FORMAT3 "%-15.15s %-10.10s %-11.11s %-15.15s %-13.13s %-15.15s %-10.10s\n" -#define FORMAT2 "%-15.15s %-10.10s %-11.11s %-11.11s %-4.4s %-7.7s %-15.15s\n" -#define FORMAT "%-15.15s %-10.10s %-11.11s %5.5d/%5.5d %-4.4s %-3.3s %-3.3s %-15.15s %-10.10s\n" +#define FORMAT3 "%-15.15s %-10.10s %-15.15s %-15.15s %-13.13s %-15.15s %-10.10s\n" +#define FORMAT2 "%-15.15s %-10.10s %-15.15s %-4.4s %-7.7s %-15.15s\n" +#define FORMAT "%-15.15s %-10.10s %-15.15s %-4.4s %-3.3s %-3.3s %-15.15s %-10.10s\n" /*! \brief callback for show channel|subscription */ static int show_channels_cb(void *__cur, void *__arg, int flags) @@ -12036,7 +12036,6 @@ static int show_channels_cb(void *__cur, void *__arg, int flags) ast_cli(arg->fd, FORMAT, ast_inet_ntoa(dst->sin_addr), S_OR(cur->username, S_OR(cur->cid_num, "(None)")), cur->callid, - cur->ocseq, cur->icseq, ast_getformatname_multiple(formatbuf, sizeof(formatbuf), cur->owner ? cur->owner->nativeformats : 0), cli_yesno(ast_test_flag(&cur->flags[1], SIP_PAGE2_CALL_ONHOLD)), cur->needdestroy ? "(d)" : "", @@ -12089,7 +12088,7 @@ static char *sip_show_channels(struct ast_cli_entry *e, int cmd, struct ast_cli_ return CLI_SHOWUSAGE; arg.subscriptions = !strcasecmp(a->argv[e->args - 1], "subscriptions"); if (!arg.subscriptions) - ast_cli(arg.fd, FORMAT2, "Peer", "User/ANR", "Call ID", "Seq (Tx/Rx)", "Format", "Hold", "Last Message"); + ast_cli(arg.fd, FORMAT2, "Peer", "User/ANR", "Call ID", "Format", "Hold", "Last Message"); else ast_cli(arg.fd, FORMAT3, "Peer", "User", "Call ID", "Extension", "Last state", "Type", "Mailbox"); |