[Asterisk-cvs] asterisk/channels/h323 ast_h323.h,1.21,1.22 ast_h323.cpp,1.46,1.47
jeremy at lists.digium.com
jeremy at lists.digium.com
Thu May 20 04:47:24 CDT 2004
Update of /usr/cvsroot/asterisk/channels/h323
In directory mongoose.digium.com:/tmp/cvs-serv4062
Modified Files:
ast_h323.h ast_h323.cpp
Log Message:
cleanup code and debug
Index: ast_h323.h
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/h323/ast_h323.h,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- ast_h323.h 20 May 2004 07:05:26 -0000 1.21
+++ ast_h323.h 20 May 2004 09:00:04 -0000 1.22
@@ -285,7 +285,6 @@
/* Destructor */
~MyH323_ExternalRTPChannel();
-
BOOL OnReceivedAckPDU(const H245_H2250LogicalChannelAckParameters & param);
Index: ast_h323.cpp
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/h323/ast_h323.cpp,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -d -r1.46 -r1.47
--- ast_h323.cpp 20 May 2004 07:05:26 -0000 1.46
+++ ast_h323.cpp 20 May 2004 09:00:04 -0000 1.47
@@ -723,14 +723,15 @@
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 @@
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 @@
return FALSE;
}
-
/** IMPLEMENTATION OF C FUNCTIONS */
/**
More information about the svn-commits
mailing list