summaryrefslogtreecommitdiff
path: root/channels/h323/ast_h323.cpp
diff options
context:
space:
mode:
authorJeremy McNamara <jj@nufone.net>2004-05-20 09:00:04 +0000
committerJeremy McNamara <jj@nufone.net>2004-05-20 09:00:04 +0000
commite1b72cf020a327a560da4da52aa56e2b5fe1cd87 (patch)
tree0c569b70fd65703ab393f57f7160f597555a7300 /channels/h323/ast_h323.cpp
parentb1462cd593b138d4399383fc9c534b870de6bf3f (diff)
cleanup code and debug
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3028 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/h323/ast_h323.cpp')
-rwxr-xr-xchannels/h323/ast_h323.cpp18
1 files changed, 5 insertions, 13 deletions
diff --git a/channels/h323/ast_h323.cpp b/channels/h323/ast_h323.cpp
index 9bb122fc6..16a63ac3d 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 */
/**