# Voicemail records 0 seconds

**URL:** <https://community.asterisk.org/t/voicemail-records-0-seconds/32166>\
**Category:** Asterisk Support\
**Created:** [August 6, 2010, 11:12am UTC](https://community.asterisk.org/t/voicemail-records-0-seconds/32166 "2010-08-06T11:12:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hellbound](https://avatars.discourse-cdn.com/v4/letter/h/3bc359/32.png) [@hellbound](https://community.asterisk.org/u/hellbound)\
**Post date:** [August 6, 2010, 11:12am UTC](https://community.asterisk.org/t/voicemail-records-0-seconds/32166/1 "2010-08-06T11:12:57Z")

</div>

Hi Guys,

we’re getting this error on latest asterisk 1.4,  
I’m not sure what has happened, and what did I do wrong , but it was working until now:  
the message is actually 10 seconds, but it is shown 0  
I have checked the permission to that folder and it is fine also.

```auto
[Aug 6 19:03:32] WARNING[7004]: file.c:765 ast_readaudio_callback: Failed to write frame
    -- <SIP/9003-0000f4e7> Playing 'beep' (language 'en')
    -- Recording the message
    -- x=0, open writing: /var/spool/asterisk/voicemail/default/9001/tmp/Fgpcvx format: wav49, 0xa9c47b8
    -- x=1, open writing: /var/spool/asterisk/voicemail/default/9001/tmp/Fgpcvx format: gsm, 0xb2ca0c8
    -- x=2, open writing: /var/spool/asterisk/voicemail/default/9001/tmp/Fgpcvx format: wav, 0xa90d250
    -- User hung up
    -- Recording was 0 seconds long but needs to be at least 3 - abandoning
AGI Tx >> 200 result=-1
AGI Rx << GET VARIABLE VMSTATUS
AGI Tx >> 200 result=1 (FAILED)
```

voicemail conf

[code]  
[general]  
format=wav49|gsm|wav  
serveremail=noreply  
attach=yes  
minmessage=3  
skipms=3000

maxsilence=5

silencethreshold=0

maxlogins=3

pbxskip=yes

fromstring=UltraTone Voice Message

odbcstorage=mysqlvoicemailmessages  
odbctable=voicemail\_messages

emailsubject=Voice Message from ${VM\_CALLERID}

emailbody=Dear ${VM\_NAME}:\n\n\tYou have a new voice message. \n\tFrom : ${VM\_CALLERID}\n\tCID : ${VM\_CIDNUM}\n\tDuration : ${VM\_DUR}\n\tIn Mailbox : ${VM\_MAILBOX}\n\tDate,Time : ${VM\_DATE}\n\n\t\t\t\tUltraTone VoiceMail System\n

emaildateformat=%A, %d %B %Y at %H:%M:%S

sendvoicemail=yes ; Allow the user to compose and send a voicemail while inside

[zonemessages]  
eastern=America/New\_York|‘vm-received’ Q ‘digits/at’ IMp  
central=America/Chicago|‘vm-received’ Q ‘digits/at’ IMp  
central24=America/Chicago|‘vm-received’ q ‘digits/at’ H N 'hours’  
military=Zulu|‘vm-received’ q ‘digits/at’ H N ‘hours’ 'phonetic/z\_p’  
european=Europe/Copenhagen|‘vm-received’ a d b ‘digits/at’ HM

[default]

1234 =\> 4242,Example Mailbox,root@localhost

[other]  
1234 =\> 5678,Company2 User,root@localhost
