hope this will help you
asterisk call file sample
now give necessary permission to the /var/spool/asterisk/outgoing dirctory
ie: chmod 777 /var/spool/asterisk/outgoing
mv filename.call /var/spool/asterisk/outgoing
the call will be immediatly connected
FYI description of the call file
The channel upon which to initiate the call. Uses the same syntax as the Dial()
The caller ID to be used for the call.
Number of seconds the system waits for the call to be answered. If not specified, defaults to 45 seconds.
Maximum number of dial retries (if an attempt fails because the device is busy or not reachable). If not specified, defaults to 0 (only one attempt is made).
Number of seconds to wait until the next dial attempt. If not specified, defaults to 300 seconds.
The account code for the CDR.
The destination context.
The destination extension, in which dialplan execution begins if the device is answered.
The destination priority. If not specified, defaults to 1.
Setvar: lets you set one or more channel variables.
By default, call files are deleted immediately upon execution. If Archive: yes is set, they are copied into/var/spool/asterisk/outgoing_done/ instead. Asterisk adds a line to the call file which describes the result