]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Instead of giving the scheduled item ID on a peer expiration, give the time until...
authorJoshua Colp <jcolp@digium.com>
Thu, 6 Jul 2006 15:48:07 +0000 (15:48 +0000)
committerJoshua Colp <jcolp@digium.com>
Thu, 6 Jul 2006 15:48:07 +0000 (15:48 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@37173 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index d503661c6e92363f17dc3cc3897f31af4a078ff8..6b78c2da229c62a5214399d3e094d1a9981c9904 100644 (file)
@@ -8051,7 +8051,7 @@ static int _sip_show_peer(int type, int fd, struct mansession *s, struct message
                ast_cli(fd, "  Call limit   : %d\n", peer->call_limit);
                ast_cli(fd, "  Dynamic      : %s\n", (ast_test_flag(&peer->flags_page2, SIP_PAGE2_DYNAMIC)?"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, "  Expire       : %ld\n", ast_sched_when(sched, peer->expire));
                ast_cli(fd, "  Insecure     : %s\n", insecure2str(ast_test_flag(peer, SIP_INSECURE_PORT), ast_test_flag(peer, SIP_INSECURE_INVITE)));
                ast_cli(fd, "  Nat          : %s\n", nat2str(ast_test_flag(peer, SIP_NAT)));
                ast_cli(fd, "  ACL          : %s\n", (peer->ha?"Yes":"No"));