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
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users