mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 04:30:28 +00:00
cleanup code and debug
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3028 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -723,14 +723,15 @@ BOOL MyH323Connection::OnStartLogicalChannel(H323Channel & channel)
|
|||||||
if (h323debug) {
|
if (h323debug) {
|
||||||
cout << " -- channelsOpen = " << channelsOpen << endl;
|
cout << " -- channelsOpen = " << channelsOpen << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
H323_ExternalRTPChannel & external = (H323_ExternalRTPChannel &)channel;
|
H323_ExternalRTPChannel & external = (H323_ExternalRTPChannel &)channel;
|
||||||
external.GetRemoteAddress(remoteIpAddress, remotePort);
|
external.GetRemoteAddress(remoteIpAddress, remotePort);
|
||||||
|
|
||||||
if (h323debug) {
|
if (h323debug) {
|
||||||
cout << " -- remoteIpAddress: " << remoteIpAddress << endl;
|
if (channel.GetDirection()==H323Channel::IsReceiver) {
|
||||||
cout << " -- remotePort: " << remotePort << endl;
|
cout << " -- remoteIpAddress: " << remoteIpAddress << endl;
|
||||||
cout << " -- ExternalIpAddress: " << externalIpAddress << endl;
|
cout << " -- remotePort: " << remotePort << endl;
|
||||||
cout << " -- ExternalPort: " << externalPort << endl;
|
}
|
||||||
}
|
}
|
||||||
/* Notify Asterisk of remote RTP information */
|
/* Notify Asterisk of remote RTP information */
|
||||||
on_start_logical_channel(GetCallReference(), (const char *)remoteIpAddress.AsString(), remotePort);
|
on_start_logical_channel(GetCallReference(), (const char *)remoteIpAddress.AsString(), remotePort);
|
||||||
@@ -784,16 +785,8 @@ BOOL MyH323_ExternalRTPChannel::OnReceivedAckPDU(const H245_H2250LogicalChannelA
|
|||||||
PIPSocket::Address remoteIpAddress;
|
PIPSocket::Address remoteIpAddress;
|
||||||
WORD remotePort;
|
WORD remotePort;
|
||||||
|
|
||||||
if (h323debug) {
|
|
||||||
cout << " MyH323_ExternalRTPChannel::OnReceivedAckPDU " << endl;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (H323_ExternalRTPChannel::OnReceivedAckPDU(param)) {
|
if (H323_ExternalRTPChannel::OnReceivedAckPDU(param)) {
|
||||||
H323_ExternalRTPChannel::GetRemoteAddress(remoteIpAddress, remotePort);
|
H323_ExternalRTPChannel::GetRemoteAddress(remoteIpAddress, remotePort);
|
||||||
if (h323debug) {
|
|
||||||
cout << " -- remoteIpAddress: " << remoteIpAddress << endl;
|
|
||||||
cout << " -- remotePort: " << remotePort << endl;
|
|
||||||
}
|
|
||||||
/* Notify Asterisk of remote RTP information */
|
/* Notify Asterisk of remote RTP information */
|
||||||
on_start_logical_channel(connection.GetCallReference(), (const char *)remoteIpAddress.AsString(), remotePort);
|
on_start_logical_channel(connection.GetCallReference(), (const char *)remoteIpAddress.AsString(), remotePort);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
@@ -801,7 +794,6 @@ BOOL MyH323_ExternalRTPChannel::OnReceivedAckPDU(const H245_H2250LogicalChannelA
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/** IMPLEMENTATION OF C FUNCTIONS */
|
/** IMPLEMENTATION OF C FUNCTIONS */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -286,7 +286,6 @@ class MyH323_ExternalRTPChannel : public H323_ExternalRTPChannel {
|
|||||||
/* Destructor */
|
/* Destructor */
|
||||||
~MyH323_ExternalRTPChannel();
|
~MyH323_ExternalRTPChannel();
|
||||||
|
|
||||||
|
|
||||||
BOOL OnReceivedAckPDU(const H245_H2250LogicalChannelAckParameters & param);
|
BOOL OnReceivedAckPDU(const H245_H2250LogicalChannelAckParameters & param);
|
||||||
|
|
||||||
PIPSocket::Address externalIpAddress;
|
PIPSocket::Address externalIpAddress;
|
||||||
|
Reference in New Issue
Block a user