diff options
author | jeremy <jeremy@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-05-20 21:56:12 +0000 |
---|---|---|
committer | jeremy <jeremy@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-05-20 21:56:12 +0000 |
commit | 8fda188d26b9e9db6a0e476751c78eb38257576b (patch) | |
tree | 81109c3112b4cf052b6b6b63b26eb7ad43b615a4 /channels/h323 | |
parent | ec76498f552e4ff10adcaa0ffc27d1c21cb5792e (diff) |
backout code optimization, add more explict error reporting
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3030 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/h323')
-rwxr-xr-x | channels/h323/ast_h323.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/channels/h323/ast_h323.cpp b/channels/h323/ast_h323.cpp index 16a63ac3d..b021e1d90 100755 --- a/channels/h323/ast_h323.cpp +++ b/channels/h323/ast_h323.cpp @@ -520,6 +520,7 @@ BOOL MyH323Connection::OnReceivedSignalSetup(const H323SignalPDU & setupPDU) PString sourceName; PString sourceAliases; PString destAliases; + PString sourceIp; PIPSocket::Address Ip; WORD sourcePort; char *s, *s1; @@ -555,8 +556,11 @@ BOOL MyH323Connection::OnReceivedSignalSetup(const H323SignalPDU & setupPDU) cd.call_source_name = (const char *)sourceName; GetSignallingChannel()->GetRemoteAddress().GetIpAndPort(Ip, sourcePort); - cd.sourceIp = (const char *)Ip.AsString(); - + sourceIp = Ip.AsString(); + cd.sourceIp = (const char *)sourceIp; + + + /* Notify Asterisk of the request */ int res = on_incoming_call(cd); @@ -695,7 +699,7 @@ H323Channel * MyH323Connection::CreateRealTimeLogicalChannel(const H323Capabilit return NULL; } - GetControlChannel().GetLocalAddress().GetIpAndPort(externalIpAddress, port); + GetControlChannel().GetLocalAddress().GetIpAndPort(externalIpAddress, port); externalPort = info->port; if (h323debug) { |