[asterisk-commits] mmichelson: trunk r148144 - /trunk/apps/app_voicemail.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Oct 9 18:30:47 CDT 2008
Author: mmichelson
Date: Thu Oct 9 18:30:47 2008
New Revision: 148144
URL: http://svn.digium.com/view/asterisk?view=rev&rev=148144
Log:
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)
Modified:
trunk/apps/app_voicemail.c
Modified: trunk/apps/app_voicemail.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_voicemail.c?view=diff&rev=148144&r1=148143&r2=148144
==============================================================================
--- trunk/apps/app_voicemail.c (original)
+++ trunk/apps/app_voicemail.c Thu Oct 9 18:30:47 2008
@@ -1520,9 +1520,9 @@
fprintf(text_file_ptr, "%s\n", "[message]");
+ 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, "callerid=\"%s\" ", S_OR(buf, ""));
- get_header_by_tag(header_content, "X-Asterisk-VM-Caller-ID-Name:", 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, ""));
@@ -1532,6 +1532,8 @@
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:
More information about the asterisk-commits
mailing list