diff --git a/channels/h323/ast_h323.cpp b/channels/h323/ast_h323.cpp
index 9bb122fc6c0d4c3d5882ed071378a793369ba3e1..16a63ac3daa2b6ea6bd233ab9ca0cd680578713f 100755
--- a/channels/h323/ast_h323.cpp
+++ b/channels/h323/ast_h323.cpp
@@ -723,14 +723,15 @@ BOOL MyH323Connection::OnStartLogicalChannel(H323Channel & channel)
 	if (h323debug) {
 		cout <<  "		-- channelsOpen = " << channelsOpen << endl;
 	}
+
 	H323_ExternalRTPChannel & external = (H323_ExternalRTPChannel &)channel;
  	external.GetRemoteAddress(remoteIpAddress, remotePort); 
 
 	if (h323debug) {
-		cout << "		-- remoteIpAddress: " << remoteIpAddress << endl;
-		cout << "		-- remotePort: " << remotePort << endl;
-		cout << "		-- ExternalIpAddress: " << externalIpAddress << endl;
-		cout << "		-- ExternalPort: " << externalPort << endl;
+		if (channel.GetDirection()==H323Channel::IsReceiver) {
+			cout << "		-- remoteIpAddress: " << remoteIpAddress << endl;
+			cout << "		-- remotePort: " << remotePort << endl;
+		}
 	}
 	/* Notify Asterisk of remote RTP information */
 	on_start_logical_channel(GetCallReference(), (const char *)remoteIpAddress.AsString(), remotePort);
@@ -784,16 +785,8 @@ BOOL MyH323_ExternalRTPChannel::OnReceivedAckPDU(const H245_H2250LogicalChannelA
 	PIPSocket::Address remoteIpAddress;
 	WORD remotePort;
 
-	if (h323debug) {
-		cout << "	MyH323_ExternalRTPChannel::OnReceivedAckPDU " << endl;
-	}
-
 	if (H323_ExternalRTPChannel::OnReceivedAckPDU(param)) {
 		H323_ExternalRTPChannel::GetRemoteAddress(remoteIpAddress, remotePort);
-		if (h323debug) {
-			cout << "		-- remoteIpAddress: " << remoteIpAddress << endl;
-			cout << "		-- remotePort: " << remotePort << endl;
-		}
 		/* Notify Asterisk of remote RTP information */
 		on_start_logical_channel(connection.GetCallReference(), (const char *)remoteIpAddress.AsString(), remotePort);
 		return TRUE;
@@ -801,7 +794,6 @@ BOOL MyH323_ExternalRTPChannel::OnReceivedAckPDU(const H245_H2250LogicalChannelA
 	return FALSE;
 }
 
-
 /** IMPLEMENTATION OF C FUNCTIONS */
 
 /**
diff --git a/channels/h323/ast_h323.h b/channels/h323/ast_h323.h
index 966edabe8d4b061a0b65cf2716615b3cedc78893..4be7f7440036aa953f565dbba49abd19fd30ce5a 100755
--- a/channels/h323/ast_h323.h
+++ b/channels/h323/ast_h323.h
@@ -285,7 +285,6 @@ class MyH323_ExternalRTPChannel : public H323_ExternalRTPChannel {
 
 	/* Destructor */
 	~MyH323_ExternalRTPChannel();
-
 	
      	BOOL OnReceivedAckPDU(const H245_H2250LogicalChannelAckParameters & param);