[asterisk-users] ADM v. homemade code
John Regal
jregal at gmail.com
Tue Jun 23 11:03:24 CDT 2009
Hi,
I am attempting to implement Answering Machine Detect and have also played
with using BackgroundDetect instead. Does anyone recommend one over the
other? Here is the code I am using for the BackgroundDetect method (from
voip-info.org).
Thanks.
[detect]
exten => s,1,Set(MACHINE=0)
exten => s,2,Answer
exten => s,3,BackgroundDetect(silence/5, 1000, 50)
exten => s,4,Noop(answering machine detected)
exten => s,5,Set(MACHINE=1)
exten => s,6,BackgroundDetect(silence/30, 1000, 50, 30050)
exten => s,7,Noop(too long of a message)
exten => s,8,Hangup
exten => talk,1,GotoIf($[${MACHINE}=1]?2:3)
exten => talk,2,Goto(detect-machine,s,1) ; this is a machine
exten => talk,3,Goto(detect-human,s,1) ; this is a human
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090623/bdb6cd16/attachment.htm
More information about the asterisk-users
mailing list