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