jezzzz .
2006-Dec-08 11:02 UTC
[asterisk-users] Question on retrieve_file() function in app_voicemail.c
I understand this function (line 832 in app_voicemail.c) is used to retrieve a voice message. What I don't understand however is why ".txt" is appended to the end of the filename. Could someone shed some light on this for me? Thanks, Jez if (msgnum > -1) make_file(fn, sizeof(fn), dir, msgnum); else ast_copy_string(fn, dir, sizeof(fn)); snprintf(full_fn, sizeof(full_fn), "%s.txt", fn); f = fopen(full_fn, "w+"); ____________________________________________________________________________________ Yahoo! Music Unlimited Access over 1 million songs. http://music.yahoo.com/unlimited
Tzafrir Cohen
2006-Dec-08 12:11 UTC
[asterisk-users] Question on retrieve_file() function in app_voicemail.c
On Fri, Dec 08, 2006 at 08:23:36AM -0800, jezzzz . wrote:> I understand this function (line 832 in > app_voicemail.c) is used to retrieve a voice message. > What I don't understand however is why ".txt" is > appended to the end of the filename. Could someone > shed some light on this for me?This is the small .txt file that contains some metadata and is in the voicemail box. Do you use the simple file-based mailbox? If so, simply have a look in the mailbox directory. -- Tzafrir Cohen icq#16849755 jabber:tzafrir@jabber.org +972-50-7952406 mailto:tzafrir.cohen@xorcom.com http://www.xorcom.com iax:guest@local.xorcom.com/tzafrir