When i dial 40, the record app begins. I speak the file is created in the directory. But it doesn’t go on. The file is 0 ko and there is no :
exten => 40,3,Wait(2)
exten => 40,1,Playback(/var/lib/asterisk/sounds/40ivr)
exten => 40,1,Hangup
both lines, and on your I don’t see the second line (-- Playing), so that means the file is missing, Asterisk doesn’t have access to read the file, or the file isn’t compatible…
hmm…i cant see the line ASNWERING your call before you playback a soundfile…
Remember:
A call not answered cant listen to a playback file.
According to your log:
Apr 6 17:00:16 VERBOSE[845] logger.c: – Executing SetCallerID(“SIP/11-97b9”, ““Patrice” <11>”) in new stack
Apr 6 17:00:16 VERBOSE[845] logger.c: – Executing NoOp(“SIP/11-97b9”, “Using CallerID “Patrice” <11>”) in new stack
Apr 6 17:00:16 VERBOSE[845] logger.c: – Executing Playback(“SIP/11-97b9”, “11ivrrecording”) in new stack
there should be an
exten=> whatevernumber,3,answer
exten=> whatevernumber,4,playback(nameoffile.wav)
Either you convert to GSM or you supply the fileextension !
WAV isnt THAT good format on linux/asterisk, i would convert it to GSM.