]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
'iax show peer blah' now outputs whether or not peer 'blah' is in trunk mode or not.
authorDavid Vossel <dvossel@digium.com>
Thu, 28 May 2009 15:51:52 +0000 (15:51 +0000)
committerDavid Vossel <dvossel@digium.com>
Thu, 28 May 2009 15:51:52 +0000 (15:51 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@197620 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax2.c

index 8ef2acc6f9e34da0d8934695752aaea038226c15..32a730a1688ac818e2d82c32df38288da75113da 100644 (file)
@@ -2512,6 +2512,7 @@ static int iax2_show_peer(int fd, int argc, char *argv[])
                ast_cli(fd, "  Context      : %s\n", peer->context);
                ast_cli(fd, "  Mailbox      : %s\n", peer->mailbox);
                ast_cli(fd, "  Dynamic      : %s\n", ast_test_flag(peer, IAX_DYNAMIC) ? "Yes":"No");
+               ast_cli(fd, "  Trunk        : %s\n", ast_test_flag(peer, IAX_TRUNK) ? "Yes" : "No");
                ast_cli(fd, "  Callerid     : %s\n", ast_callerid_merge(cbuf, sizeof(cbuf), peer->cid_name, peer->cid_num, "<unspecified>"));
                ast_cli(fd, "  Expire       : %d\n", peer->expire);
                ast_cli(fd, "  ACL          : %s\n", (peer->ha?"Yes":"No"));