Ok guys, hoping someone can help me because I’m stumped now !
While I know that the idea of having someone answer the phone and press a button is the better more reliable solution, I’m still interested to see how this AMD works. My problem is that whenever I call AMD, the call hangs up.
For your reference…
[code][test1]
exten => 3996,1,Goto(amdtest,start,1)
[amdtest]
exten => start,1,Noop(Test AMD)
same => n,Answer()
same => n,NoCDR
same => n,AMD(3500,1500,300,5000,120,50,5,256)
same => n,GotoIf($[${AMDSTATUS}=HUMAN]?humn:mach)
same => n(mach),WaitForSilence(2500)
same => n,Playback(vm-goodbye)
same => n,Hangup
same => n(humn),WaitForSilence(500)
same => n,Playback(hello-world)
same => n,Hangup[/code]
I’m then dropping a file into the outgoing directory containing the following…
Channel: SIP/rs_snom2
WaitTime: 30
Context: test1
Extension: 3996
The snom handset rings, but when I answer I see the following…
-- Executing [3996@test1:1] Goto("SIP/rs_snom2-00000076", "amdtest,start,1") in new stack
-- Goto (amdtest,start,1)
-- Executing [start@amdtest:1] NoOp("SIP/rs_snom2-00000076", "Test AMD") in new stack
-- Executing [start@amdtest:2] Answer("SIP/rs_snom2-00000076", "") in new stack
-- Executing [start@amdtest:3] NoCDR("SIP/rs_snom2-00000076", "") in new stack
== Spawn extension (amdtest, start, 4) exited non-zero on 'SIP/rs_snom2-00000076'
Any hints as to why it just hangs up ? I’m stumped…
Thanks,
Leon