<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>