From 5a86fcf1f8e4c7e602404ac8cd69e15c5fb236ea Mon Sep 17 00:00:00 2001 From: Joshua Colp Date: Thu, 6 Jul 2006 15:48:07 +0000 Subject: [PATCH] Instead of giving the scheduled item ID on a peer expiration, give the time until they expire (issue #7455 reported by slavon) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@37173 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_sip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channels/chan_sip.c b/channels/chan_sip.c index d503661c6e..6b78c2da22 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -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, "")); - 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"));