<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">&lt;<a href="mailto:mthakershi@gmail.com" target="_blank">mthakershi@gmail.com</a>&gt;</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(&quot;avmd&quot;, &quot;start&quot;) 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) =&gt;</div><div>                    {</div><div>                        Log.WriteLine(LogLevel.Notice, &quot;~~avmd_detect:&quot; + mObjMainSession.GetVariable(&quot;avmd_detect&quot;));<br>

</div><div>                        if (mObjMainSession.GetVariable(&quot;avmd_detect&quot;) == &quot;TRUE&quot;)</div><div>                        {</div><div>                            Log.WriteLine(LogLevel.Notice, &quot;~~VM detected&quot;);</div>

<div>                            Log.WriteLine(LogLevel.Notice, aObjCntx.Session.uuid + &quot;-&quot; + &quot;VM detected&quot;);</div><div>                            mObjMainSession.Execute(&quot;avmd&quot;, &quot;stop&quot;);<br>

</div><div>                            return &quot;AVMD&quot;;</div><div>                        }</div><div><br></div><div>                        return &quot;&quot;;</div><div>                    };</div></div><div><br>

</div><div><div>                    Log.WriteLine(LogLevel.Notice, &quot;~~Started AVMD&quot;);</div><div>                    mObjMainSession.Execute(&quot;avmd&quot;, &quot;start&quot;);</div></div><div><br></div></div>

</blockquote></div><br></div>