[Asterisk-cvs] asterisk/channels chan_sip.c,1.292.2.8,1.292.2.9

malcolmd at lists.digium.com malcolmd at lists.digium.com
Tue Feb 24 20:23:29 CST 2004


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

Modified Files:
      Tag: v1-0_stable
	chan_sip.c 
Log Message:
Fixed whoopsie regarding Bug # 1052


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.292.2.8
retrieving revision 1.292.2.9
diff -u -d -r1.292.2.8 -r1.292.2.9
--- chan_sip.c	24 Feb 2004 19:49:11 -0000	1.292.2.8
+++ chan_sip.c	25 Feb 2004 01:12:08 -0000	1.292.2.9
@@ -3796,10 +3796,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;
@@ -3819,7 +3815,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;




More information about the svn-commits mailing list