请你告诉我我错在哪里,我是Asterisk的新人。 我正试图在拨出电话(远程提供商)
上检测语音邮件exten => _011225XXXXXXXX,1,Dial(SIP/${EXTEN}@dinstar)
exten => _011225XXXXXXXX,n,AMD()
exten => _011225XXXXXXXX,n,GotoIf($["${AMDSTATUS}" = "HUMAN"]? human:machine)
exten => _011225XXXXXXXX,n(machine),WaitForSilence(2000)
exten => _011225XXXXXXXX,n,Playback(asterisk-friend)
exten => _011225XXXXXXXX,n,Hangup()
exten => _011225XXXXXXXX,n(human),Verbose(3, We've got a human on the line!)
exten => _011225XXXXXXXX,n,Playback(transfer)
exten => _011225XXXXXXXX,n,Dial(SIP/${EXTEN}@dinstar)
exten => _011225XXXXXXXX,n,Playback(im-sorry)
exten => _011225XXXXXXXX,n,Hangup()
Cli print
CLI> == Using SIP RTP CoS mark 5
-- Executing [01122548484444@LocalSets:1] Dial("SIP/mor-00000002", "SIP/01122548484444@dinstar") in new stack
== Using SIP RTP CoS mark 5
-- Called SIP/01122548484444@dinstar
-- SIP/dinstar-00000003 is making progress passing it to SIP/mor-00000002
-- SIP/dinstar-00000003 answered SIP/mor-00000002
-- Remotely bridging SIP/mor-00000002 and SIP/dinstar-00000003
== Spawn extension (LocalSets, 01122548484444, 1) exited non-zero on 'SIP/mor-00000002'
答案 0 :(得分:0)
此示例中的Asterisk AMD将按照您的要求启动 - 在拨号命令完成后。
如果您想使用AMD配置拨号应答,您应该在应答宏(拨号命令中的M参数)中使用它。
如果您想使用AMD来检测发生的情况和路由呼叫,您应该在其他呼叫端实施AMD /将其添加到您的拨号核心。有关示例,请参阅vicidial.org或其他拨号器。