[Freeswitch-users] Mod_Manage won't build switch_core_port_allocator_new

Brian West brian at freeswitch.org
Sat Feb 8 22:14:39 MSK 2014


This should have been reported to JIRA, I’ve already done a siwgall on master and stable and pushed so you’ll need to update.


--
Brian West
brian at freeswitch.org
FreeSWITCH Solutions, LLC
PO BOX 2531
Brookfield, WI 53008-2531
Twitter: @FreeSWITCH , @briankwest
http://www.freeswitchbook.com
http://www.freeswitchcookbook.com

T: +1.918.420.9001  |  F: +1.918.420.9002  |  M: +1.918.424.WEST
iNUM: +883 5100 1420 9001
ISN: 410*543
Skype:briankwest
PGP Key: http://www.bkw.org/key.txt (AB93356707C76CED)













On Feb 8, 2014, at 12:19 PM, Andre <andretodd at verizon.net> wrote:

> Hi, I downloaded freeswitch-1.2.19.tar.gz today and Mod_manage won’t build. The code that is the problem is line 8794 in freeswitch_wrap.2010.cxx
>  
> SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_port_allocator_new(unsigned short jarg1, unsigned short jarg2, unsigned long jarg3, void * jarg4) {
>   int jresult ;
>   switch_port_t arg1 ;
>   switch_port_t arg2 ;
>   switch_port_flag_t arg3 ;
>   switch_core_port_allocator_t **arg4 = (switch_core_port_allocator_t **) 0 ;
>   switch_status_t result;
>  
>   arg1 = (switch_port_t)jarg1;
>   arg2 = (switch_port_t)jarg2;
>   arg3 = (switch_port_flag_t)jarg3;
>   arg4 = (switch_core_port_allocator_t **)jarg4;
>   result = (switch_status_t)switch_core_port_allocator_new(arg1,arg2,arg3,arg4); 
>   jresult = result;
>   return jresult;
> }
>  
> error C2664: 'switch_core_port_allocator_new' : cannot convert parameter 1 from 'switch_port_t' to 'const char *'  ..\mod_managed\freeswitch_wrap.2010.cxx
> IntelliSense: too few arguments in function call  ..\mod_managed\freeswitch_wrap.2010.cxx               8806      79           mod_managed
>  
> Looking at the method switch_core_port_allocator_new this seems to of changed. How do I fix the code?
>  
>  
> SWITCH_DECLARE(switch_status_t) switch_core_port_allocator_new(_In_ const char *ip, _In_ switch_port_t start,
> _In_ switch_port_t end, _In_ switch_port_flag_t flags, _Out_ switch_core_port_allocator_t **new_allocator);
>  
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
> 
> 
> 
> 
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
> 
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org




Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users mailing list