[Freeswitch-users] Building mod_managed - error with swig.cs

Michael Jerris mike at jerris.com
Mon Dec 16 17:55:56 MSK 2013


Please file a jira.  In what structure are we using this?

On Dec 15, 2013, at 5:06 PM, Erik M. Devane - Comms Guy <emdevane at gmail.com> wrote:

> All,
> 
> It's been eighteen days since I moved my production server from Windows to CentOS, as I was recommended, and I couldn't be happier with how stable the system has been.
> 
> Now I'm trying to migrate some tools that I wrote for Windows over to CentOS, and I'm having difficulty building mod_managed.
> 
> What I want to do is to send an array of bytes over TCP whenever an incoming call is bridged or unbridged. Initially, I used the excellent ESL dll and the managed wrapper, and I tried using lua but support for sending byte arrays is limited.
> 
> I decided that mod_managed would allow me to reuse some of my interface code, and so I followed instructions in the wiki to build mod_managed, using the same 1.2.15 tarball that I'm currently running.
> 
> The error I'm getting is this:
> 
> making all mod_managed
> swig.cs(27328,27): error CS1519: Unexpected symbol `event' in class, struct, or interface member declaration
> swig.cs(27328,29): error CS1519: Unexpected symbol `{' in class, struct, or interface member declaration
> swig.cs(27329,9): error CS1519: Unexpected symbol `{' in class, struct, or interface member declaration
> swig.cs(27330,55): error CS1519: Unexpected symbol `(' in class, struct, or interface member declaration
> swig.cs(27330,64): error CS1519: Unexpected symbol `,' in class, struct, or interface member declaration
> swig.cs(27330,86): error CS1519: Unexpected symbol `(' in class, struct, or interface member declaration
> swig.cs(27330,92): error CS1519: Unexpected symbol `)' in class, struct, or interface member declaration
> swig.cs(27332,4): error CS1525: Unexpected symbol `get'
> swig.cs(27333,6): error CS1525: Unexpected symbol `IntPtr'
> swig.cs(27333,68): error CS1525: Unexpected symbol `('
> swig.cs(27334,45): error CS1525: Unexpected symbol `)'
> swig.cs(27334,59): error CS1514: Unexpected symbol `new', expecting `.' or `{'
> swig.cs(27334,57): error CS1530: Keyword `new' is not allowed on namespace elements
> swig.cs(27334,60): error CS1525: Unexpected symbol `switch_event'
> Compilation failed: 14 error(s), 0 warnings
> 
> Opening swig.cs in my development environment shows that it is, indeed, using reserved names for methods - renaming 'event' to 'fsevent' stops the C# compiler from complaining and mod_managed builds.
> 
> Thinking that I was just using old code, I checked the git tree, there's an updated swig.cs, but it also uses events and params keywords, and also fails to build.
> 
> Does anyone know what I'm missing?
> 
> Erik
> _________________________________________________________________________
> 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