diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-10-09 23:31:27 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-10-09 23:31:27 +0000 |
commit | 81313bd3d3bb8af8c6bb86e96d883a40df0bcbb7 (patch) | |
tree | 47ba65e6acc2e5433ef39e8bbdbf4a8b97ebf52e /apps | |
parent | 014599b2253cfa9960a1825ee33d6cfd999be8d6 (diff) |
Merged revisions 148144 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r148144 | mmichelson | 2008-10-09 18:30:47 -0500 (Thu, 09 Oct 2008) | 10 lines
Read the callerid in the correct order and make sure to
read the Urgent flag value from the IMAP headers.
(closes issue #13652)
Reported by: jaroth
Patches:
imapheaders.patch uploaded by jaroth (license 50)
........
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@148147 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_voicemail.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 666fbc6f3..419b09803 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -1309,9 +1309,9 @@ static int imap_retrieve_file(const char *dir, const int msgnum, const char *mai fprintf(text_file_ptr, "%s\n", "[message]"); - get_header_by_tag(header_content, "X-Asterisk-VM-Caller-ID-Num:", buf, sizeof(buf)); - fprintf(text_file_ptr, "callerid=\"%s\" ", S_OR(buf, "")); get_header_by_tag(header_content, "X-Asterisk-VM-Caller-ID-Name:", buf, sizeof(buf)); + fprintf(text_file_ptr, "callerid=\"%s\" ", S_OR(buf, "")); + get_header_by_tag(header_content, "X-Asterisk-VM-Caller-ID-Num:", buf, sizeof(buf)); fprintf(text_file_ptr, "<%s>\n", S_OR(buf, "")); get_header_by_tag(header_content, "X-Asterisk-VM-Context:", buf, sizeof(buf)); fprintf(text_file_ptr, "context=%s\n", S_OR(buf, "")); @@ -1321,6 +1321,8 @@ static int imap_retrieve_file(const char *dir, const int msgnum, const char *mai fprintf(text_file_ptr, "duration=%s\n", S_OR(buf, "")); get_header_by_tag(header_content, "X-Asterisk-VM-Category:", buf, sizeof(buf)); fprintf(text_file_ptr, "category=%s\n", S_OR(buf, "")); + get_header_by_tag(header_content, "X-Asterisk-VM-Flag:", buf, sizeof(buf)); + fprintf(text_file_ptr, "flag=%s\n", S_OR(buf, "")); fclose(text_file_ptr); exit: |