AMD - 這是一個內建 Asterisk 的功能,可用來偵測接電話的對方是語音或人聲。
[amd-test] exten => 9970,1,Noop(-- AMD Testing Start --) same => n,Background(beep) same => n,AMD() same => n,Noop(Detected: AMDSTATUS is ${AMDSTATUS}) same => n,Goto(Status-${AMDSTATUS}) same => n(Status-HUMAN),Noop(When AMDSTATUS is <HUMAN>)
same => n(Status-MACHINE),Noop(When AMDSTATUS is <MACHINE>)
same => n(Status-NOTSURE),Noop(When AMDSTATUS is <NOTSURE>)
same => n(Status-HANGUP),Noop(When AMDSTATUS is <HANGUP>)
same => n,Hangup