[Asterisk-cvs] asterisk/channels chan_sip.c,1.705,1.706

kpfleming at lists.digium.com kpfleming at lists.digium.com
Tue Apr 26 20:39:39 CDT 2005


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

Modified Files:
	chan_sip.c 
Log Message:
formatting cleanup (bug #4088)


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.705
retrieving revision 1.706
diff -u -d -r1.705 -r1.706
--- chan_sip.c	21 Apr 2005 06:02:43 -0000	1.705
+++ chan_sip.c	27 Apr 2005 01:29:28 -0000	1.706
@@ -5319,24 +5319,24 @@
 			ASTOBJ_UNREF(peer,sip_destroy_peer);
 	}
 	if (peer) {
-			if (!ast_test_flag(peer, SIP_DYNAMIC)) {
-				ast_log(LOG_NOTICE, "Peer '%s' is trying to register, but not configured as host=dynamic\n", peer->name);
-			} else {
-				ast_copy_flags(p, peer, SIP_NAT);
-				transmit_response(p, "100 Trying", req);
-				if (!(res = check_auth(p, req, p->randdata, sizeof(p->randdata), peer->name, peer->secret, peer->md5secret, SIP_REGISTER, uri, 0, ignore))) {
-					sip_cancel_destroy(p);
-					if (parse_contact(p, peer, req)) {
-						ast_log(LOG_WARNING, "Failed to parse contact info\n");
-					} else {
-						update_peer(peer, p->expiry);
-						/* Say OK and ask subsystem to retransmit msg counter */
-						transmit_response_with_date(p, "200 OK", req);
-						peer->lastmsgssent = -1;
-						res = 0;
-					}
-				} 
-			}
+		if (!ast_test_flag(peer, SIP_DYNAMIC)) {
+			ast_log(LOG_NOTICE, "Peer '%s' is trying to register, but not configured as host=dynamic\n", peer->name);
+		} else {
+			ast_copy_flags(p, peer, SIP_NAT);
+			transmit_response(p, "100 Trying", req);
+			if (!(res = check_auth(p, req, p->randdata, sizeof(p->randdata), peer->name, peer->secret, peer->md5secret, SIP_REGISTER, uri, 0, ignore))) {
+				sip_cancel_destroy(p);
+				if (parse_contact(p, peer, req)) {
+					ast_log(LOG_WARNING, "Failed to parse contact info\n");
+				} else {
+					update_peer(peer, p->expiry);
+					/* Say OK and ask subsystem to retransmit msg counter */
+					transmit_response_with_date(p, "200 OK", req);
+					peer->lastmsgssent = -1;
+					res = 0;
+				}
+			} 
+		}
 	}
 	if (!peer && autocreatepeer) {
 		/* Create peer if we have autocreate mode enabled */




More information about the svn-commits mailing list