[asterisk-users] setting up AMD

Peter Halliday hoangelos at gmail.com
Fri Jan 26 11:37:12 MST 2007


I downloaded version 1.4.0 compiled and installed it.  This is my
extensions.conf:

[outboundmsg1]
exten => s,1,NoCDR
exten => s,n,AMD
exten => s,n,NoOp(${AMDSTATUS})
exten => s,n,NoOp(${AMDREASON})
exten => s,n,GotoIf($[${AMDSTATUS}=HUMAN]?humn:mach)
exten => s,n(mach),WaitForSilence(2500)
exten => s,n,Playback(outboundmsgs/msg1)
exten => s,n,Hangup
exten => s,n(humn),WaitForSilence(500)
exten => s,n,Playback(outboundmsgs/msg1)
exten => s,n,Hangup

I tried echoing out the values to ensure they were correct.  When I tried
the log I got this results below, which shows that it does not ever return
from AMD function.  I pumped the logging up to 6, with no real difference in
what is being displayed.  If I just wait until the timeout period expired it
doesn't have any impact either.  I actually have to hang up before AMD
returns and when I do hangup it doesn't output anything anyway.


       > Channel SIP/sip.broadvoice.com-08f24a68 was answered.
    -- Executing [s at outboundmsg1:1] NoCDR("SIP/sip.broadvoice.com-08f24a68",
"") in new stack
[Jan 26 13:32:34] NOTICE[18188]: cdr.c:424 ast_cdr_free: CDR on channel
'SIP/sip.broadvoice.com-08f24a68' not posted
[Jan 26 13:32:34] NOTICE[18188]: cdr.c:426 ast_cdr_free: CDR on channel
'SIP/sip.broadvoice.com-08f24a68' lacks end
    -- Executing [s at outboundmsg1:2] AMD("SIP/sip.broadvoice.com-08f24a68",
"") in new stack
    -- AMD: SIP/sip.broadvoice.com-08f24a68 5555555555 (null) (Fmt: 4)
    -- AMD: initialSilence [2500] greeting [1500] afterGreetingSilence [800]
totalAnalysisTime [5000] minimumWordLength [100] betweenWordsSilence [50]
maximumNumberOfWords [3] silenceThreshold [256]
    -- AMD: HANGUP
[Jan 26 13:33:08] DEBUG[18188]: pbx.c:2383 __ast_pbx_run: Extension s,
priority 2 returned normally even though call was hung up
[Jan 26 13:33:08] NOTICE[18188]: pbx_spool.c:351 attempt_thread: Call
completed to SIP/6079362172 at sip.broadvoice.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070126/f40dbd0b/attachment.htm


More information about the asterisk-users mailing list