On Tue, 20 Nov 2007 23:27:34 -0500, "Baji Panchumarti"
<[EMAIL PROTECTED]> 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.
_______________________________________________
--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