[asterisk-users] How to use AMD "Answering Machine Detect" ?

Dave Fullerton dfullertasterisk at shorelinecontainer.com
Wed Jan 7 09:44:09 CST 2009


Daniel Varella wrote:
> Hi everybody,
> 
>    Happy New Year !
> 
>    I'm trying to detect if a call was answered by a machine (linke
> voicemail systems) or a human.
>    I would like to use AMD (Answering Machine Detect) command, but
> with my configuration it was not possible get there.
> 
>    Follow my dialplan:
> 
>      exten => _[789].,1,NoCDR
>      exten => _[789].,n,Dial(SIP/${EXTEN}@111,60)
>      exten => _[789].,n,AMD
>      exten => _[789].,n,NoOp(AMD Status is: ${AMDSTATUS})
>      exten => _[789].,n,Hangup
> 
>    What is happening is when the call is answered by the other part,
> Asterisk doesn't go to the next level (exten => _[789].,n,AMD). So AMD
> can't verify the call.
> 
> How can I do this ? Any idea ?
> 
> Thanks in advance.
> 

The Dial app will not exit until the call is completed (one or both 
parties hang up). You need to put what you want to happen during the 
call in a macro and then call the macro with the M() option to Dial (see 
the Dial app help text).

-Dave



More information about the asterisk-users mailing list