[asterisk-users] Question on retrieve_file() function in app_voicemail.c

jezzzz . jezonthenet at yahoo.com
Fri Dec 8 09:23:36 MST 2006


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


More information about the asterisk-users mailing list