[asterisk-users] Can't dial out through AMI

Mike Ely mikeely at amyskitchen.net
Tue Jul 6 15:10:00 CDT 2010


SIP user => Asterisk 1.6 server => SIP Trunk => external destination:
works

AMI script => Asterisk 1.6 server => SIP Trunk => external destination:
Failed to authenticate on INVITE to '"asterisk"
<sip:asterisk@(ipaddr)>;tag=alphanumeric'

I¹ve tried doing things like ³include => contextwithtrunk" in various
places, googling, re-reading relevant portions of the largish O'Reilly
Asterisk book, no avail.

The call will go through to a registered SIP user just fine, but won't seem
to go out off the trunk.

Here's the basic set of commands being sent through AMI:
Action: Originate
Channel: SIP/ShoreTel
Variable: Data=teletubbie-murder
Context: accept
priority: 1
Number: (external number reachable from regular SIP user account)

Here's the accept context:
[accept]
include => incoming
include => outbound-pbx
exten => s,1,Answer
exten => s,n,Playback(custom/msg1)
exten => s,n,Background(custom/how-to-ack)
exten => s,n,WaitExten(5,m)
exten => 1,1,ForkCDR(v,s(fullcmd=${Data}))
exten => 1,n,Background(${Data})
exten => 1,n,Background(discon-or-out-of-service)
exten => 1,n,WaitExten(5,m)
exten => 1,n,Hangup
exten => 2,1,Background(de-activated)
exten => 2,n,ForkCDR(v,s(reject=${Data}))
exten => 2,n,Hangup
exten => 3,1,Goto(accept,1,2)
exten => *,1,Goto(accept,s,1)
exten => i,1,Goto(accept,s,1)
exten => t,1,Goto(accept,s,1)

Obviously, I'm playing around with the context a bit but for now just want
to get the outbound call working.




More information about the asterisk-users mailing list