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

malcolmd at lists.digium.com malcolmd at lists.digium.com
Tue Feb 24 20:26:25 CST 2004


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

Modified Files:
      Tag: v1-0_stable
	chan_sip.c 
Log Message:
Bug # 1052 again..this time I've got it..I'm sure of it.. ;)


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.292.2.9
retrieving revision 1.292.2.10
diff -u -d -r1.292.2.9 -r1.292.2.10
--- chan_sip.c	25 Feb 2004 01:12:08 -0000	1.292.2.9
+++ chan_sip.c	25 Feb 2004 01:15:05 -0000	1.292.2.10
@@ -3795,7 +3795,11 @@
 					sip_cancel_destroy(p);
 					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
+				} else {
 						/* Say OK and ask subsystem to retransmit msg counter */
 						transmit_response_with_date(p, "200 OK", req);
 						peer->lastmsgssent = -1;
@@ -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