Y030052 Ng | 1 Feb 04:53

Re: H323plus and ptlib 64 bits

Hi Simon,

In which file exactly should I place #undef P_SSL?

I am able to compile "configure" and "PTLib Static" and "MergeSym" projects in x64, but stuck in compiling "PTLib DLL" project. The build output is below. 

By comparing the build output for win32, it seems that the problem is in creating ptlib.lib. But I have no idea how to fix this. Please helps. Thank you.


1>------ Build started: Project: PTLib DLL, Configuration: Release x64 ------
1>Build started 1/2/2012 11:44:35 AM.
1>InitializeBuildStatus:
1>  Touching "..\..\..\Lib\Release\PTLib DLL.unsuccessfulbuild".
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): warning MSB8015: Forcing a rebuild of all source files due to the contents of "D:\H323plus\ptlib64\Lib\Release\custombuild.command.1.tlog" being invalid.
1>  Merging symbols ...
1>  MergeSym version 1.7.0 on Windows 7 by Equivalence
1>  
1>  Symbols merged: 11975 added, 15728 removed.
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): warning MSB8015: Forcing a rebuild of all source files due to the contents of "D:\H323plus\ptlib64\Lib\Release\custombuild.command.1.tlog" being invalid.
1>ClCompile:
1>  dllmain.cxx
1>ptlib.def : error LNK2001: unresolved external symbol =
1>..\..\..\Lib\ptlib.lib : fatal error LNK1120: 1 unresolved externals
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:15.96
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


Jess
From: s.horne <at> packetizer.com
To: y030052 <at> live.com; h323plus <at> lists.packetizer.com
Subject: RE: [h323plus] H323plus and ptlib 64 bits
Date: Wed, 1 Feb 2012 02:18:55 +1000

.ExternalClass p.ecxMsoNormal, .ExternalClass li.ecxMsoNormal, .ExternalClass div.ecxMsoNormal {margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times New Roman","serif";} .ExternalClass a:link, .ExternalClass span.ecxMsoHyperlink {color:blue;text-decoration:underline;} .ExternalClass a:visited, .ExternalClass span.ecxMsoHyperlinkFollowed {color:purple;text-decoration:underline;} .ExternalClass p {margin-right:0cm;margin-left:0cm;font-size:12.0pt;font-family:"Times New Roman","serif";} .ExternalClass span.ecxEmailStyle18 {font-family:"Calibri","sans-serif";color:#1F497D;} .ExternalClass .ecxMsoChpDefault {font-size:10.0pt;} <at> page WordSection1 {size:612.0pt 792.0pt;} .ExternalClass div.ecxWordSection1 {page:WordSection1;}

Jess

 

I just checked in CVS x64 definitions for the vs2010 project file.

For PTLIB 2.10.x create the x64 project based on win32 project and #undef P_SSL (they point to win32 OpenSSL)

It should compile (you will have a few warnings)

 

Simon

From: h323plus-bounces <at> lists.packetizer.com [mailto:h323plus-bounces <at> lists.packetizer.com] On Behalf Of Y030052 Ng
Sent: 31 January 2012 15:47
To: h323plus <at> lists.packetizer.com
Subject: [h323plus] H323plus and ptlib 64 bits

 

Hello,

 

Is it possible to  compile H323plus and Ptlib in 64 bits under Windows 7 and Visual Studio 2010? Can someone guide me on this? Thank you.

 

 

Best regards,

Jess

Simon Horne | 1 Feb 05:08

Re: H323plus and ptlib 64 bits


Jess

Just use PTLIB Static and statically link PTLIB with h323plus (ie link 
to ptlibs.lib)

If using PTLIB v2.10.x
In include/ptbuildopts.h.in at around line 190
#if defined(P_OSSL) && !defined(_WIN32_WCE) && !defined(_WIN64)

Do a rebuild.

Simon

On Wed, 1 Feb 2012 11:53:03 +0800, Y030052 Ng wrote:
> Hi Simon,
>
> In which file exactly should I place #undef P_SSL?
>
> I am able to compile "configure" and "PTLib Static" and "MergeSym"
> projects in x64, but stuck in compiling "PTLib DLL" project. The 
> build
> output is below.
>
> By comparing the build output for win32, it seems that the problem is
> in creating ptlib.lib. But I have no idea how to fix this. Please
> helps. Thank you.
>
> 1>------ Build started: Project: PTLib DLL, Configuration: Release 
> x64
> ------
> 1>Build started 1/2/2012 11:44:35 AM.
> 1>InitializeBuildStatus:
> 1> Touching "......LibReleasePTLib DLL.unsuccessfulbuild".
> 1>C:Program Files
> (x86)MSBuildMicrosoft.Cppv4.0Microsoft.CppCommon.targets(151,5):
> warning MSB8015: Forcing a rebuild of all source files due to the
> contents of "D:H323plusptlib64LibReleasecustombuild.command.1.tlog"
> being invalid.
> 1> Merging symbols ...
> 1> MergeSym version 1.7.0 on Windows 7 by Equivalence
> 1>
> 1> Symbols merged: 11975 added, 15728 removed.
> 1>C:Program Files
> (x86)MSBuildMicrosoft.Cppv4.0Microsoft.CppCommon.targets(151,5):
> warning MSB8015: Forcing a rebuild of all source files due to the
> contents of "D:H323plusptlib64LibReleasecustombuild.command.1.tlog"
> being invalid.
> 1>ClCompile:
> 1> dllmain.cxx
> 1>ptlib.def : error LNK2001: unresolved external symbol =
> 1>......Libptlib.lib : fatal error LNK1120: 1 unresolved externals
> 1>
> 1>Build FAILED.
> 1>
> 1>Time Elapsed 00:00:15.96
> ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
> ==========
>
> Jess
>
> -------------------------
> From: s.horne <at> packetizer.com
> To: y030052 <at> live.com; h323plus <at> lists.packetizer.com
> Subject: RE: [h323plus] H323plus and ptlib 64 bits
> Date: Wed, 1 Feb 2012 02:18:55 +1000
>
> Jess
>
> I just checked in CVS x64 definitions for the vs2010 project file.
>
> For PTLIB 2.10.x create the x64 project based on win32 project and
> #undef P_SSL (they point to win32 OpenSSL)
>
> It should compile (you will have a few warnings)
>
> Simon
>
> FROM: h323plus-bounces <at> lists.packetizer.com
> [mailto:h323plus-bounces <at> lists.packetizer.com] ON BEHALF OF Y030052 
> Ng
> SENT: 31 January 2012 15:47
> TO: h323plus <at> lists.packetizer.com
> SUBJECT: [h323plus] H323plus and ptlib 64 bits
>
> Hello,
>
> Is it possible to compile H323plus and Ptlib in 64 bits under Windows
> 7 and Visual Studio 2010? Can someone guide me on this? Thank you.
>
> Best regards,
>
> Jess

Y030052 Ng | 1 Feb 07:22

Re: H323plus and ptlib 64 bits

Yes, I figured to use the static libraries as well.
I can compile H323plus library and the simpleplus library successfully. However, when I run simpleplus (x64), it is not able to load the H.264 video codec plugin even though I have placed the DLL on the same folder as simpleplus.exe. To verify that the dll can be read, I recompile simpleplus for x86 and it is able to load the H.264 codec. I used dumpbin to check the target machine for the H.264 DLL; it is indeed specified for x86 machine.

Where can I download x64 version of H.264 plugin? I downloaded the x86 version from http://www.h323plus.org/source/download/ffmpeg_x264.zip


Jess.

> Date: Wed, 1 Feb 2012 14:08:05 +1000
> From: s.horne <at> spranto.com
> To: h323plus <at> lists.packetizer.com
> Subject: Re: [h323plus] H323plus and ptlib 64 bits
>
>
> Jess
>
> Just use PTLIB Static and statically link PTLIB with h323plus (ie link
> to ptlibs.lib)
>
> If using PTLIB v2.10.x
> In include/ptbuildopts.h.in at around line 190
> #if defined(P_OSSL) && !defined(_WIN32_WCE) && !defined(_WIN64)
>
> Do a rebuild.
>
> Simon
>
>
> On Wed, 1 Feb 2012 11:53:03 +0800, Y030052 Ng wrote:
> > Hi Simon,
> >
> > In which file exactly should I place #undef P_SSL?
> >
> > I am able to compile "configure" and "PTLib Static" and "MergeSym"
> > projects in x64, but stuck in compiling "PTLib DLL" project. The
> > build
> > output is below.
> >
> > By comparing the build output for win32, it seems that the problem is
> > in creating ptlib.lib. But I have no idea how to fix this. Please
> > helps. Thank you.
> >
> > 1>------ Build started: Project: PTLib DLL, Configuration: Release
> > x64
> > ------
> > 1>Build started 1/2/2012 11:44:35 AM.
> > 1>InitializeBuildStatus:
> > 1> Touching "......LibReleasePTLib DLL.unsuccessfulbuild".
> > 1>C:Program Files
> > (x86)MSBuildMicrosoft.Cppv4.0Microsoft.CppCommon.targets(151,5):
> > warning MSB8015: Forcing a rebuild of all source files due to the
> > contents of "D:H323plusptlib64LibReleasecustombuild.command.1.tlog"
> > being invalid.
> > 1> Merging symbols ...
> > 1> MergeSym version 1.7.0 on Windows 7 by Equivalence
> > 1>
> > 1> Symbols merged: 11975 added, 15728 removed.
> > 1>C:Program Files
> > (x86)MSBuildMicrosoft.Cppv4.0Microsoft.CppCommon.targets(151,5):
> > warning MSB8015: Forcing a rebuild of all source files due to the
> > contents of "D:H323plusptlib64LibReleasecustombuild.command.1.tlog"
> > being invalid.
> > 1>ClCompile:
> > 1> dllmain.cxx
> > 1>ptlib.def : error LNK2001: unresolved external symbol =
> > 1>......Libptlib.lib : fatal error LNK1120: 1 unresolved externals
> > 1>
> > 1>Build FAILED.
> > 1>
> > 1>Time Elapsed 00:00:15.96
> > ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
> > ==========
> >
> > Jess
> >
> > -------------------------
> > From: s.horne <at> packetizer.com
> > To: y030052 <at> live.com; h323plus <at> lists.packetizer.com
> > Subject: RE: [h323plus] H323plus and ptlib 64 bits
> > Date: Wed, 1 Feb 2012 02:18:55 +1000
> >
> > Jess
> >
> > I just checked in CVS x64 definitions for the vs2010 project file.
> >
> > For PTLIB 2.10.x create the x64 project based on win32 project and
> > #undef P_SSL (they point to win32 OpenSSL)
> >
> > It should compile (you will have a few warnings)
> >
> > Simon
> >
> > FROM: h323plus-bounces <at> lists.packetizer.com
> > [mailto:h323plus-bounces <at> lists.packetizer.com] ON BEHALF OF Y030052
> > Ng
> > SENT: 31 January 2012 15:47
> > TO: h323plus <at> lists.packetizer.com
> > SUBJECT: [h323plus] H323plus and ptlib 64 bits
> >
> > Hello,
> >
> > Is it possible to compile H323plus and Ptlib in 64 bits under Windows
> > 7 and Visual Studio 2010? Can someone guide me on this? Thank you.
> >
> > Best regards,
> >
> > Jess
>
Y030052 Ng | 2 Feb 03:42

Unable to load H.263 and H.264 plugin dll for x64 windows

Hello,

I have been trying to get 64-bit H323plus to work. Now I am struggling with getting the 64-bit H.263 (both H263-1998 and ffmpeg) and H.264 video plugins working on 64-bit H323plus application. 

I upgraded the h263_2008.sln and h263ffmpeg_2008.sln to VS 2010 and x64 solution files. I am able to compile them successfully. I placed the dlls under the same folder as the simpleplus application. But I do not see the simpleplus application loads either of these h263 codecs. Has anyone tried to compile these plugin projects in 64-bit? I will greatly appreciate if anyone who has done this can share the compiled dlls or give me some guides on this... 

I have not tried to recompile the H.264 plugin as I expect much more complication with that project, but I do hope can get the H.264 plugin working as well.


Best regards,
Jess
Simon Horne | 2 Feb 10:49
Favicon

Re: Unable to load H.263 and H.264 plugin dll for x64 windows

Jess

 

X64 support is definitely a work in progress.

To load the audio/video plugins the files also have to be compiled x64. I just checked in and tested vs2010 x64 support for H.261 but beyond that you are on your own.

 

You will need to compile the H.263 and H.264 plugins x64 and build your own x64 version of X264 and FFMPEG. Sorry I don’t yet have prebuilt x64 binaries.

 

Simon

 

From: h323plus-bounces <at> lists.packetizer.com [mailto:h323plus-bounces <at> lists.packetizer.com] On Behalf Of Y030052 Ng
Sent: 02 February 2012 12:42
To: h323plus <at> lists.packetizer.com
Subject: [h323plus] Unable to load H.263 and H.264 plugin dll for x64 windows

 

Hello,

 

I have been trying to get 64-bit H323plus to work. Now I am struggling with getting the 64-bit H.263 (both H263-1998 and ffmpeg) and H.264 video plugins working on 64-bit H323plus application. 

 

I upgraded the h263_2008.sln and h263ffmpeg_2008.sln to VS 2010 and x64 solution files. I am able to compile them successfully. I placed the dlls under the same folder as the simpleplus application. But I do not see the simpleplus application loads either of these h263 codecs. Has anyone tried to compile these plugin projects in 64-bit? I will greatly appreciate if anyone who has done this can share the compiled dlls or give me some guides on this... 

 

I have not tried to recompile the H.264 plugin as I expect much more complication with that project, but I do hope can get the H.264 plugin working as well.

 

 

Best regards,

Jess

Y030052 Ng | 3 Feb 01:54

Re: Unable to load H.263 and H.264 plugin dll for x64 windows

Simon,

I checked out the H.261 projects from CVS and compiled it without any problem. However, I still cannot see the codec loaded in the simpleplus application, despite I have placed the plugin file on the same folder as simpleplus.exe. I have also double checked to ensure that I am using x64 ptlib and h323 libraries. Any idea what I have done wrong?

Jess

From: s.horne <at> packetizer.com
To: y030052 <at> live.com
CC: h323plus <at> lists.packetizer.com
Subject: RE: [h323plus] Unable to load H.263 and H.264 plugin dll for x64 windows
Date: Thu, 2 Feb 2012 19:49:47 +1000

.ExternalClass p.ecxMsoNormal, .ExternalClass li.ecxMsoNormal, .ExternalClass div.ecxMsoNormal {margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times New Roman","serif";} .ExternalClass a:link, .ExternalClass span.ecxMsoHyperlink {color:blue;text-decoration:underline;} .ExternalClass a:visited, .ExternalClass span.ecxMsoHyperlinkFollowed {color:purple;text-decoration:underline;} .ExternalClass p {margin-right:0cm;margin-left:0cm;font-size:12.0pt;font-family:"Times New Roman","serif";} .ExternalClass span.ecxEmailStyle18 {font-family:"Calibri","sans-serif";color:#1F497D;} .ExternalClass .ecxMsoChpDefault {font-size:10.0pt;} <at> page WordSection1 {size:612.0pt 792.0pt;} .ExternalClass div.ecxWordSection1 {page:WordSection1;}

Jess

 

X64 support is definitely a work in progress.

To load the audio/video plugins the files also have to be compiled x64. I just checked in and tested vs2010 x64 support for H.261 but beyond that you are on your own.

 

You will need to compile the H.263 and H.264 plugins x64 and build your own x64 version of X264 and FFMPEG. Sorry I don’t yet have prebuilt x64 binaries.

 

Simon

 

From: h323plus-bounces <at> lists.packetizer.com [mailto:h323plus-bounces <at> lists.packetizer.com] On Behalf Of Y030052 Ng
Sent: 02 February 2012 12:42
To: h323plus <at> lists.packetizer.com
Subject: [h323plus] Unable to load H.263 and H.264 plugin dll for x64 windows

 

Hello,

 

I have been trying to get 64-bit H323plus to work. Now I am struggling with getting the 64-bit H.263 (both H263-1998 and ffmpeg) and H.264 video plugins working on 64-bit H323plus application. 

 

I upgraded the h263_2008.sln and h263ffmpeg_2008.sln to VS 2010 and x64 solution files. I am able to compile them successfully. I placed the dlls under the same folder as the simpleplus application. But I do not see the simpleplus application loads either of these h263 codecs. Has anyone tried to compile these plugin projects in 64-bit? I will greatly appreciate if anyone who has done this can share the compiled dlls or give me some guides on this... 

 

I have not tried to recompile the H.264 plugin as I expect much more complication with that project, but I do hope can get the H.264 plugin working as well.

 

 

Best regards,

Jess

Y030052 Ng | 3 Feb 09:09

Re: Unable to load H.263 and H.264 plugin dll for x64 windows

To update my previous post, I can now load H.261 codec after copy the plugin to the ptlib plugin directory. The problem was because the application only search the ptlib plugin directory by default and not the application's directory. Nevertheless, the video does not seems to be working properly. It raises unhandled exception on calling codec->codecFunction (h323pluginmgr.cxx line 1783). 

Simon, you mentioned that you tested the H.261 x64, do you have any issue in the video (en)coding?

I also recompiled the H.263-ffmpeg plugin in 64 bit successfully , but it is not loaded in H323 application. The tracing output show that "Plugin Codec DLL h263ffmpeg_ptplugin contains no codec definitions". What does this error means? how can I get around this problem?

Thanks for any help.

Jess

From: y030052 <at> live.com
To: s.horne <at> packetizer.com
Date: Fri, 3 Feb 2012 08:54:26 +0800
CC: h323plus <at> lists.packetizer.com
Subject: Re: [h323plus] Unable to load H.263 and H.264 plugin dll for x64 windows

.ExternalClass .ecxhmmessage P {padding:0px;} .ExternalClass body.ecxhmmessage {font-size:10pt;font-family:Tahoma;}
Simon,

I checked out the H.261 projects from CVS and compiled it without any problem. However, I still cannot see the codec loaded in the simpleplus application, despite I have placed the plugin file on the same folder as simpleplus.exe. I have also double checked to ensure that I am using x64 ptlib and h323 libraries. Any idea what I have done wrong?

Jess

From: s.horne <at> packetizer.com
To: y030052 <at> live.com
CC: h323plus <at> lists.packetizer.com
Subject: RE: [h323plus] Unable to load H.263 and H.264 plugin dll for x64 windows
Date: Thu, 2 Feb 2012 19:49:47 +1000

.ExternalClass p.ecxMsoNormal, .ExternalClass li.ecxMsoNormal, .ExternalClass div.ecxMsoNormal {margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times New Roman","serif";} .ExternalClass a:link, .ExternalClass span.ecxMsoHyperlink {color:blue;text-decoration:underline;} .ExternalClass a:visited, .ExternalClass span.ecxMsoHyperlinkFollowed {color:purple;text-decoration:underline;} .ExternalClass p {margin-right:0cm;margin-left:0cm;font-size:12.0pt;font-family:"Times New Roman","serif";} .ExternalClass span.ecxEmailStyle18 {font-family:"Calibri","sans-serif";color:#1F497D;} .ExternalClass .ecxMsoChpDefault {font-size:10.0pt;} <at> page WordSection1 {size:612.0pt 792.0pt;} .ExternalClass div.ecxWordSection1 {page:WordSection1;}

Jess

 

X64 support is definitely a work in progress.

To load the audio/video plugins the files also have to be compiled x64. I just checked in and tested vs2010 x64 support for H.261 but beyond that you are on your own.

 

You will need to compile the H.263 and H.264 plugins x64 and build your own x64 version of X264 and FFMPEG. Sorry I don’t yet have prebuilt x64 binaries.

 

Simon

 

From: h323plus-bounces <at> lists.packetizer.com [mailto:h323plus-bounces <at> lists.packetizer.com] On Behalf Of Y030052 Ng
Sent: 02 February 2012 12:42
To: h323plus <at> lists.packetizer.com
Subject: [h323plus] Unable to load H.263 and H.264 plugin dll for x64 windows

 

Hello,

 

I have been trying to get 64-bit H323plus to work. Now I am struggling with getting the 64-bit H.263 (both H263-1998 and ffmpeg) and H.264 video plugins working on 64-bit H323plus application. 

 

I upgraded the h263_2008.sln and h263ffmpeg_2008.sln to VS 2010 and x64 solution files. I am able to compile them successfully. I placed the dlls under the same folder as the simpleplus application. But I do not see the simpleplus application loads either of these h263 codecs. Has anyone tried to compile these plugin projects in 64-bit? I will greatly appreciate if anyone who has done this can share the compiled dlls or give me some guides on this... 

 

I have not tried to recompile the H.264 plugin as I expect much more complication with that project, but I do hope can get the H.264 plugin working as well.

 

 

Best regards,

Jess

J.C Mercier | 4 Feb 23:47
Picon

Minor issues with upnp

Hi all,

If i may first note, I've compiled the latest h323plus with no problem, but when i go to compile the simpleplus program, it gives an unresolved error for H46019UDPSocket::GetPeerAddress(...).   This happens because H323_H46024A and H323_H46024B are disabled and GetPeerAddress is defined within H323_H46024A but declared within H323_H46019M. I did a minor work around and it now compiles fine.

Another issue I came upon, when I initialize UPNP during the h323 initialization, during the UPnPThread::TestMapping()  function call, it manages to map both ports (11000 and 11001) but after calling         RemoveMap(extPort,true);  and  RemoveMap(extPort+1,true), only 11001 is removed and not 11000. I tested this with different port range and it produces the same results (one unmapped and not the other). Is this supposed to be the case or is something wrong somewhere?

Although, after closing the program, both ports are unmapped successfully. But another problem that happens every time I close the program is a memory access violation at;

    ~IxNATNumberOfEntriesCallback() { delete m_pointer; } from

interface IxNATNumberOfEntriesCallback : public INATNumberOfEntriesCallback

Any reason why this could be the case?

Lastly, when upnp is initialized, making a call doesn't seem to open and map the ports at all. What else should be done aside from initializing upnp?

Your help and suggestions will be greatly appreciated.

Thanks

Josh

Jan Willamowius | 4 Feb 23:58
Face
Picon
Favicon

Re: Minor issues with upnp

Hi,

the GetPeerAddress() issues should already be fixed in the latest CVS.

Regards,
Jan

J.C Mercier wrote:
> Hi all,
> 
> If i may first note, I've compiled the latest h323plus with no problem, but
> when i go to compile the simpleplus program, it gives an unresolved error
> for H46019UDPSocket::GetPeerAddress(...).   This happens because
> H323_H46024A and H323_H46024B are disabled and GetPeerAddress is defined
> within H323_H46024A but declared within H323_H46019M. I did a minor work
> around and it now compiles fine.
> 
> Another issue I came upon, when I initialize UPNP during the h323
> initialization, during the UPnPThread::TestMapping()  function call, it
> manages to map both ports (11000 and 11001) but after calling
> RemoveMap(extPort,true);  and  RemoveMap(extPort+1,true), only 11001 is
> removed and not 11000. I tested this with different port range and it
> produces the same results (one unmapped and not the other). Is this
> supposed to be the case or is something wrong somewhere?
> 
> Although, after closing the program, both ports are unmapped successfully.
> But another problem that happens every time I close the program is a memory
> access violation at;
> 
>     ~IxNATNumberOfEntriesCallback() { delete m_pointer; } from
> 
> interface IxNATNumberOfEntriesCallback : public INATNumberOfEntriesCallback
> 
> Any reason why this could be the case?
> 
> Lastly, when upnp is initialized, making a call doesn't seem to open and
> map the ports at all. What else should be done aside from initializing
> upnp?
> 
> Your help and suggestions will be greatly appreciated.
> 
> Thanks
> 
> Josh

--

-- 
Jan Willamowius, jan <at> willamowius.de, http://www.gnugk.org/

Simon Horne | 5 Feb 16:42
Favicon

Re: Minor issues with upnp

Josh

 

I have checked in fixes to ensure both UPnP test Mapping are deleted and also removed a double delete that was causing a segfault at shutdown.  I also added UPnP support to simple.

 

You should see this in the tracelog when UPnP creates the maps for RTP/RTCP ports

2012/02/06 01:34:43.080               4                    upnpcp.cxx(480)        UPnP     Created map UDP 192.168.1.3:55000 to a.b.c.d:55000

2012/02/06 01:34:43.122               4                    upnpcp.cxx(480)        UPnP     Created map UDP 192.168.1.3:55001 to a.b.c.d:55001

2012/02/06 01:34:43.122               3                    upnpcp.cxx(1186)      UPnP     UDP mapped ports 192.168.1.3 55000-55001 to a.b.c.d 55000-55001

2012/02/06 01:34:43.122               4                      h323.cxx(2579)          H323      RTP NAT Connection Callback! Session: 1

2012/02/06 01:34:43.122               4                       rtp.cxx(1482)            RTP        NAT Method UPnP created NAT ports 55000 55001

 

Simon

 

From: h323plus-bounces <at> lists.packetizer.com [mailto:h323plus-bounces <at> lists.packetizer.com] On Behalf Of J.C Mercier
Sent: 05 February 2012 08:47
To: h323plus <at> lists.packetizer.com
Subject: [h323plus] Minor issues with upnp

 

Hi all,

If i may first note, I've compiled the latest h323plus with no problem, but when i go to compile the simpleplus program, it gives an unresolved error for H46019UDPSocket::GetPeerAddress(...).   This happens because H323_H46024A and H323_H46024B are disabled and GetPeerAddress is defined within H323_H46024A but declared within H323_H46019M. I did a minor work around and it now compiles fine.

Another issue I came upon, when I initialize UPNP during the h323 initialization, during the UPnPThread::TestMapping()  function call, it manages to map both ports (11000 and 11001) but after calling         RemoveMap(extPort,true);  and  RemoveMap(extPort+1,true), only 11001 is removed and not 11000. I tested this with different port range and it produces the same results (one unmapped and not the other). Is this supposed to be the case or is something wrong somewhere?

Although, after closing the program, both ports are unmapped successfully. But another problem that happens every time I close the program is a memory access violation at;

    ~IxNATNumberOfEntriesCallback() { delete m_pointer; } from

interface IxNATNumberOfEntriesCallback : public INATNumberOfEntriesCallback

Any reason why this could be the case?

Lastly, when upnp is initialized, making a call doesn't seem to open and map the ports at all. What else should be done aside from initializing upnp?

Your help and suggestions will be greatly appreciated.

Thanks

Josh


Gmane