[Asterisk-cvs] asterisk/channels chan_h323.c,1.25,1.26

jeremy at lists.digium.com jeremy at lists.digium.com
Sun Jan 11 11:59:49 CST 2004


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

Modified Files:
	chan_h323.c 
Log Message:
don't try to print out username before its copied


Index: chan_h323.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_h323.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -d -r1.25 -r1.26
--- chan_h323.c	11 Jan 2004 02:20:01 -0000	1.25
+++ chan_h323.c	11 Jan 2004 17:51:35 -0000	1.26
@@ -822,11 +822,11 @@
 			p->nonCodecCapability &= ~AST_RTP_DTMF;
 	}
 
-
+	if (ext) {
+		strncpy(p->username, ext, sizeof(p->username) - 1);
+	}
 	ast_log(LOG_DEBUG, "Host: %s\tUsername: %s\n", host, p->username);
 
-	if (ext)
-		strncpy(p->username, ext, sizeof(p->username) - 1);
 	tmpc = oh323_new(p, AST_STATE_DOWN, host);
 	if (!tmpc)
 		oh323_destroy(p);




More information about the svn-commits mailing list