You can not detect the machine before answer. That’s just not how voicemail works. You want to use mod_com_amd (available at the freeswitch.com website) for doing proper voicemail detection. From: FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org> On Behalf Of Tiago Galvão Gomes de Souza Sent: Friday, November 30, 2018 9:33 AM To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Subject: Re: [Freeswitch-users] early media + sip trunk some can help me? Em ter, 27 de nov de 2018 às 20:36, Tiago Galvão Gomes de Souza <tiagoggsouza@gmail.com <mailto:tiagoggsouza@gmail.com> > escreveu: I'm from brazil and here we have a lot of early media calls with machine answer(voicemail), I want to detect early media + machine answer and hangup this call , I read about avmd mod and it is a way to detect after answer call and i would like to detect machine before answer, it is possible with freeswitch? I tought that monitor_early_media_fail was a better way to do it but I don't know how use it because when i tried to use doesn't work, problably I'm using in a wrong way, I used AMD from asterisk to detect Answer machine after Answer... some can help me? Em seg, 26 de nov de 2018 às 08:00, Sergey Safarov <s.safarov@gmail.com <mailto:s.safarov@gmail.com> > escreveu: Need to try detect voicemail tone. https://freeswitch.org/confluence/display/FREESWITCH/mod_avmd Or try play announcement after answer and check voice activity. If voice activity is high, then voicemail https://github.com/seanbright/mod_amd пн, 26 нояб. 2018 г. в 03:34, Ken Rice <krice@freeswitch.org <mailto:krice@freeswitch.org> >: Voicemail is not earlier media. the call is answed. early media is things like ringing or other in band signaling methods like fast busy or ‘not in service’ recordings. Sent from my iPhone On Nov 24, 2018, at 09:03, Tiago Galvão Gomes de Souza <tiagoggsouza@gmail.com <mailto:tiagoggsouza@gmail.com> > wrote: Hello friends, I would like to know how is the better way to block outbound calls with early media and sip trunk, I have a system for callcenter and I have a big problem with calls in voicemail entering to agents , I tried to use monitor_early_media_fail with ignore_early_media but I didn't have a sucessfull, it is possible to use this function to block it? How can i do it? My wish is to stop the call when i knew that is a voicemail call. -- Atenciosamente, Tiago Galvão Gomes de Souza. _________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com <mailto:sales@freeswitch.com> https://freeswitch.com Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com _________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com <mailto:sales@freeswitch.com> https://freeswitch.com Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com _________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com <mailto:sales@freeswitch.com> https://freeswitch.com Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com -- Atenciosamente, Tiago Galvão Gomes de Souza. -- Atenciosamente, Tiago Galvão Gomes de Souza.