<div dir="ltr"><font color="#333333"><font face="verdana,sans-serif">No it doesn't work and this is the error I get.</font></font><div><font color="#333333"><font face="verdana,sans-serif"><br></font></font></div><div>
<font color="#333333"><font face="verdana,sans-serif"><br></font></font></div><div><font color="#333333"><font face="verdana,sans-serif"><div>freeswitch@internal> managed TestIvr</div><div>-ERR no reply</div><div><br>
</div>
<div>freeswitch@internal> 2010-09-02 14:23:34.096077 [ERR] switch_cpp.cpp:1177 Exception in Execute(TestIvr): System.NullReferenceException: Object reference not set to an instance of an object</div><div> at System.Runtime.Remoting.Contexts.Context.get_NeedsContextSink () [0x00000] in <filename unknown>:0</div>
<div> at (wrapper xdomain-invoke) FreeSWITCH.ApiPluginExecutor:ExecuteApi (string,intptr,intptr)</div><div> at (wrapper remoting-invoke-with-check) FreeSWITCH.ApiPluginExecutor:ExecuteApi (string,intptr,intptr)</div><div>
at FreeSWITCH.Loader.Execute (System.String command, IntPtr streamHandle, IntPtr eventHandle) [0x00000] in <filename unknown>:0</div><div>2010-09-02 14:23:34.096077 [ERR] mod_managed.cpp:404 Execute failed for TestIvr (unknown module or exception).</div>
<div><br></div><div><br></div><div><br></div><div>--- My source code ---</div><div><br></div><div><div>using System;</div><div>using System.Collections.Generic;</div><div>using System.Text;</div><div>using FreeSWITCH;</div>
<div>using FreeSWITCH.Native;</div><div><br></div><div>namespace Ivr</div><div>{</div><div> public class TestIvr : IAppPlugin, IApiPlugin</div><div> {</div><div> public static void Main(string[] args)</div><div>
{</div><div> }</div><div><br></div><div> public void Run(AppContext context)</div><div> {</div><div> context.Session.Answer();</div><div><br></div><div> context.Session.sleep(2000, 0);</div>
<div><br></div><div> context.Session.Hangup("");</div><div><br></div><div> }</div><div><br></div><div> public void Execute(ApiContext context)</div><div> {</div><div> Console.WriteLine("!!!!WORKING!!!!");</div>
<div> }</div><div><br></div><div> public void ExecuteBackground(ApiBackgroundContext context)</div><div> {</div><div> </div><div> }</div><div> }</div><div>}</div></div><div><br></div>
<div><br></div><div>Thanks.</div><div><br></div></font></font>Yitzchok<br>
<br><br><div class="gmail_quote">On Thu, Sep 2, 2010 at 2:12 PM, Jeff Lenk <span dir="ltr"><<a href="mailto:jeff@jefflenk.com">jeff@jefflenk.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
One more question<br>
<br>
When you load Demo.csx can you succesfully execute "managed ApiDemo" from<br>
the cli?<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://freeswitch-users.2379917.n2.nabble.com/mod-managed-on-linux-centos-tp5485480p5492242.html" target="_blank">http://freeswitch-users.2379917.n2.nabble.com/mod-managed-on-linux-centos-tp5485480p5492242.html</a><br>
</font><div><div></div><div class="h5">Sent from the freeswitch-users mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto: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>
</div></div></blockquote></div><br></div></div>