Trouble making AMD work

I have installed Asterisk 1.2.x / 1.4 on my linux machine.
I am able to make calls but unable to make AMD command work.
As soon as the call flow comes to the extension with AMD command, it just keeps waiting and doesn’t go forward.
I have tried different options but am unable to make it work.

If anyone has any suggestions, it will be of great help…Thanks

care to clue us in as to what the “AMD command” is?

Answering Machine Detect

AMD(initialSilence[|greeting][|afterGreetingSilence][|totalAnalysisTime][|minimumWordLength][|betweenWordsSilence][|maximumNumberOfWords][|silenceThreshold])

Thanks

This is what happens:

If the call flow consists of playing a beep/message when the phone is answered, and then start AMD, it detects if its a human or a machine.

for example:
exten => s,1,Answer
exten => s,2,Playback(message)
exten => s,3,AMD
exten => s,4,GotoIf($["${AMDSTATUS}" = “AMD_PERSON”]?s,6)

But, if the call flow consists of starting AMD application when the phone is answered, then its just waiting…doesn’t go to next extension.

for example:
exten => s,1,Answer
exten => s,2,AMD
exten => s,3,GotoIf($["${AMDSTATUS}" = “AMD_PERSON”]?s,5)

[color=red]Is it necessary to establich an outbound channel before an inbound channel is accepted?[/color]

Any suggestions will be of great help…Thanks

Is it necessary to establich an outbound channel before an inbound channel is accepted?

In the AMD scenario its required to establish an outbound channel that is
then directed to the asterisk dialplan.

GotoIf($[“${AMDSTATUS}” = “AMD_PERSON”]?s,5)

Try removing the delimitter
GotoIf($[${AMDSTATUS} = AMD_PERSON]?s,5)

Thanks