Hi, can some one please give me some suggestions about getting VM detection to work from C# mod_managed? Thanks. On Thu, Apr 3, 2014 at 3:17 PM, Malay Thakershi <mthakershi@gmail.com>wrote:
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");