[asterisk-users] Asterisk Manager Interface: Auto-answer of 'Originate' command

Steve Langstaff steve.langstaff at citel.com
Thu Jan 11 08:54:05 MST 2007


Does anyone know of a way to make an originate request coming over the
management interface (e.g. AstTapi click-to-dial) include the relevant
Alert-Info SIP headers to enable the originating phone to auto-answer?

I've tried setting up a custom context (see below), but the dial plan is
only entered AFTER the originating call is answered, so the SIP header
is added to the terminating call leg, not the originating call leg.

[click-to-call-custom]
exten => _X.,1,NoOp("Click to Call") 
exten => _X.,2,SetVar(_ALERT_INFO=info=alert-autoanswer) 
exten => _X.,3,Goto(from-internal,${EXTEN},1)

______________________________
Steve Langstaff

Citel.
The VoIP Migration Company.(tm)


More information about the asterisk-users mailing list