Skip to content

Instantly share code, notes, and snippets.

Created February 7, 2011 18:24
Show Gist options
  • Save anonymous/814886 to your computer and use it in GitHub Desktop.
Save anonymous/814886 to your computer and use it in GitHub Desktop.
-- x=0, open writing: /opt/depot/asterisk-1.4.24.1/var/spool/asterisk/voicemail/default/525/tmp/5Wm6Ar format: wav, 0x39afdd8
-- User ended message by pressing #
-- <DAHDI/1-1> Playing 'auth-thankyou' (language 'en')
-- <DAHDI/1-1> Playing 'vm-review' (language 'en')
-- Saving message as is
-- <DAHDI/1-1> Playing 'vm-msgsaved' (language 'en')
-- AGI Script agi://192.168.99.1 completed, returning 0
-- Executing [5122795510@inbound:3] Hangup("DAHDI/1-1", "") in new stack
-- Hungup 'DAHDI/1-1'
Yet all 5 directories under /opt/depot/asterisk-1.4.24.1/var/spool/asterisk/voicemail/default/525 are empty.
INBOX and tmp both show last modified date/time that matches the end of the call.
Any idea why app_voicemail would move the recording then delete it?
Thanks
[pid 10256] rename("/opt/depot/asterisk-1.4.24.1/var/spool/asterisk/voicemail/default/525/tmp/g867G5.wav", "/opt/depot/asterisk-1.4.24.1/var/spool/asterisk/voicemail/default/525/INBOX/msg0000.wav") = 0
[pid 10256] rename("/opt/depot/asterisk-1.4.24.1/var/spool/asterisk/voicemail/default/525/tmp/g867G5", "/opt/depot/asterisk-1.4.24.1/var/spool/asterisk/voicemail/default/525/INBOX/msg0000.txt") = 0
[pid 10256] unlink("/opt/depot/asterisk-1.4.24.1/var/spool/asterisk/voicemail/default/525/INBOX/msg0000.txt" <unfinished ...>
[pid 10256] <... unlink resumed> ) = 0
[pid 10256] unlink("/opt/depot/asterisk-1.4.24.1/var/spool/asterisk/voicemail/default/525/INBOX/msg0000.wav" <unfinished ...>
[pid 10256] <... unlink resumed> ) = 0
strace shows asterisk rename()s the file into the INBOX, then turns around and unlinks the files!!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment