Record and Playback problem

Hey guys.
I’ve a little problem about Asterisk 1.8.11. I’m trying to record and playback message, but recorded files are empty and asterisk skip Playback in dialplan.
my extensions.conf:

exten => 200,1,Answer
exten => 200,2,Record(/tmp/test_call%d:alaw,,5) 
exten => 200,3,Playback(${RECORDED_FILE}})
exten => 200,4,Hangup

asterisk cli:

-- Executing [200@context:1] Answer("SIP/1600-00000003", "")
-- Executing [200@context:2] Record("SIP/1600-00000003", "/tmp/test_call%d:alaw,,5")
    -- <SIP/1600-00000003> Playing 'beep.slin' (language 'en')
  == Spawn extension (context, 200, 2) exited non-zero on 'SIP/1600-00000003'

ls -l /tmp:

-rw-rw---- 1 asterisk asterisk    0 Feb 24 21:43 test_call0.alaw
-rw-rw---- 1 asterisk asterisk    0 Feb 24 21:31 test_call0.ulaw
-rw-rw---- 1 asterisk asterisk   44 Feb 24 21:25 test_call0.wav
-rw-rw---- 1 asterisk asterisk    0 Feb 24 21:43 test_call1.alaw
-rw-rw---- 1 asterisk asterisk    0 Feb 24 21:36 test_call1.ulaw
-rw-rw---- 1 asterisk asterisk   44 Feb 24 21:25 test_call1.wav
-rw-rw---- 1 asterisk asterisk    0 Feb 24 21:40 test_call2.ulaw
-rw-rw---- 1 asterisk asterisk   44 Feb 24 21:25 test_call2.wav
-rw-rw---- 1 asterisk asterisk   44 Feb 24 21:27 test_call3.wav

I try used more formats, but doesn’t matter. Why Asterisk skip Playback in dialplan; why my recorded files are empty??

THX

Asterisk skips the Playback() because it receives a call disconnect.

I am not sure why the recorded files are empty.

Foxer, when you use Record() at the end of message you need to press #. Then the file is saved.
I you execute Record() but do not press the #, the file will be empty.

Run Record() Say “Hello Hello” then press #. Then, hangup the call.
Now you can Playback() the file.

Give me thanks.

I am facing similar problem but the thing is I am using Adhearsion and Asterisk v1.8.13. I am recording from my adhearsion application and saved recordings are of 44 bytes.

How should I send/press # ?

[quote=“gnu”]Foxer, when you use Record() at the end of message you need to press #. Then the file is saved.
I you execute Record() but do not press the #, the file will be empty.

Run Record() Say “Hello Hello” then press #. Then, hangup the call.
Now you can Playback() the file.

Give me thanks.[/quote]