[Freeswitch-users] avmd usage help or issue?

Malay Thakershi mthakershi at gmail.com
Wed Apr 9 22:27:54 MSD 2014


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 at 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");
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140409/f1e4d98b/attachment.html 


Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users mailing list