Hello, Trying to detect VM from C# mod_managed. I have seen weird behavior making concurrent outbound calls.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?I use session.Execute("avmd", "start") command and then listen in EventReceivedFunction for avmd_detect variable. Do I have to check for uuid?Please help.Code:mObjMainSession.EventReceivedFunction = (ev) =>{Log.WriteLine(LogLevel.Notice, "~~avmd_detect:" + mObjMainSession.GetVariable("avmd_detect"));
if (mObjMainSession.GetVariable("avmd_detect") == "TRUE"){Log.WriteLine(LogLevel.Notice, "~~VM detected");Log.WriteLine(LogLevel.Notice, aObjCntx.Session.uuid + "-" + "VM detected");mObjMainSession.Execute("avmd", "stop");
return "AVMD";}return "";};
Log.WriteLine(LogLevel.Notice, "~~Started AVMD");mObjMainSession.Execute("avmd", "start");