H245 address is being rewrited

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello, I have a problem with GNUGK (either 2.0.7 or 2.0.8) running in a Windows
XP machine with two network cards and configured to share the Internet
connection. The gatekeeper uses as default IP the one of the external card.

The gatekeeper is configured with H225 routed but H245 not routed (and also, no
proxy mode):
  [RoutedMode]
   GKRouted=1
   H245Routed=0
   CallSignalPort=1721
   SupportNATedEndpoints=1

The gatekeeper has two neighbors that also use routed mode.

When a connect message is received from neighbor A, the gatekeeper
replaces h245 IP address (and port) from the message with its own IP address
(the external address) and a random port. The call fails. Connect messages from
neighbor B dont get its h245 address rewrited and dont fail.

I have been searching in the source code for the place where that address gets
rewrited to understand why but havent been able to find it. A level 6 trace isnt
very informative as the h245 address gets rewrited before being printed to the
trace file.

Does any body know the place in the code where the h245 address gets rewrited?

I know that
bool H245Socket::SetH245Address(H225_TransportAddress & h245addr, const Address
& myip)
is not the place because there is no PTRACE(3, "H245\tSet h245Address to " <<
AsDotString(h245addr)); message in the trace file.


The trace from the gatekeeper is (v. 2.0.8):

2004/07/19 09:47:46.387	4	 ProxyThread.cxx(675)	ProxyH(0) 1 sockets selected
from 2, total 2/0
2004/07/19 09:47:46.387	5	 ProxyThread.cxx(367)	Q931d	Reading from "called party
IP (neighbor A)":1720
2004/07/19 09:47:46.387	3	ProxyChannel.cxx(423)	Q931d	Received: Connect CRV=3458
from "called party IP (neighbor A)":1720
2004/07/19 09:47:46.387	4	ProxyChannel.cxx(379)	Q931	Received: {
  q931pdu = {
    protocolDiscriminator = 8
    callReference = 3458
    from = destination
    messageType = Connect
    IE: User-User = {
      22 c0 06 00 08 91 4a 00  04 00 c8 77 04 fa 0d 6b   ".....J....w...k
      08 80 01 3c 05 01 00 00  33 89 96 44 98 f0 18 10   ...<....3..D....
      9d 72 00 09 6b 6c 1a aa  09 00 11 00 33 89 96 44   .r..kl......3..D
      98 f0 18 10 9d 71 00 09  6b 6c 1a aa 06 80 01 00   .....q..kl......
    }
  }
  h225pdu = {
    h323_uu_pdu = {
      h323_message_body = connect {
        protocolIdentifier = 0.0.8.2250.0.4
        h245Address = ipAddress {
          ip =  4 octets {
            "gatekeeper IP"
          }
          port = 3435
        }
        destinationInfo = {
          gateway = {
            protocol = 1 entries {
              [0]=voice {
                supportedPrefixes = 0 entries {
                }
              }
            }
          }
          mc = FALSE
          undefinedNode = FALSE
        }
        conferenceID =  16 octets {
          33 89 96 44 98 f0 18 10  9d 72 00 09 6b 6c 1a aa   3..D.....r..kl..
        }
        callIdentifier = {
          guid =  16 octets {
            33 89 96 44 98 f0 18 10  9d 71 00 09 6b 6c 1a aa   3..D.....q..kl..
          }
        }
      }
      h245Tunneling = FALSE
    }
  }
}
2004/07/19 09:47:46.403	6	 ProxyThread.cxx(150)	"calling party IP":2869 77 bytes
sent
2004/07/19 09:47:46.872	4	 ProxyThread.cxx(675)	ProxyH(0) 1 sockets selected
from 2, total 2/0
2004/07/19 09:47:46.872	5	 ProxyThread.cxx(367)	Q931d	Reading from "called party
IP (neighbor A)":1720
2004/07/19 09:47:46.872	3	ProxyChannel.cxx(423)	Q931d	Received: ReleaseComplete
CRV=3458 from "called party IP":1720
2004/07/19 09:47:46.872	4	ProxyChannel.cxx(379)	Q931	Received: {
  q931pdu = {
    protocolDiscriminator = 8
    callReference = 3458
    from = destination
    messageType = ReleaseComplete
    IE: User-User = {
      05 40 06 00 08 91 4a 00  02 58                     .@....J..X
    }
  }
  h225pdu = {
    h323_uu_pdu = {
      h323_message_body = releaseComplete {
        protocolIdentifier = 0.0.8.2250.0.2
        reason = undefinedReason <<null>>
        callIdentifier = {
          guid =  16 octets {
            00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
          }
        }
      }
      h245Tunneling = FALSE
    }
  }
}
2004/07/19 09:47:46.872	6	      RasTbl.cxx(2147)	GK	Removing callptr:33 89 96 44
98 f0 18 10 9d 71 00 09 6b 6c 1a aa...


Thanks,
Julian.


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click

_______________________________________________________

List: Openh323gk-users@xxxxxxxxxxxxxxxxxxxxx
Archive: http://sourceforge.net/mailarchive/forum.php?forum_id=8549
Homepage: http://www.gnugk.org/

[Index of Archives]     [SIP]     [Open H.323]     [Gnu Gatekeeper]     [Asterisk PBX]     [ISDN Cause Codes]     [Yosemite News]

  Powered by Linux