[asterisk-users] callfile to auto-answering extension
Leif Neland
leifn at neland.dk
Sun Sep 27 11:42:19 CDT 2009
Ex Vito skrev:
> 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.
> --
>
Sorry, I'm a little rusty...
What exactly do I write, If I want to use a CLI originate command, to
execute the above callalert?
Leif
More information about the asterisk-users
mailing list