Can't record call

Hi. I have asterisk 1.4.18 installed on CentOS 4.3. And it is setup on VMWare.
I want to record the call.
Here is my code :

...
exten => s,9,Record(${folderName}/${fileName}.wav)
...

I use SoftPhone (EyeBeam) to call. And here is sip.conf

[general]

bindport = 5060           ; Port to bind to (SIP is 5060)
bindaddr = 0.0.0.0    ; Address to bind to (all addresses on machine)
disallow=all
allow=ulaw
allow=alaw
allow=g723
allow=g729
allow=gsm
mohsuggest=holdmay
allowtransfer=yes
context = from-sip-external 
callerid = Unknown
notifyringing=yes
notifyhold=yes
limitonpeers=yes
nat=yes
tos_sip=cs3
tos_audio=ef
tos_video=af41

[101]
Type=friend
Username=101
Secret=123456
Disallow=all
Allow=ulaw
Host=dynamic
Context=from-sip
qualify=yes

[102]
Type=friend
Username=102
Secret=123456
Disallow=all
Allow=ulaw
Host=dynamic
Context=from-zaptel
qualify=yes

My file is created in right folder and right file name.
But when i play the file, i hear nothing.
If you have an idea, please tell me

you can check length of file and its content.
I record files only as raw - and have no problems. Then I can play them as raw, or can convert them to wav.

When you say “Record the call” do you mean make a recording or record a call between 2 users ? can you post the whole dialplan

Ian

[quote=“ianplain”]When you say “Record the call” do you mean make a recording or record a call between 2 users ? can you post the whole dialplan

Ian[/quote]

It is simple :

exten => s,6,Set(folderName=custom/1900xxxx/makefriend/record/girl/${STRFTIME(${EPOCH},,%Y/%m/%d)}) exten => s,7,Set(fileName=${user_id}_${STRFTIME(${EPOCH},,%H%M%S)}) exten => s,8,Background(custom/1900xxxx/makefriend/hd_51_2) exten => s,9,Record(${folderName}/${fileName}.wav) exten => s,10,Background(custom/1900xxxx/makefriend/successful)