<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Josh<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>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. <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>You should see this in the tracelog when UPnP creates the maps for RTP/RTCP ports<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>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<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>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<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>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<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>2012/02/06 01:34:43.122               4                      h323.cxx(2579)          H323      RTP NAT Connection Callback! Session: 1<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>2012/02/06 01:34:43.122               4                       rtp.cxx(1482)            RTP        NAT Method UPnP created NAT ports 55000 55001<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Simon<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> h323plus-bounces@lists.packetizer.com [mailto:h323plus-bounces@lists.packetizer.com] <b>On Behalf Of </b>J.C Mercier<br><b>Sent:</b> 05 February 2012 08:47<br><b>To:</b> h323plus@lists.packetizer.com<br><b>Subject:</b> [h323plus] Minor issues with upnp<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'>Hi all,<br><br>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.<br><br>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?<br><br>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;<br><br>    ~IxNATNumberOfEntriesCallback() { delete m_pointer; } from <br><br>interface IxNATNumberOfEntriesCallback : public INATNumberOfEntriesCallback<br><br>Any reason why this could be the case? <br><br>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? <br><br>Your help and suggestions will be greatly appreciated.<br><br>Thanks<br><br>Josh <o:p></o:p></p></div></body></html>