[Asterisk-cvs] asterisk/channels/h323 ast_h323.cpp,1.47,1.48

jeremy at lists.digium.com jeremy at lists.digium.com
Thu May 20 17:43:23 CDT 2004


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

Modified Files:
	ast_h323.cpp 
Log Message:
backout code optimization, add more explict error reporting

Index: ast_h323.cpp
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/h323/ast_h323.cpp,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -d -r1.47 -r1.48
--- ast_h323.cpp	20 May 2004 09:00:04 -0000	1.47
+++ ast_h323.cpp	20 May 2004 21:56:12 -0000	1.48
@@ -520,6 +520,7 @@
 	PString sourceName;
 	PString sourceAliases;	
 	PString destAliases;
+	PString sourceIp;
 	PIPSocket::Address Ip;
 	WORD sourcePort;
 	char *s, *s1; 
@@ -555,8 +556,11 @@
 	cd.call_source_name = (const char *)sourceName;
 
 	GetSignallingChannel()->GetRemoteAddress().GetIpAndPort(Ip, sourcePort);
-	cd.sourceIp = (const char *)Ip.AsString();
-	
+  	sourceIp = Ip.AsString();
+ 	cd.sourceIp = (const char *)sourceIp;
+ 	
+
+
 	/* Notify Asterisk of the request */
 	int res = on_incoming_call(cd); 
 
@@ -695,7 +699,7 @@
 		return NULL;
 	}
 
-        GetControlChannel().GetLocalAddress().GetIpAndPort(externalIpAddress, port);
+	GetControlChannel().GetLocalAddress().GetIpAndPort(externalIpAddress, port);
 	externalPort = info->port;
 	
 	if (h323debug) {




More information about the svn-commits mailing list