[asterisk-users] callfile to auto-answering extension

Ex Vito ex.vitorino at gmail.com
Sun Sep 27 09:20:20 CDT 2009


2009/9/27 Leif Neland <leifn at neland.dk>:
>
> Can I, via a callfile, or command-line parameters to Asterisk start a
> "dialplan-script"?
> eg asterisk -someflag "execute callalert"
>
> then in dialplan
> [callalert]
> exten => s,1,SIPAddHeader(Call-Info:\;answer-after=0)
> exten => s,2,dial(SIP/36)
> exten => s,3,Playback(firealert)
> exten => s,4,Hangup
>

  ...sure, use Local channels.
 You can use Local/<ext>@<context> as the originating channel in
 a call file or AMI/CLI originate command.
--
  exvito



More information about the asterisk-users mailing list