[asterisk-users] Record ANSWERED call

Kevin Larsen kevin.larsen at pioneerballoon.com
Mon Sep 15 16:51:33 CDT 2014

> The problem is it records all incoming calls include those with the 
> disposition of "NO ANSWER, FAILED, BUSY, UNKNOWN.". For example the "NO 
> ANSWER" call will leave a 44byte wav file in my ${RECDIR}
> How can I record only the calls with the disposition of "ANSWERED"?
> May be I should run a cronjob to clean up the 44byte file after it's 
> been created? Is there a better way?

I would probably add a line in my hangup (h) extension that does an execif 
to delete the file if the disposition is not equal to "ANSWERED".
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20140915/60495a6f/attachment.html>

More information about the asterisk-users mailing list