<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:x="urn:schemas-microsoft-com:office:excel" 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 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        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;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;}
span.EmailStyle20
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle21
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
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'> Hi, I downloaded freeswitch-1.2.19.tar.gz today and Mod_manage won&#8217;t build. The code that is the problem is line 8794 in freeswitch_wrap.2010.cxx<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:#6F008A;background:white;mso-highlight:white'>SWIGEXPORT</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'> </span><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white'>int</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'> </span><span style='font-size:9.5pt;font-family:Consolas;color:#6F008A;background:white;mso-highlight:white'>SWIGSTDCALL</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'> CSharp_switch_core_port_allocator_new(</span><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white'>unsigned</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'> </span><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white'>short</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'> </span><span style='font-size:9.5pt;font-family:Consolas;color:gray;background:white;mso-highlight:white'>jarg1</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>, </span><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white'>unsigned</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'> </span><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white'>short</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'> </span><span style='font-size:9.5pt;font-family:Consolas;color:gray;background:white;mso-highlight:white'>jarg2</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>, </span><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white'>unsigned</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'> </span><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white'>long</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'> </span><span style='font-size:9.5pt;font-family:Consolas;color:gray;background:white;mso-highlight:white'>jarg3</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>, </span><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white'>void</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'> * </span><span style='font-size:9.5pt;font-family:Consolas;color:gray;background:white;mso-highlight:white'>jarg4</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>) {<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>&nbsp; </span><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white'>int</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'> jresult ;<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>&nbsp; </span><span style='font-size:9.5pt;font-family:Consolas;color:#2B91AF;background:white;mso-highlight:white'>switch_port_t</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'> arg1 ;<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>&nbsp; </span><span style='font-size:9.5pt;font-family:Consolas;color:#2B91AF;background:white;mso-highlight:white'>switch_port_t</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'> arg2 ;<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>&nbsp; </span><span style='font-size:9.5pt;font-family:Consolas;color:#2B91AF;background:white;mso-highlight:white'>switch_port_flag_t</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'> arg3 ;<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>&nbsp; </span><span style='font-size:9.5pt;font-family:Consolas;color:#2B91AF;background:white;mso-highlight:white'>switch_core_port_allocator_t</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'> **arg4 = (</span><span style='font-size:9.5pt;font-family:Consolas;color:#2B91AF;background:white;mso-highlight:white'>switch_core_port_allocator_t</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'> **) 0 ;<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>&nbsp; </span><span style='font-size:9.5pt;font-family:Consolas;color:#2B91AF;background:white;mso-highlight:white'>switch_status_t</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'> result;<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>&nbsp; <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>&nbsp;&nbsp;arg1 = (</span><span style='font-size:9.5pt;font-family:Consolas;color:#2B91AF;background:white;mso-highlight:white'>switch_port_t</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>)</span><span style='font-size:9.5pt;font-family:Consolas;color:gray;background:white;mso-highlight:white'>jarg1</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>; <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>&nbsp;&nbsp;arg2 = (</span><span style='font-size:9.5pt;font-family:Consolas;color:#2B91AF;background:white;mso-highlight:white'>switch_port_t</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>)</span><span style='font-size:9.5pt;font-family:Consolas;color:gray;background:white;mso-highlight:white'>jarg2</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>; <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>&nbsp;&nbsp;arg3 = (</span><span style='font-size:9.5pt;font-family:Consolas;color:#2B91AF;background:white;mso-highlight:white'>switch_port_flag_t</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>)</span><span style='font-size:9.5pt;font-family:Consolas;color:gray;background:white;mso-highlight:white'>jarg3</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>; <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>&nbsp;&nbsp;arg4 = (</span><span style='font-size:9.5pt;font-family:Consolas;color:#2B91AF;background:white;mso-highlight:white'>switch_core_port_allocator_t</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'> **)</span><span style='font-size:9.5pt;font-family:Consolas;color:gray;background:white;mso-highlight:white'>jarg4</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>; <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:black;background:yellow;mso-highlight:yellow'>&nbsp;&nbsp;result = (</span><span style='font-size:9.5pt;font-family:Consolas;color:#2B91AF;background:yellow;mso-highlight:yellow'>switch_status_t</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:yellow;mso-highlight:yellow'>)switch_core_port_allocator_new(arg1,arg2,arg3,arg4);&nbsp; <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>&nbsp;&nbsp;jresult = result; <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>&nbsp;&nbsp;</span><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white'>return</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'> jresult;<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>}</span><span style='font-size:9.5pt;font-family:Consolas;color:black'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:9.5pt;font-family:Consolas;color:black'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><b><i><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>error C2664: 'switch_core_port_allocator_new' : cannot convert parameter 1 from 'switch_port_t' to 'const char *'&nbsp; ..\mod_managed\freeswitch_wrap.2010.cxx<o:p></o:p></span></i></b></p><p class=MsoNormal><b><i><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>IntelliSense: too few arguments in function call&nbsp; ..\mod_managed\freeswitch_wrap.2010.cxx&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 8806&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 79&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mod_managed<o:p></o:p></span></i></b></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>Looking at the method </span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:yellow;mso-highlight:yellow'>switch_core_port_allocator_new</span><span style='font-size:9.5pt;font-family:Consolas;color:black'> this seems to of changed. How do I fix the code?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:9.5pt;font-family:Consolas;color:black'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:9.5pt;font-family:Consolas;color:black'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:#6F008A;background:white;mso-highlight:white'>SWITCH_DECLARE</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>(</span><span style='font-size:9.5pt;font-family:Consolas;color:#2B91AF;background:white;mso-highlight:white'>switch_status_t</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>) switch_core_port_allocator_new(</span><span style='font-size:9.5pt;font-family:Consolas;color:#6F008A;background:white;mso-highlight:white'>_In_</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'> </span><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white'>const</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'> </span><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white'>char</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'> *ip, </span><span style='font-size:9.5pt;font-family:Consolas;color:#6F008A;background:white;mso-highlight:white'>_In_</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'> </span><span style='font-size:9.5pt;font-family:Consolas;color:#2B91AF;background:white;mso-highlight:white'>switch_port_t</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'> start,<o:p></o:p></span></p><p class=MsoNormal style='margin-left:5.0in;text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:#6F008A;background:white;mso-highlight:white'>_In_</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'> </span><span style='font-size:9.5pt;font-family:Consolas;color:#2B91AF;background:white;mso-highlight:white'>switch_port_t</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'> end, </span><span style='font-size:9.5pt;font-family:Consolas;color:#6F008A;background:white;mso-highlight:white'>_In_</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'> </span><span style='font-size:9.5pt;font-family:Consolas;color:#2B91AF;background:white;mso-highlight:white'>switch_port_flag_t</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'> flags, </span><span style='font-size:9.5pt;font-family:Consolas;color:#6F008A;background:white;mso-highlight:white'>_Out_</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'> </span><span style='font-size:9.5pt;font-family:Consolas;color:#2B91AF;background:white;mso-highlight:white'>switch_core_port_allocator_t</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'> **new_allocator);<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'><o:p>&nbsp;</o:p></span></p></div></body></html>