[Asterisk-cvs] asterisk/channels chan_sip.c,1.703,1.704

markster at lists.digium.com markster at lists.digium.com
Wed Apr 13 13:54:54 CDT 2005


Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv11347/channels

Modified Files:
	chan_sip.c 
Log Message:
Add sched_when function (bug #4022)


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.703
retrieving revision 1.704
diff -u -d -r1.703 -r1.704
--- chan_sip.c	6 Apr 2005 21:12:32 -0000	1.703
+++ chan_sip.c	13 Apr 2005 18:46:35 -0000	1.704
@@ -6666,7 +6666,7 @@
 		ast_cli(fd, "Outgoinglimit: %d\r\n", peer->outgoinglimit);
 		ast_cli(fd, "Dynamic: %s\r\n", (ast_test_flag(peer, SIP_DYNAMIC)?"Y":"N"));
 		ast_cli(fd, "Callerid: %s\r\n", ast_callerid_merge(cbuf, sizeof(cbuf), peer->cid_name, peer->cid_num, ""));
-		ast_cli(fd, "RegExpire: %d\r\n", peer->expire);
+		ast_cli(fd, "RegExpire: %ld seconds\r\n", ast_sched_when(sched,peer->expire));
 		ast_cli(fd, "RegExpiry: %d\r\n", peer->expiry);
 		ast_cli(fd, "SIP-AuthInsecure: %s\r\n", insecure2str(ast_test_flag(peer, SIP_INSECURE)));
 		ast_cli(fd, "SIP-NatSupport: %s\r\n", nat2str(ast_test_flag(peer, SIP_NAT)));




More information about the svn-commits mailing list