# # This is a sample file that can be dumped in /var/spool/asterisk/outgoing # to generate a call. Free powerpoint 2010 download software. For Asterisk to read call files, you must have the # pbx_spool.so module loaded. # # Comments are indicated by a '#' character that begins a line, or follows # a space or tab character. To be consistent with the configuration files # in Asterisk, comments can also be indicated by a semicolon. However, the # multiline comments (;-- --;) used in Asterisk configuration files are not # supported. Semicolons can be escaped by a backslash. # # Obviously, you MUST specify at least a channel in the same format as you # would for the 'Dial' application.
Let's demonstrate the.call file principle with an example. Assume that we have a SIP phone registered with the number 2000 in Asterisk. In addition, we have the following extension in the dialplan.
Only one channel name is permitted. # Channel: DAHDI/1 # # You can specify codecs for the call Codecs: alaw, speex, h264 # # You may also specify a wait time (default is 45 seconds) for how long to # wait for the channel to be answered, a retry time (default is 5 mins) # for how soon to retry this call, and a maximum number of retries (default # is 0) for how many times to retry this call. # MaxRetries: 2 RetryTime: 60 WaitTime: 30 # # Once the call is answered, you must provide either an application/data # combination, or a context/extension/priority in which to start the PBX.

Asterisk call files are text files with a certain structure that tell Asterisk to initiate a call when moved to /var/spool/asterisk/outgoing directory. You can use them in order to initiate calls without an extension or bypass the dialplan for troubleshooting purposes. They can be scheduled on any time and date you want and used for call campaigns. Requirements and general information on how Asterisk call file works • pbx_spool.so module needs to be loaded into Asterisk • Calls files will only be read when they are moved into astspooldir directory defined in asterisk.conf (usually /var/spool/asterisk/outgoing/) • Upon detection Asterisk will immediately execute the directives unless the modification time is in the future, in which Asterisk will wait for the time on the server to match before execute file. • Upon completion asterisk will remove the call from spooling directory Asterisk call file syntax • Specify where and how to call: • Channel:: Channel to use for the call (SIP, DAHDI, IAX ).
• CallerID: “name”. The format is mandatory “Some Name” • MaxRetries: Number of retries before failing (not including the initial attempt, e.g. 0 = total of 1 attempt to make the call). Default is 0.