[asterisk-commits] tilghman: branch 1.4 r272147 -	/branches/1.4/apps/app_voicemail.c
    SVN commits to the Asterisk project 
    asterisk-commits at lists.digium.com
       
    Wed Jun 23 13:40:33 CDT 2010
    
    
  
Author: tilghman
Date: Wed Jun 23 13:40:28 2010
New Revision: 272147
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=272147
Log:
Backport part of revision 136715 to fix callerid in voicemail text files (IMAP only).
(closes issue #16945)
 Reported by: mneuhauser
Modified:
    branches/1.4/apps/app_voicemail.c
Modified: branches/1.4/apps/app_voicemail.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.4/apps/app_voicemail.c?view=diff&rev=272147&r1=272146&r2=272147
==============================================================================
--- branches/1.4/apps/app_voicemail.c (original)
+++ branches/1.4/apps/app_voicemail.c Wed Jun 23 13:40:28 2010
@@ -1193,9 +1193,10 @@
 
 	fprintf(text_file_ptr, "%s\n", "[message]");
 
+	cid_name = get_header_by_tag(header_content, "X-Asterisk-VM-Caller-ID-Name:");
+	fprintf(text_file_ptr, "callerid=\"%s\" ", S_OR(cid_name, ""));
 	cid_num = get_header_by_tag(header_content, "X-Asterisk-VM-Caller-ID-Num:");
-	cid_name = get_header_by_tag(header_content, "X-Asterisk-VM-Caller-ID-Name:");
-	fprintf(text_file_ptr, "callerid=\"%s\" <%s>\n", S_OR(cid_name, ""), S_OR(cid_num, ""));
+	fprintf(text_file_ptr, "<%s>\n", S_OR(cid_num, ""));
 	context = get_header_by_tag(header_content, "X-Asterisk-VM-Context:");
 	fprintf(text_file_ptr, "context=%s\n", S_OR(context, ""));
 	origtime = get_header_by_tag(header_content, "X-Asterisk-VM-Orig-time:");
    
    
More information about the asterisk-commits
mailing list