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

markster at lists.digium.com markster at lists.digium.com
Sun Dec 14 15:21:31 CST 2003


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

Modified Files:
	chan_iax2.c 
Log Message:
Fix qualify + register


Index: chan_iax2.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_iax2.c,v
retrieving revision 1.81
retrieving revision 1.82
diff -u -d -r1.81 -r1.82
--- chan_iax2.c	9 Dec 2003 23:55:17 -0000	1.81
+++ chan_iax2.c	14 Dec 2003 21:13:02 -0000	1.82
@@ -3577,10 +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));
-			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