<div dir="ltr">Please read <a href="http://wiki.freeswitch.org/wiki/Mod_managed#Native_Interop">http://wiki.freeswitch.org/wiki/Mod_managed#Native_Interop</a>, There is also a sample that links here, which should be enough to get you started; <a href="https://github.com/joshrivers/FreeSWITCH_Managed_ParkingLot">https://github.com/joshrivers/FreeSWITCH_Managed_ParkingLot</a>.<div>
<br></div><div>/Peter</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/9/15 Ed Graves <span dir="ltr"><<a href="mailto:egravesvip@gmail.com" target="_blank">egravesvip@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hi. I've been working for days now trying to get a simple inbound call to work using <a href="http://vb.net" target="_blank">vb.net</a> on Windows using FreeSWITCH version 1.2.12 and Visual Studio 2012.</div>
<div>
<br></div><div>I'm tired and frustrated, but I think I'm almost there. Please help.</div><div> </div><div>I'm using the sample script below, but when I copy the .exe into place, FreeSWITCH tries to execute it immediately. When this happens, I get the output below, with lots of "session is not initialized" errors, which makes sense, because there is no session. </div>
<div><br></div><div>But then when I place an inbound call using my soft-phone, the script runs and I still get the "session not initialized" errors.</div><div><br></div><div>So, I don't understand why A) FreeSWITCH tries to run my app immediately when I copy it into place when I don't ask it to, and B) why I get these "session not initialized" errors when it runs in response to my inbound softphone call.</div>
<div><br></div><div><br></div><div>********** My Sample App **********</div><div><br></div><div>Module inbound</div><div> Sub Main()<br></div><div><br></div><div> Dim fs As New FreeSWITCH.Native.ManagedSession()<br>
</div><div><br></div><div> fs.Answer()</div><div> fs.StreamFile("C:\Genesis\freeswitch\freeswitch1.2.12\Debug\sounds\en\us\callie\ivr\8000\ivr-congratulations_you_pressed_star.wav", 0)</div>
<div> FreeSWITCH.Log.WriteLine(FreeSWITCH.LogLevel.Error, "I'm working!!!")</div><div> fs.StreamFile("C:\Genesis\freeswitch\freeswitch-1.2.12\Debug\sounds\en\us\callie\ivr\8000\ivr-congratulations_you_pressed_star.wav", 0)</div>
<div> fs.Hangup("end")<br></div><div> End Sub</div><div>End Module<br></div></div><div><br></div><div><br></div><div>******** My output ********</div><div><br></div><div>2013-09-14 01:55:08.541500 [INFO] mod_dialplan_xml.c:558 Processing egg <egg>->12345 in context public<br>
</div><div>2013-09-14 01:55:08.541500 [ERR] switch_cpp.cpp:632 session is not initalized</div><div>2013-09-14 01:55:08.541500 [ERR] switch_cpp.cpp:951 session is not initalized</div><div>2013-09-14 01:55:08.541500 [ERR] switch_cpp.cpp:1287 I'm working!!!</div>
<div>2013-09-14 01:55:08.541500 [ERR] switch_cpp.cpp:951 session is not initalized</div><div>2013-09-14 01:55:08.541500 [ERR] switch_cpp.cpp:668 session is not initalized<br></div><div><br></div><div>Again, I'd really appreciate any help.</div>
<div><br></div><div>Thanks in adance,</div><div>Ed</div><div><br></div><div><br></div><div><br></div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><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>
<br></blockquote></div><br></div>