[asterisk-users] [1.4 - Record] How to tell if user did leave a msg?

Baji Panchumarti baji.panchumarti at gmail.com
Wed Nov 21 14:45:35 CST 2007


  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.

 --



More information about the asterisk-users mailing list