We are setting up an auto-dialer to call customers based on the opening
of tickets in our internal ticketing system. Everything is going fine
so far except for one snag:
To test the system we are implementing I am manually moving .call files
into the /var/spool/asterisk/outgoing directory like this:
asterisk@dialerdev:~# cp test5703.call /tmp/test.call && mv
This works great and the call is immediately started, however more often
than not (ie. not all the time, but most of the time) after answering
the call or rejecting it (sending it to voicemail), another call is
performed using the same file.
I notice that when a call is initiated the .call file is not removed
immediately. Instead, asterisk waits until the call is completed before
removing the call file, so it seems like 5-10 seconds into the call
since the .call file still exists another call is placed.
Any advice on how we can avoid this situation and ensure that only one
call is made per .call file?
The OS is Ubuntu 11.04 server and we’re running Asterisk 1.8.