Index: channels/h323/ast_h323.cpp =================================================================== RCS file: /usr/cvsroot/asterisk/channels/h323/ast_h323.cpp,v retrieving revision 1.57 diff -u -p -r1.57 ast_h323.cpp --- channels/h323/ast_h323.cpp 22 Jul 2004 04:24:50 -0000 1.57 +++ channels/h323/ast_h323.cpp 26 Jul 2004 14:45:46 -0000 @@ -490,6 +490,8 @@ MyH323Connection::MyH323Connection(MyH32 unsigned options) : H323Connection(ep, callReference, options) { + remoteIpAddress = 0; + remotePort = 0; if (h323debug) { cout << " == New H.323 Connection created." << endl; } @@ -744,10 +746,15 @@ BOOL MyH323Connection::OnStartLogicalCha /* adjust the count of channels we have open */ channelsOpen++; + H323_ExternalRTPChannel & external = (H323_ExternalRTPChannel &)channel; + external.GetRemoteAddress(remoteIpAddress, remotePort); + if (h323debug) { cout << " -- channelsOpen = " << channelsOpen << endl; } + + on_start_logical_channel(GetCallReference(), (const char *)remoteIpAddress.AsString(), remotePort); return TRUE; } Index: channels/h323/ast_h323.h =================================================================== RCS file: /usr/cvsroot/asterisk/channels/h323/ast_h323.h,v retrieving revision 1.24 diff -u -p -r1.24 ast_h323.h --- channels/h323/ast_h323.h 26 Jun 2004 03:50:14 -0000 1.24 +++ channels/h323/ast_h323.h 26 Jul 2004 14:45:46 -0000 @@ -238,7 +238,9 @@ class MyH323Connection : public H323Conn PString destE164; PIPSocket::Address externalIpAddress; + PIPSocket::Address remoteIpAddress; WORD externalPort; + WORD remotePort; WORD sessionId; BOOL bridging; }; @@ -277,7 +279,9 @@ class MyH323_ExternalRTPChannel : public BOOL OnReceivedAckPDU(const H245_H2250LogicalChannelAckParameters & param); PIPSocket::Address externalIpAddress; - WORD externalPort; + PIPSocket::Address remoteIpAddress; + WORD externalPort; + WORD remotePort; }; /**