On Nov 21, 2007 2:51 PM, Vincent wrote: > Thanks for the tip, but it doesn't seem to work: > > ========== > [...] > ========== > > Looks like Record() always creates the file, even > if the user hung up without leaving a message. > Any other idea?
STAT() and record() are doing exactly what they are supposed to. Use the "s" flag to fetch the file size. You have to try a few hangups and figure out a minimum file size that qualifies as a recording in your setup. Based on the options you select for record you could have a file that is 25k in size but only has dead air, because that is how long it took to detect the hangup in your setup. Or you could have a 10k file with two words in it. Just depends. -baji. -- _______________________________________________ --Bandwidth and Colocation Provided by http://www.api-digital.com-- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
