<div dir="ltr">Hi, can some one please give me some suggestions about getting VM detection to work from C# mod_managed? Thanks.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Apr 3, 2014 at 3:17 PM, Malay Thakershi <span dir="ltr"><<a href="mailto:mthakershi@gmail.com" target="_blank">mthakershi@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello, Trying to detect VM from C# mod_managed. I have seen weird behavior making concurrent outbound calls.<div>
<br></div><div>Even though VM is detected on call A, call B (answered by real person) also gets hung up. Is it possible that the beep from call A is getting mixed up with call B?</div>
<div><br></div><div>I use session.Execute("avmd", "start") command and then listen in EventReceivedFunction for avmd_detect variable. Do I have to check for uuid?</div><div><br></div><div>Please help.</div>
<div><br></div><div>Code:</div><div><div> mObjMainSession.EventReceivedFunction = (ev) =></div><div> {</div><div> Log.WriteLine(LogLevel.Notice, "~~avmd_detect:" + mObjMainSession.GetVariable("avmd_detect"));<br>
</div><div> if (mObjMainSession.GetVariable("avmd_detect") == "TRUE")</div><div> {</div><div> Log.WriteLine(LogLevel.Notice, "~~VM detected");</div>
<div> Log.WriteLine(LogLevel.Notice, aObjCntx.Session.uuid + "-" + "VM detected");</div><div> mObjMainSession.Execute("avmd", "stop");<br>
</div><div> return "AVMD";</div><div> }</div><div><br></div><div> return "";</div><div> };</div></div><div><br>
</div><div><div> Log.WriteLine(LogLevel.Notice, "~~Started AVMD");</div><div> mObjMainSession.Execute("avmd", "start");</div></div><div><br></div></div>
</blockquote></div><br></div>