Asterisk Call Files
Asterisk has the ability to initiate a call from outside of the normal methods such as the dialplan, manager interface, or spooling interface.
By default, Asterisk will prefer to use
Call File Syntax
The call file consists of <Key>: <value> pairs; one per line.
- Execute a single application, or
- Execute the dialplan at the specified context/extension/priority.
To execute an application:
Application: <appname>- The application to execute
Data: <args>- The application arguments
To start executing applications in the dialplan:
Context: <context>- The context in the dialplan
Extension: <exten>- The extension in the specified context
Priority: <priority>- The priority of the specified extension; (numeric or label)
Setvar: <var=value>- You may also assign values to variables that will be available to the channel, as if you had performed a Set(var=value) in the dialplan. More than one Setvar: may be specified.
With the main process ID (pid) of the Asterisk process, the retry number, and the attempts start and end times in time_t format.
<astspooldir>/outgoing- The outgoing dir, where call files are put for processing
<astspooldir>/outgoing_done- The archive dir
<astspooldir>- Is specified in asterisk.conf, usually /var/spool/asterisk
How to schedule a call
Call files that have the time of the last modification in the future are ignored by Asterisk. This makes it possible to modify the time of a call file to the wanted time, move to the outgoing directory, and Asterisk will attempt to create the call at that time.