[asterisk-commits] mmichelson: branch mmichelson/imap_consistency r129802 - /team/mmichelson/ima...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Jul 10 16:53:42 CDT 2008
Author: mmichelson
Date: Thu Jul 10 16:53:41 2008
New Revision: 129802
URL: http://svn.digium.com/view/asterisk?view=rev&rev=129802
Log:
Fix callerid format for text file.
Modified:
team/mmichelson/imap_consistency/apps/app_voicemail.c
Modified: team/mmichelson/imap_consistency/apps/app_voicemail.c
URL: http://svn.digium.com/view/asterisk/team/mmichelson/imap_consistency/apps/app_voicemail.c?view=diff&rev=129802&r1=129801&r2=129802
==============================================================================
--- team/mmichelson/imap_consistency/apps/app_voicemail.c (original)
+++ team/mmichelson/imap_consistency/apps/app_voicemail.c Thu Jul 10 16:53:41 2008
@@ -1654,6 +1654,7 @@
char *header_content;
char *attachedfilefmt;
const char *cid_num;
+ const char *cid_name;
const char *duration;
const char *context;
const char *category;
@@ -1726,7 +1727,8 @@
* by the standard I/O library already optimizes this well enough. Come back later.
*/
cid_num = get_header_by_tag(header_content, "X-Asterisk-VM-Caller-ID-Num:");
- fprintf(text_file_ptr, "callerid=%s\n", S_OR(cid_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, ""));
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