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