[Asterisk-cvs] asterisk/channels chan_iax2.c,1.82,1.83

markster at lists.digium.com markster at lists.digium.com
Mon Dec 15 09:22:51 CST 2003


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

Modified Files:
	chan_iax2.c 
Log Message:
Minor cleanup


Index: chan_iax2.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_iax2.c,v
retrieving revision 1.82
retrieving revision 1.83
diff -u -d -r1.82 -r1.83
--- chan_iax2.c	14 Dec 2003 21:13:02 -0000	1.82
+++ chan_iax2.c	15 Dec 2003 15:14:23 -0000	1.83
@@ -3577,11 +3577,11 @@
 			if  (option_verbose > 2)
 			ast_verbose(VERBOSE_PREFIX_3 "Registered '%s' (%s) at %s:%d\n", p->name, 
 				iaxs[callno]->state & IAX_STATE_AUTHENTICATED ? "AUTHENTICATED" : "UNAUTHENTICATED", inet_ntoa(sin->sin_addr), ntohs(sin->sin_port));
+			/* Update the host */
+			memcpy(&p->addr, sin, sizeof(p->addr));
+			/* Verify that the host is really there */
+			iax2_poke_peer(p);
 		}		
-		/* Update the host */
-		memcpy(&p->addr, sin, sizeof(p->addr));
-		/* Verify that the host is really there */
-		iax2_poke_peer(p);
 		/* Setup the expirey */
 		if (p->expire > -1)
 			ast_sched_del(sched, p->expire);




More information about the svn-commits mailing list