File msg0000.txt zero byte

HI
on an asterisk 18.18.0 I have a set of voicemails. When I leave the message, the message is saved for example as msg0001.wav. The audio file can be listened to correctly.
The problem is the report file, msg0001.txt, with caller data, time, etc… unfortunately this file is 0 bytes.

What could it be? The same configuration on another asterisk ver 1.8 the report file is generated correctly

B.R.

This may be obvious, but the first things I would check I would check are the
ownership and permissions on the directories from / down to
/var/spool/asterisk/voicemail/… all the way to wherever the msg0001.wav
file lives in your configuration.

The second thing I would check is the verbose log output from Asterisk when
such a message is being left.

Antony.

HI
thanks for your answer, below you find in the order

  • the console output
  • linux user permissions
  • voicemail configuration.
    Asterisk runs under the user “asterisk”. If I try
    sudo su - asterisk
    and create a .txt file in the voicemail path, the file is created successfully. The asterisk user has the rights to create, modify and delete

Console verbose was 3 and is now 10.
== Using SIP RTP CoS mark 5
> 0x7f45f4039640 – Strict RTP learning after remote address set to: XXXX.XXXX.XXXX.XXXX:5934
– Executing [123456@from_frontend:1] Set(“SIP/as_serviceRH8-00000004”, “num_vm=123456”) in new stack
– Executing [123456@from_frontend:2] Set(“SIP/as_serviceRH8-00000004”, “MailboxContext=TecnoPBX”) in new stack
– Executing [123456@from_frontend:3] Set(“SIP/as_serviceRH8-00000004”, “Arguments=”) in new stack
– Executing [123456@from_frontend:4] Set(“SIP/as_serviceRH8-00000004”, “menu=6”) in new stack
– Executing [123456@from_frontend:5] Goto(“SIP/as_serviceRH8-00000004”, “vm_tecnopbx,s,1”) in new stack
– Goto (vm_tecnopbx,s,1)
– Executing [s@vm_tecnopbx:1] VoiceMail(“SIP/as_serviceRH8-00000004”, “123456@TecnoPBX,s”) in new stack
> 0x7f45f4039640 – Strict RTP switching to RTP target address XXXX.XXXX.XXXX.XXXX:5934 as source
– <SIP/as_serviceRH8-00000004> Playing ‘beep.alaw’ (language ‘it’)
– Recording the message
– x=0, open writing: /var/spool/asterisk/voicemail/TecnoPBX/123456/tmp/8SyXAX format: wav, 0x7f45c8013b30
> 0x7f45f4039640 – Strict RTP learning complete - Locking on source address XXXX.XXXX.XXXX.XXXX:5934
> 0x7f45f4039640 – Strict RTP learning after remote address set to: XXXX.XXXX.XXXX.XXXX:15810
– User hung up
== Spawn extension (vm_tecnopbx, s, 1) exited non-zero on ‘SIP/as_serviceRH8-00000004’
– Executing [h@vm_tecnopbx:1] Verbose(“SIP/as_serviceRH8-00000004”, " ** Voicemail numero: 123456") in new stack
** Voicemail numero: 123456
– Executing [h@vm_tecnopbx:2] GotoIf(“SIP/as_serviceRH8-00000004”, “1?h,test”) in new stack
– Goto (vm_tecnopbx,h,9)
– Executing [h@vm_tecnopbx:9] System(“SIP/as_serviceRH8-00000004”, “/usr/bin/python /usr/share/asterisk/scripts/test.py 97498 6 /var/spool/asterisk/voicemail/TecnoPBX/123456/INBOX/*”) in new stack
– Executing [h@vm_tecnopbx:10] Hangup(“SIP/as_serviceRH8-00000004”, “”) in new stack
== Spawn extension (vm_tecnopbx, h, 10) exited non-zero on ‘SIP/as_serviceRH8-00000004’

-rw-rw-rw-. 1 asterisk asterisk 0 Jun 14 07:43 /var/spool/asterisk/voicemail/TecnoPBX/123456/INBOX/msg0020.txt
-rw-r–r–. 1 asterisk asterisk 101484 Jun 14 07:43 /var/spool/asterisk/voicemail/TecnoPBX/123456/INBOX/msg0020.wav

123456 => 123456,123456,XXXX@XXXX.XXXX,attach=yes|saycid=yes|envelope=yes|delete=no

Pooh did ask for all directories from / all the way down to where your file lives. They all have to have the right access, not just the file itself.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.