[Asterisk-cvs] asterisk/channels chan_sip.c,1.300,1.301

malcolmd at lists.digium.com malcolmd at lists.digium.com
Tue Feb 24 20:28:06 CST 2004


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

Modified Files:
	chan_sip.c 
Log Message:
Bug # 1052 Got it this time..I'm sure of it ;)


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.300
retrieving revision 1.301
diff -u -d -r1.300 -r1.301
--- chan_sip.c	24 Feb 2004 19:48:46 -0000	1.300
+++ chan_sip.c	25 Feb 2004 01:16:45 -0000	1.301
@@ -3796,7 +3796,11 @@
 					if (parse_contact(p, peer, req)) {
 						ast_log(LOG_WARNING, "Failed to parse contact info\n");
 					} else {
-						/* Say OK and ask subsystem to retransmit msg counter */
+#ifdef MYSQL_FRIENDS
+					if (peer->temponly)
+						mysql_update_peer(peer->name, &peer->addr, peer->username, p->expiry);
+#endif							
+					/* Say OK and ask subsystem to retransmit msg counter */
 						transmit_response_with_date(p, "200 OK", req);
 						peer->lastmsgssent = -1;
 						res = 0;
@@ -3815,10 +3819,6 @@
 			if (parse_contact(p, peer, req)) {
 				ast_log(LOG_WARNING, "Failed to parse contact info\n");
 			} else {
-#ifdef MYSQL_FRIENDS
-				if (peer->temponly)
-					mysql_update_peer(peer->name, &peer->addr, peer->username, p->expiry);
-#endif					
 				/* Say OK and ask subsystem to retransmit msg counter */
 				transmit_response_with_date(p, "200 OK", req);
 				peer->lastmsgssent = -1;




More information about the svn-commits mailing list