[asterisk-users] [1.4 - Record] How to tell if user did leave a msg?
Vincent
vincent.delporte at bigfoot.com
Wed Nov 21 13:51:32 CST 2007
On Tue, 20 Nov 2007 23:27:34 -0500, "Baji Panchumarti"
<baji.panchumarti at gmail.com> wrote:
>use dialplan function STAT()
Thanks for the tip, but it doesn't seem to work:
==========
exten => 888,1,Playback(/root/asterisk_sound_files/leave_msg)
exten => 888,n,Set(CALLTIME=${STRFTIME(${EPOCH},,%d-%b-%Y-%Hh%M)})
exten => 888,n,Record(/tmp/${CALLTIME}.wav,3,30)
exten =>
888,n,GotoIf($[${STAT(e,/tmp/${CALLTIME}.wav)}]?888,valid_msg)
exten => 888,n,Verbose(BAD!)
exten => 888,n,Hangup()
exten => 888,n(valid_msg),Verbose(HERE!)
==========
Looks like Record() always creates the file, even if the user hung up
without leaving a message. Any other idea?
Thank you.
More information about the asterisk-users
mailing list