mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-24 22:58:21 +00:00
Make CLI sip show channel list the complete route set.
(closes issue ASTERISK-16877) Reported by: klaus3000 Patches: show-complete-routeset-patch.txt (license #5054) patch uploaded by klaus3000 (modified) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@351977 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -18970,7 +18970,19 @@ static char *sip_show_channel(struct ast_cli_entry *e, int cmd, struct ast_cli_a
|
||||
ast_cli(a->fd, " Need Destroy: %s\n", AST_CLI_YESNO(cur->needdestroy));
|
||||
ast_cli(a->fd, " Last Message: %s\n", cur->lastmsg);
|
||||
ast_cli(a->fd, " Promiscuous Redir: %s\n", AST_CLI_YESNO(ast_test_flag(&cur->flags[0], SIP_PROMISCREDIR)));
|
||||
ast_cli(a->fd, " Route: %s\n", cur->route ? cur->route->hop : "N/A");
|
||||
ast_cli(a->fd, " Route: ");
|
||||
if (cur->route) {
|
||||
struct sip_route *route;
|
||||
int first = 1;
|
||||
|
||||
for (route = cur->route; route; route = route->next) {
|
||||
ast_cli(a->fd, "%s<%s>", first ? "" : ", ", route->hop);
|
||||
first = 0;
|
||||
}
|
||||
ast_cli(a->fd, "\n");
|
||||
} else {
|
||||
ast_cli(a->fd, "N/A\n");
|
||||
}
|
||||
ast_cli(a->fd, " DTMF Mode: %s\n", dtmfmode2str(ast_test_flag(&cur->flags[0], SIP_DTMF)));
|
||||
ast_cli(a->fd, " SIP Options: ");
|
||||
if (cur->sipoptions) {
|
||||
|
Reference in New Issue
Block a user