<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:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:a="urn:schemas-microsoft-com:office:access" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:b="urn:schemas-microsoft-com:office:publisher" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:odc="urn:schemas-microsoft-com:office:odc" xmlns:oa="urn:schemas-microsoft-com:office:activation" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:q="http://schemas.xmlsoap.org/soap/envelope/" xmlns:rtc="http://microsoft.com/officenet/conferencing" xmlns:D="DAV:" xmlns:Repl="http://schemas.microsoft.com/repl/" xmlns:mt="http://schemas.microsoft.com/sharepoint/soap/meetings/" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ppda="http://www.passport.com/NameSpace.xsd" xmlns:ois="http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:udc="http://schemas.microsoft.com/data/udc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sub="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:ec="http://www.w3.org/2001/04/xmlenc#" xmlns:sp="http://schemas.microsoft.com/sharepoint/" xmlns:sps="http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:udcs="http://schemas.microsoft.com/data/udc/soap" xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" xmlns:udcp2p="http://schemas.microsoft.com/data/udc/parttopart" xmlns:wf="http://schemas.microsoft.com/sharepoint/soap/workflow/" xmlns:dsss="http://schemas.microsoft.com/office/2006/digsig-setup" xmlns:dssi="http://schemas.microsoft.com/office/2006/digsig" xmlns:mdssi="http://schemas.openxmlformats.org/package/2006/digital-signature" xmlns:mver="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:mrels="http://schemas.openxmlformats.org/package/2006/relationships" xmlns:spwp="http://microsoft.com/sharepoint/webpartpages" xmlns:ex12t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ex12m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:pptsl="http://schemas.microsoft.com/sharepoint/soap/SlideLibrary/" xmlns:spsl="http://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService" xmlns:Z="urn:schemas-microsoft-com:" xmlns:st="" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=utf-8">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:"MS Mincho";
        panose-1:2 2 6 9 4 2 5 8 3 4;}
@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:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"\@MS Mincho";
        panose-1:2 2 6 9 4 2 5 8 3 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;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</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=Section1>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>The error is that it just doesn’t find that alias to call the
plugin. Assuming everything is spelled correctly, this probably means the DLL
did not load. <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 just checked in a fix for dlls that don’t have both Api and
App interfaces – it would not load them at all. Try with it now and see if
that’s the problem. If it is, I apologize.<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'>If it still doesn’t, paste the full log of when it loads your
file.<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'>Thanks,<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Michael<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>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>
<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"'>
freeswitch-users-bounces@lists.freeswitch.org
[mailto:freeswitch-users-bounces@lists.freeswitch.org] <b>On Behalf Of </b>Diego
Toro<br>
<b>Sent:</b> Wednesday, July 29, 2009 12:44 PM<br>
<b>To:</b> freeswitch-users@lists.freeswitch.org<br>
<b>Subject:</b> Re: [Freeswitch-users] mod_managed users?<o:p></o:p></span></p>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0>
<tr>
<td valign=top style='padding:0in 0in 0in 0in'>
<div>
<p class=MsoNormal>Hi Michael,<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> <o:p></o:p></p>
</div>
<div>
<p class=MsoNormal>I am working with lastest managed module, I have
assemblies wich dependen of others assemblies (dll's), the past version it
works fine, but I have now next the error message:<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> <o:p></o:p></p>
</div>
<div>
<p class=MsoNormal>EXECUTE <a href="mailto:sofia/internal/10510@192.168.27.10">sofia/internal/10510@192.168.27.10</a>
managed(CIV_BPFSProcess)<br>
2009-07-29 13:31:27.718750 [DEBUG] switch_cpp.cpp:1130 FreeSWITCH.Managed:
attempting to run application 'CIV_BPFSProcess'.<br>
2009-07-29 13:31:27.718750 [ERR] switch_cpp.cpp:1130 App plugin
CIV_BPFSProcess not found.<br>
2009-07-29 13:31:27.718750 [ERR] mod_managed.cpp:405 Application run failed
for CIV_BPFSProcess (unknown module or exception).<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> <o:p></o:p></p>
</div>
<div>
<p class=MsoNormal>My declaration class is:<br>
public class CIV_BPFSProcess : FreeSWITCH.IAppPlugin<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal>It has public method: <br>
public void Run(AppContext context).<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> <o:p></o:p></p>
</div>
<div>
<p class=MsoNormal>I have VS2008 on Windows<br>
<br>
Thanks<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> <o:p></o:p></p>
</div>
<div>
<p class=MsoNormal>Diego<br>
<br>
--- On <b>Wed, 7/29/09, Michael Giagnocavo <i><mgg@giagnocavo.net></i></b>
wrote:<o:p></o:p></p>
</div>
<blockquote style='border:none;border-left:solid #1010FF 1.5pt;padding:0in 0in 0in 4.0pt;
margin-left:3.75pt;margin-top:5.0pt;margin-bottom:5.0pt'>
<p class=MsoNormal style='margin-bottom:12.0pt'><br>
From: Michael Giagnocavo <mgg@giagnocavo.net><br>
Subject: Re: [Freeswitch-users] mod_managed users?<br>
To: "freeswitch-users@lists.freeswitch.org"
<freeswitch-users@lists.freeswitch.org><br>
Date: Wednesday, July 29, 2009, 1:46 AM<o:p></o:p></p>
<div>
<p class=MsoNormal>Hi Łukasz,<br>
<br>
Would you please send me the DLL offlist and I'll
figure it out?<br>
<br>
The new session you create is the b-leg. The
parameter it takes in originate is the a-leg. So you'd do:<br>
<br>
var session = new ManagedSession();<br>
session.Originate(context.Session, "sofia/default/1000",10);<br>
<br>
As to non-blocking, I'm quite sure it's possible,
but I don't recall offhand which functions. This should be the same as in any
other language for FreeSWITCH -- these functions are just passthrough from
the FS C++ API.<br>
<br>
-Michael<br>
<br>
-----Original Message-----<br>
From: <a
href="http://us.mc335.mail.yahoo.com/mc/compose?to=freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a>
[mailto:<a
href="http://us.mc335.mail.yahoo.com/mc/compose?to=freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a>]
On Behalf Of Lukasz Zwierko<br>
Sent: Wednesday, July 29, 2009 12:13 AM<br>
To: <a
href="http://us.mc335.mail.yahoo.com/mc/compose?to=freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br>
Subject: Re: [Freeswitch-users] mod_managed users?<br>
<br>
Hi Michael ,<br>
<br>
thanks a lot for support on this.<br>
<br>
> As to the main problem of your DLL not working, can you send me the full
source code, or all the logging output from loading it? Try
"managedreload my.dll" to reload the DLL and see how it is
registering them. It should output something like "Registering API
FullName with Aliases fullname, shortname".<br>
><br>
<br>
I'm just using the Demo.cs example, I compile it to dll undef VC#, not<br>
mono, maybe that is the difference?<br>
The output from the log is just as you stated "Registering API<br>
FullName with Aliases fullname, shortname". The difference between<br>
loading dll and csx is that, when loading csx all api and app classes<br>
are listed as registered, while with dll nothing is listed..<br>
<br>
Anyway, I have another question regarding usage of the CoreSession and<br>
ManagedSession object.<br>
Basically in my script I want to start new session and originate a call.<br>
So what I do is<br>
<br>
ManageSession session = new ManagedSession();<br>
session.Originate(session,"sofia/default/1000",10);<br>
<br>
And it works but I have some doubts. First thing is, why the first<br>
param of the Originate method is the CoreSession object? Can't it just<br>
use 'this'? Or is there more to it?<br>
<br>
Second thing is the third parameter - timeout in seconds. Can't the<br>
call be started in non-blocking mode? I can start in a different<br>
thread of course, is that the intended behavior?<br>
<br>
Thanks for help,<br>
<br>
Łukasz<br>
<br>
<br>
2009/7/28 Michael Giagnocavo <<a
href="http://us.mc335.mail.yahoo.com/mc/compose?to=mgg@giagnocavo.net">mgg@giagnocavo.net</a>>:<br>
> Hello Lukasz,<br>
><br>
> Thanks for testing mod_managed. I apologize
for the problems you've encountered, and I'll try to sort them out for you.<br>
><br>
> A few things first:<br>
><br>
> - Scripting support: This is made to allow
"true" scripts, as invoked as an EXE - similar to the Lua and
spidermonkey support. So, without a Main(), it won't compile as an EXE. If
you aren't using it as a script, then an empty Main method will work fine.<br>
><br>
> - Entry points must be public for Mono. I'll
update the demo code to make sure that Main is public. This is a bug in
Mono's lightweight code generation -- it won't skip the JIT access checks.<br>
><br>
> As to the main problem of your DLL not working, can you send me the full
source code, or all the logging output from loading it? Try
"managedreload my.dll" to reload the DLL and see how it is
registering them. It should output something like "Registering API
FullName with Aliases fullname, shortname".<br>
><br>
> Thanks,<br>
> Michael<br>
><br>
> -----Original Message-----<br>
> From: <a
href="http://us.mc335.mail.yahoo.com/mc/compose?to=freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a>
[mailto:<a
href="http://us.mc335.mail.yahoo.com/mc/compose?to=freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a>]
On Behalf Of Lukasz Zwierko<br>
> Sent: Tuesday, July 28, 2009 1:26 PM<br>
> To: <a
href="http://us.mc335.mail.yahoo.com/mc/compose?to=freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br>
> Subject: Re: [Freeswitch-users] mod_managed users?<br>
><br>
> -----BEGIN PGP SIGNED MESSAGE-----<br>
> Hash: SHA1<br>
><br>
> Hi,<br>
><br>
> I've just tried new mod_managed under Win32 and I get a weird behavior.<br>
> I try the example below:<br>
><br>
> public class DemoScript : IApiPlugin<br>
> {<br>
> public void Execute(ApiContext context)<br>
> {<br>
>
context.Stream.Write(string.Format("DemoScripts executed with<br>
> args '{0}' and event type {1}.",<br>
> context.Arguments,
context.Event == null ? "<none>" :<br>
> context.Event.GetEventType()));<br>
> }<br>
><br>
> public void ExecuteBackground(ApiBackgroundContext context)<br>
> {<br>
> Log.WriteLine(LogLevel.Notice,
"DemoScripts on a background<br>
> thread #({0}), with args '{1}'.",<br>
>
System.Threading.Thread.CurrentThread.ManagedThreadId,<br>
> context.Arguments);<br>
> }<br>
> }<br>
><br>
> It's just like the ApiDemo from Demo.cs<br>
><br>
> So When I copy DemoScript.csx to managed dir the console log is:<br>
><br>
> "<br>
> freeswitch@Zwierko-laptop> Loading<br>
> c:\Users\Zwierko\Projects\fs\svn\Debug\mod\managed\DemoScripts.csx from<br>
> domain DemoScripts.csx_3<br>
> 2009-07-28 20:57:16.710000 [INFO] switch_cpp.cpp:1130 Compiling<br>
> c:\Users\Zwierko\Projects\fs\svn\Debug\mod\managed\DemoScripts.csx<br>
> 2009-07-28 20:57:16.970000 [ERR] switch_cpp.cpp:1130 There were 1 errors<br>
> compiling<br>
> c:\Users\Zwierko\Projects\fs\svn\Debug\mod\managed\DemoScripts.csx.<br>
> 2009-07-28 20:57:16.970000 [ERR] switch_cpp.cpp:1130 CS5001: Program<br>
> 'c:\Users\Zwierko\AppData\Local\Temp\fc8jnlir.exe' does not contain a<br>
> static 'Main' method<br>
> suitable for an entry point<br>
> "<br>
><br>
> Adding<br>
><br>
> "<br>
> public static void Main()<br>
> {<br>
> }<br>
> "<br>
><br>
> solves the issue. Is this how it's supposed to work?<br>
><br>
> Another strange thing is that when I compile this class to DLL (release)<br>
> it does not work at all...<br>
><br>
> freeswitch@Zwierko-laptop> Loading<br>
> c:\Users\Zwierko\Projects\fs\svn\Debug\mod\managed\FSScripts.dll from<br>
> domain FSScripts.dll_5<br>
><br>
><br>
> freeswitch@Zwierko-laptop><br>
><br>
> freeswitch@Zwierko-laptop> managed DemoScript 111<br>
> API CALL [managed(DemoScript 111)] output:<br>
><br>
> 2009-07-28 21:13:03.542000 [ERR] switch_cpp.cpp:1130 API plugin<br>
> DemoScript not found.<br>
> 2009-07-28 21:13:03.542000 [ERR] mod_managed.cpp:393 Execute failed for<br>
> DemoScript 111 (unknown module or exception).<br>
><br>
> And another issue with scripts. I use script code as example:<br>
><br>
> "<br>
> public class ScriptDemo<br>
> {<br>
> static void Main()<br>
> {<br>
> switch (FreeSWITCH.Script.ContextType)<br>
> {<br>
> case ScriptContextType.Api:<br>
> {<br>
> var
ctx = FreeSWITCH.Script.GetApiContext();<br>
>
ctx.Stream.Write("Script executing as API with args:<br>
> " + ctx.Arguments);<br>
>
break;<br>
> }<br>
> case
ScriptContextType.ApiBackground:<br>
> {<br>
> var
ctx = FreeSWITCH.Script.GetApiBackgroundContext();<br>
>
Log.WriteLine(LogLevel.Notice, "Executing as<br>
> APIBackground with args: " + ctx.Arguments);<br>
>
break;<br>
> }<br>
> case ScriptContextType.App:<br>
> {<br>
> var
ctx = FreeSWITCH.Script.GetAppContext();<br>
>
Log.WriteLine(LogLevel.Notice, "Executing as App<br>
> with args: " + ctx.Arguments);<br>
>
break;<br>
> }<br>
> }<br>
><br>
> }<br>
> }<br>
> "<br>
><br>
><br>
> console log is as follows:<br>
><br>
><br>
> freeswitch@Zwierko-laptop> Loading<br>
> c:\Users\Zwierko\Projects\fs\svn\Debug\mod\managed\Script.csx from<br>
> domain Script.csx_8<br>
> 2009-07-28 21:19:36.289000 [INFO] switch_cpp.cpp:1130 Compiling<br>
> c:\Users\Zwierko\Projects\fs\svn\Debug\mod\managed\Script.csx<br>
> 2009-07-28 21:19:36.438000 [INFO] switch_cpp.cpp:1130 File<br>
> c:\Users\Zwierko\Projects\fs\svn\Debug\mod\managed\Script.csx compiled<br>
> successfully.<br>
> 2009-07-28 21:19:36.451000 [ERR] switch_cpp.cpp:1130 Entry point:<br>
> ScriptDemo.Main is not public. This may cause errors with Mono.<br>
> 2009-07-28 21:19:36.458000 [NOTICE] switch_cpp.cpp:1130 Loaded App<br>
> Script.csx, aliases 'Script.csx', into domain Script.csx_8.<br>
> 2009-07-28 21:19:36.459000 [NOTICE] switch_cpp.cpp:1130 Loaded Api<br>
> Script.csx, aliases 'Script.csx', into domain Script.csx_8.<br>
> 2009-07-28 21:19:36.459000 [INFO] switch_cpp.cpp:1130 Finished loading<br>
> c:\Users\Zwierko\Projects\fs\svn\Debug\mod\managed\Script.csx into<br>
> domain Script.csx_8.<br>
> managed ScriptDemo 111<br>
> 2009-07-28 21:19:53.452000 [ERR] switch_cpp.cpp:1130 API plugin<br>
> ScriptDemo not found.<br>
> API CALL [managed(ScriptDemo 111)] output:<br>
><br>
> 2009-07-28 21:19:53.452000 [ERR] mod_managed.cpp:393 Execute failed for<br>
> ScriptDemo 111 (unknown module or exception).<br>
><br>
><br>
> Again, am I doing something wrong in here?<br>
><br>
> Thanks, for any feedback<br>
><br>
> Lukasz Zwierko<br>
><br>
><br>
><br>
><br>
><br>
> Michael Giagnocavo wrote:<br>
>> Ah, that's embarrassing. I added them and tried building
FreeSWITCH.Managed from svn and it worked fine now. (I'll kick off a new
complete build in a minute.)<br>
>><br>
>> -Michael<br>
>><br>
>> From: <a
href="http://us.mc335.mail.yahoo.com/mc/compose?to=freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a>
[mailto:<a
href="http://us.mc335.mail.yahoo.com/mc/compose?to=freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a>]
On Behalf Of Diego Toro<br>
>> Sent: Sunday, July 26, 2009 8:47 AM<br>
>> To: <a
href="http://us.mc335.mail.yahoo.com/mc/compose?to=freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br>
>> Subject: Re: [Freeswitch-users] mod_managed users?<br>
>><br>
>> Hi Michael,<br>
>><br>
>> Thank you for your job with mod_managed, I get lastest version with
mod_managed but the files PluginInterfaces.cs, PluginManager.cs and
ScriptPluginManager.cs were not downloaded.<br>
>><br>
>> Diego<br>
>><br>
>><br>
>> --- On Sun, 7/26/09, Michael Giagnocavo <<a
href="http://us.mc335.mail.yahoo.com/mc/compose?to=mgg@giagnocavo.net">mgg@giagnocavo.net</a>>
wrote:<br>
>><br>
>> From: Michael Giagnocavo <<a
href="http://us.mc335.mail.yahoo.com/mc/compose?to=mgg@giagnocavo.net">mgg@giagnocavo.net</a>><br>
>> Subject: Re: [Freeswitch-users] mod_managed users?<br>
>> To: "<a
href="http://us.mc335.mail.yahoo.com/mc/compose?to=freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a>"
<<a
href="http://us.mc335.mail.yahoo.com/mc/compose?to=freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a>><br>
>> Date: Sunday, July 26, 2009, 2:18 AM<br>
>> Hello,<br>
>><br>
>> I
just checked in a new mod_managed. It breaks backwards compatibility, but
adds scripting and reloading support.<br>
>><br>
>> I
tested it on CentOS 5.3 x64 with Mono 2.4.2.2. Just make & make install
seemed to take care of everything.<br>
>><br>
>> Let
me know if you have better luck with this version.<br>
>><br>
>> Thanks,<br>
>> Michael<br>
>><br>
>> From: <a
href="http://us.mc335.mail.yahoo.com/mc/compose?to=freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a>
[mailto:<a
href="http://us.mc335.mail.yahoo.com/mc/compose?to=freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a>]
On Behalf Of Muhammad Shahzad<br>
>> Sent: Saturday, July 18, 2009 6:58 AM<br>
>> To: <a
href="http://us.mc335.mail.yahoo.com/mc/compose?to=freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br>
>> Subject: Re: [Freeswitch-users] mod_managed users?<br>
>><br>
>> Sorry for replying late.<br>
>><br>
>> I have tried mod_managed again on same machine (Lenovo 3000 N200),
same OS (Ubuntu-9.04) and Mono version 2.0.1 but with latest FS revision
14249.<br>
>><br>
>> It compiles correctly this time but gives following error upon
"make install",<br>
>><br>
>>
=====================================================================<br>
>> making install mod_managed<br>
>> make[5]: *** No rule to make target
`/usr/local/freeswitch/mod/mod_managed.so', needed by `local_install'.
Stop.<br>
>> make[4]: *** [install] Error 1<br>
>> make[3]: *** [mod_managed-install] Error 1<br>
>> make[2]: *** [install-recursive] Error 1<br>
>><br>
>>
=====================================================================<br>
>><br>
>> Here is compilation log when executing "make", if it could
of any help.<br>
>><br>
>>
=====================================================================<br>
>> making all mod_managed<br>
>> Compiling freeswitch_managed.cpp...<br>
>> g++ -I/usr/src/svn-src/freeswitch/src/include
-I/usr/src/svn-src/freeswitch/libs/libteletone/src -fPIC -fvisibility=hidden
-DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1 -g -O2 -D_GNU_SOURCE -D_REENTRANT
-pthread -I/usr/include/mono-1.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -DHAVE_CONFIG_H -c -o freeswitch_managed.o
freeswitch_managed.cpp<br>
>> Compiling freeswitch_wrap.cpp...<br>
>> g++ -I/usr/src/svn-src/freeswitch/src/include -I/usr/src/svn-src/freeswitch/libs/libteletone/src
-fPIC -fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1 -g
-O2 -D_GNU_SOURCE -D_REENTRANT -pthread -I/usr/include/mono-1.0
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DHAVE_CONFIG_H -c -o
freeswitch_wrap.o freeswitch_wrap.cpp<br>
>> Demo.cs(58,14): warning CS0169: The private method
`FreeSWITCH.Demo.AppDemo.hangupHook()' is never used<br>
>> Compilation succeeded - 1 warning(s)<br>
>> Compiling mod_managed.cpp...<br>
>> /usr/src/svn-src/freeswitch/libtool --mode=compile --tag=CXX g++
-I/usr/src/svn-src/freeswitch/src/include
-I/usr/src/svn-src/freeswitch/libs/libteletone/src -fPIC -fvisibility=hidden
-DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1 -g -O2 -D_GNU_SOURCE
-D_REENTRANT -pthread -I/usr/include/mono-1.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -DHAVE_CONFIG_H -c -o mod_managed.lo
mod_managed.cpp<br>
>> libtool: compile: g++
-I/usr/src/svn-src/freeswitch/src/include
-I/usr/src/svn-src/freeswitch/libs/libteletone/src -fPIC -fvisibility=hidden
-DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1 -g -O2 -D_GNU_SOURCE
-D_REENTRANT -pthread -I/usr/include/mono-1.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -DHAVE_CONFIG_H -c mod_managed.cpp -fPIC
-DPIC -o .libs/mod_managed.o<br>
>> mod_managed.cpp: In function 'void
InitManagedSession(ManagedSession*, char* (*)(void*, switch_input_type_t),
void (*)())':<br>
>> mod_managed.cpp:97: warning: deprecated conversion from string
constant to 'char*'<br>
>> libtool: compile: g++
-I/usr/src/svn-src/freeswitch/src/include -I/usr/src/svn-src/freeswitch/libs/libteletone/src
-fPIC -fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1 -g
-O2 -D_GNU_SOURCE -D_REENTRANT -pthread -I/usr/include/mono-1.0
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DHAVE_CONFIG_H -c mod_managed.cpp
-o mod_managed.o >/dev/null 2>&1<br>
>> Creating mod_managed.la...<br>
>> cat: .libs/mod_managed.log: No such file or directory<br>
>><br>
>>
=====================================================================<br>
>><br>
>> Thank you.<br>
>> On Fri, Jul 17, 2009 at 10:59 AM, Muhammad Shahzad <<a
href="http://us.mc335.mail.yahoo.com/mc/compose?to=shaheryarkh@googlemail.com">shaheryarkh@googlemail.com</a><<a
href="http://us.mc335.mail.yahoo.com/mc/compose?to=shaheryarkh@googlemail.com"
target="_blank">http://us.mc335.mail.yahoo.com/mc/compose?to=shaheryarkh@googlemail.com</a>>>
wrote:<br>
>> I tried to install mod_managed on ubuntu-9.04, mono framework
version 2.0. It gave me a lots of errors in Loader.cs, which seems to be SWIG
related. Since i am not a expert in SWIG so i disabled this module. This
happend long ago, i think FS svn revision 136xx.<br>
>><br>
>> Let me try to compile it from latest FS revision and see if it
works. I will let you know the results.<br>
>><br>
>> Thank you.<br>
>><br>
>> On Fri, Jul 17, 2009 at 3:54 AM, Diego Toro <<a
href="http://us.mc335.mail.yahoo.com/mc/compose?to=dftoro@yahoo.com">dftoro@yahoo.com</a><<a
href="http://us.mc335.mail.yahoo.com/mc/compose?to=dftoro@yahoo.com"
target="_blank">http://us.mc335.mail.yahoo.com/mc/compose?to=dftoro@yahoo.com</a>>>
wrote:<br>
>> Hey, I am here :)<br>
>><br>
>> I am working with mod_managed on Windows 2003 and Windows Vista with
sucessfull. I noted on user list the issue with LoadFile on Loader.cs
when a assembly had reference to others assemblies, I change LoadFile by
LoadFrom and the load is made fine.<br>
>><br>
>> I use c# application and sqlserver 2005, using FS and mod_managed.<br>
>><br>
>> Diego<br>
>><br>
>> --- On Thu, 7/16/09, Michael Giagnocavo <<a
href="http://us.mc335.mail.yahoo.com/mc/compose?to=mgg@giagnocavo.net">mgg@giagnocavo.net</a><<a
href="http://us.mc335.mail.yahoo.com/mc/compose?to=mgg@giagnocavo.net"
target="_blank">http://us.mc335.mail.yahoo.com/mc/compose?to=mgg@giagnocavo.net</a>>>
wrote:<br>
>><br>
>> From: Michael Giagnocavo <<a
href="http://us.mc335.mail.yahoo.com/mc/compose?to=mgg@giagnocavo.net">mgg@giagnocavo.net</a><<a
href="http://us.mc335.mail.yahoo.com/mc/compose?to=mgg@giagnocavo.net"
target="_blank">http://us.mc335.mail.yahoo.com/mc/compose?to=mgg@giagnocavo.net</a>>><br>
>> Subject: [Freeswitch-users] mod_managed users?<br>
>> To: "<a
href="http://us.mc335.mail.yahoo.com/mc/compose?to=freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><<a
href="http://us.mc335.mail.yahoo.com/mc/compose?to=freeswitch-users@lists.freeswitch.org"
target="_blank">http://us.mc335.mail.yahoo.com/mc/compose?to=freeswitch-users@lists.freeswitch.org</a>>"
<<a
href="http://us.mc335.mail.yahoo.com/mc/compose?to=freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><<a
href="http://us.mc335.mail.yahoo.com/mc/compose?to=freeswitch-users@lists.freeswitch.org"
target="_blank">http://us.mc335.mail.yahoo.com/mc/compose?to=freeswitch-users@lists.freeswitch.org</a>>><br>
>> Date: Thursday, July 16, 2009, 4:43 PM<br>
>><br>
>> Hey, if there are any mod_managed users on this list, I'd love it if
you were able to let me know. I'd like to get feedback, positive or negative,
on what worked, what didn't, and how mod_managed can improve for you. Feel
free to write on list or directly to me: mgg at giagnocavo.net<<a
href="http://giagnocavo.net/" target="_blank">http://giagnocavo.net/</a>><br>
>><br>
>> Thanks!<br>
>> -Michael<br>
>> -----Inline Attachment Follows-----<br>
>><br>
>> _______________________________________________<br>
>> FreeSWITCH-users mailing list<br>
>> <a
href="http://us.mc335.mail.yahoo.com/mc/compose?to=FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><<a
href="http://us.mc335.mail.yahoo.com/mc/compose?to=FreeSWITCH-users@lists.freeswitch.org"
target="_blank">http://us.mc335.mail.yahoo.com/mc/compose?to=FreeSWITCH-users@lists.freeswitch.org</a>><br>
>> <a
href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>> UNSUBSCRIBE:<a
href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>> <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><<a
href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a>><br>
>><br>
>><br>
>><br>
>> _______________________________________________<br>
>> FreeSWITCH-users mailing list<br>
>> <a
href="http://us.mc335.mail.yahoo.com/mc/compose?to=FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><<a
href="http://us.mc335.mail.yahoo.com/mc/compose?to=FreeSWITCH-users@lists.freeswitch.org"
target="_blank">http://us.mc335.mail.yahoo.com/mc/compose?to=FreeSWITCH-users@lists.freeswitch.org</a>><br>
>> <a
href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>> UNSUBSCRIBE:<a
href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>> <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><<a
href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a>><br>
>><br>
>><br>
>> --<br>
>> Muhammad Shahzad<br>
>> -----------------------------------<br>
>> CISCO Rich Media Communication Specialist (CRMCS)<br>
>> CISCO Certified Network Associate (CCNA)<br>
>> Cell: +92 334 422 40 88<br>
>> MSN: <a
href="http://us.mc335.mail.yahoo.com/mc/compose?to=shari_786pk@hotmail.com">shari_786pk@hotmail.com</a><<a
href="http://us.mc335.mail.yahoo.com/mc/compose?to=shari_786pk@hotmail.com"
target="_blank">http://us.mc335.mail.yahoo.com/mc/compose?to=shari_786pk@hotmail.com</a>><br>
>> Email: <a
href="http://us.mc335.mail.yahoo.com/mc/compose?to=shaheryarkh@googlemail.com">shaheryarkh@googlemail.com</a><<a
href="http://us.mc335.mail.yahoo.com/mc/compose?to=shaheryarkh@googlemail.com"
target="_blank">http://us.mc335.mail.yahoo.com/mc/compose?to=shaheryarkh@googlemail.com</a>><br>
>><br>
>><br>
>><br>
>> --<br>
>> Muhammad Shahzad<br>
>> -----------------------------------<br>
>> CISCO Rich Media Communication Specialist (CRMCS)<br>
>> CISCO Certified Network Associate (CCNA)<br>
>> Cell: +92 334 422 40 88<br>
>> MSN: <a
href="http://us.mc335.mail.yahoo.com/mc/compose?to=shari_786pk@hotmail.com">shari_786pk@hotmail.com</a><<a
href="http://us.mc335.mail.yahoo.com/mc/compose?to=shari_786pk@hotmail.com"
target="_blank">http://us.mc335.mail.yahoo.com/mc/compose?to=shari_786pk@hotmail.com</a>><br>
>> Email: <a
href="http://us.mc335.mail.yahoo.com/mc/compose?to=shaheryarkh@googlemail.com">shaheryarkh@googlemail.com</a><<a
href="http://us.mc335.mail.yahoo.com/mc/compose?to=shaheryarkh@googlemail.com"
target="_blank">http://us.mc335.mail.yahoo.com/mc/compose?to=shaheryarkh@googlemail.com</a>><br>
>><br>
>> -----Inline Attachment Follows-----<br>
>> _______________________________________________<br>
>> FreeSWITCH-users mailing list<br>
>> <a
href="http://us.mc335.mail.yahoo.com/mc/compose?to=FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><<a
href="http://us.mc335.mail.yahoo.com/mc/compose?to=FreeSWITCH-users@lists.freeswitch.org"
target="_blank">http://us.mc335.mail.yahoo.com/mc/compose?to=FreeSWITCH-users@lists.freeswitch.org</a>><br>
>> <a
href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>> UNSUBSCRIBE:<a
href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>> <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><<a
href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a>><br>
>><br>
>><br>
>><br>
>>
------------------------------------------------------------------------<br>
>><br>
>> _______________________________________________<br>
>> FreeSWITCH-users mailing list<br>
>> <a
href="http://us.mc335.mail.yahoo.com/mc/compose?to=FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
>> <a
href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>> UNSUBSCRIBE:<a
href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>> <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br>
> -----BEGIN PGP SIGNATURE-----<br>
> Version: GnuPG v1.4.9 (MingW32)<br>
> Comment: Using GnuPG with Mozilla - <a href="http://enigmail.mozdev.org/"
target="_blank">http://enigmail.mozdev.org</a><br>
><br>
> iQEcBAEBAgAGBQJKb1CvAAoJED7LBosr0F2u6E4H/i0SVOJDrh4+3ex6nEDnVJQl<br>
> mLjTPpyoAyP3cEp37YmQbrk2DAqfmQgysygaiKP6yxdFsyDsPmphMV1biWGi8DgM<br>
> pwTiGQACFdWWiWiYk/J09ZbRJR24S8zHxuETQK93/7fy53tgqW6o35hLxb3arOaH<br>
> VOAUDHQkMX7Q/PFaorWk/bhYDbq6+XxwkBCQHeMk3zErZT1rl+haxVtBXN1N0h8+<br>
> k5t3C5bJpPNjpTmm4m0BEOdA7WfU2iFIJeOH9ZoHih01n68COnb52pl349Ah2fV8<br>
> cVVouTbOtjGsRpyq9OYh7XhIFzH/QUZQykL/BMlR3Df3g8KRJ8Q8p/zj5bNRDlA=<br>
> =LgK4<br>
> -----END PGP SIGNATURE-----<br>
><br>
> _______________________________________________<br>
> FreeSWITCH-users mailing list<br>
> <a
href="http://us.mc335.mail.yahoo.com/mc/compose?to=FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> UNSUBSCRIBE:<a
href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br>
> _______________________________________________<br>
> FreeSWITCH-users mailing list<br>
> <a
href="http://us.mc335.mail.yahoo.com/mc/compose?to=FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> UNSUBSCRIBE:<a
href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br>
><br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a
href="http://us.mc335.mail.yahoo.com/mc/compose?to=FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a
href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a
href="http://us.mc335.mail.yahoo.com/mc/compose?to=FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a
href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><o:p></o:p></p>
</div>
</blockquote>
</td>
</tr>
</table>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Calibri","sans-serif"'><o:p> </o:p></span></p>
</div>
</body>
</html>