<HTML>
<HEAD>
<TITLE>Re: [Freeswitch-users] mod_vmd--can it do more than simply find VoiceMail Beeping?</TITLE>
</HEAD>
<BODY>
<FONT SIZE="4"><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Matt,<BR>
<BR>
No that’s all mod_vmd does...<BR>
<BR>
If you want to do a more advanced analysis of media stream coming from the client mod_amd is available under a commercial license. This does media analysis to determine machine vs humans based on a hand full of metrics that are tunable. Contact me off list for licensing details<BR>
<BR>
Ken Rice<BR>
krice@freeswitch.org<BR>
<BR>
<HR ALIGN=CENTER SIZE="3" WIDTH="95%"><B>From: </B>Matthew Fong <mattdfong@gmail.com><BR>
<B>Reply-To: </B><freeswitch-users@lists.freeswitch.org><BR>
<B>Date: </B>Tue, 7 Apr 2009 13:52:54 +0700<BR>
<B>To: </B><freeswitch-users@lists.freeswitch.org><BR>
<B>Subject: </B>[Freeswitch-users] mod_vmd--can it do more than simply find VoiceMail Beeping?<BR>
<BR>
I'm doing some outbound dialing, and want to use mod_vmd to detect if a live person picks up or a voicemail picks up. I've read the wiki, and have been pl</SPAN></FONT><FONT FACE="Arial"><SPAN STYLE='font-size:10pt'>aying around with the dialplan implementation and the lua implementation, along with capturing the mod_vmd<BR>
vmd::beep event.<BR>
</SPAN></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
Using the examples on the wiki, I am able to call a number, sleep for 25 seconds, and mod_vmd usually detects a Beep (the answering machine beep right before you are to speak your message).<BR>
<BR>
My question is, is there a way to use mod_vmd to detect if an answering machine or human has picked up within the first 1-2 seconds after being answered? If so, can I get an example of how to set this up?<BR>
<BR>
my dialplan to test my lua implementation looks like<BR>
<BR>
<!-- mod_vmd test extension (new mod)--> <extension name="vmdtest"> <condition field="destination_number" expression="^1986$"> <action application="answer"/> <action application="lua" data="matt_vmd.lua"/> <action application="hangup"/> </condition> </extension><BR>
<BR>
and matt_vmd.lua looks like<BR>
<BR>
print ("--matt_vmd.lua START--") local human_detected = false; local voicemail_detected = false; function onInput(session, type, obj) if type == "dtmf" and obj['digit'] == '1' and human_detected == false then print('MATT--I detected a HUMAN'); human_detected = true; return "break"; end if type == "event" and voicemail_detected == false then print('MATT--I detected a VOICEMAIL'); voicemail_detected = true; return "break"; end end session:setInputCallback("onInput"); session:execute("vmd"); session:sleep(25000); print ("--matt_vmd.lua FINISHED--")<BR>
<BR>
<BR>
Thanks.<BR>
<BR>
--matt<BR>
<BR>
<BR>
<HR ALIGN=CENTER SIZE="3" WIDTH="95%"></SPAN></FONT><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'>_______________________________________________<BR>
Freeswitch-users mailing list<BR>
Freeswitch-users@lists.freeswitch.org<BR>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><BR>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><BR>
<a href="http://www.freeswitch.org">http://www.freeswitch.org</a><BR>
</SPAN></FONT></FONT>
</BODY>
</HTML>