[asterisk-commits] trunk r8835 - /trunk/channels/chan_sip.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Sat Jan 28 10:17:39 MST 2006


Author: oej
Date: Sat Jan 28 11:17:37 2006
New Revision: 8835

URL: http://svn.digium.com/view/asterisk?rev=8835&view=rev
Log:
- Remove unused "resetinvite" variable
- Use TRUE/FALSE for fastrestart

Modified:
    trunk/channels/chan_sip.c

Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?rev=8835&r1=8834&r2=8835&view=diff
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Sat Jan 28 11:17:37 2006
@@ -1383,7 +1383,6 @@
 {
 	struct sip_pkt *cur, *prev = NULL;
 	int res = -1;
-	int resetinvite = 0;
 
 	/* Just in case... */
 	char *msg;
@@ -1399,7 +1398,6 @@
 			if (!resp && (seqno == p->pendinginvite)) {
 				ast_log(LOG_DEBUG, "Acked pending invite %d\n", p->pendinginvite);
 				p->pendinginvite = 0;
-				resetinvite = 1;
 			}
 			/* this is our baby */
 			if (prev)
@@ -11316,7 +11314,7 @@
 	struct sip_pvt *sip;
 	struct sip_peer *peer = NULL;
 	time_t t;
-	int fastrestart =0;
+	int fastrestart = FALSE;
 	int lastpeernum = -1;
 	int curpeernum;
 	int reloading;
@@ -11412,12 +11410,12 @@
 
 		/* needs work to send mwi to realtime peers */
 		time(&t);
-		fastrestart = 0;
+		fastrestart = FALSE;
 		curpeernum = 0;
 		peer = NULL;
 		ASTOBJ_CONTAINER_TRAVERSE(&peerl, !peer, do {
 			if ((curpeernum > lastpeernum) && !ast_strlen_zero(iterator->mailbox) && ((t - iterator->lastmsgcheck) > global_mwitime)) {
-				fastrestart = 1;
+				fastrestart = TRUE;
 				lastpeernum = curpeernum;
 				peer = ASTOBJ_REF(iterator);
 			};



More information about the asterisk-commits mailing list