diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-06-23 18:40:28 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-06-23 18:40:28 +0000 |
commit | 2578e87abb0c78a0931a636dbc58b7306584f83b (patch) | |
tree | ea904665eb18fed439a34d43344388ad4a0571c9 /apps | |
parent | 823d5a9dac08f335ae46c8311c553f4b13757334 (diff) |
Backport part of revision 136715 to fix callerid in voicemail text files (IMAP only).
(closes issue #16945)
Reported by: mneuhauser
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@272147 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_voicemail.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 5be892d84..d99c00d27 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -1193,9 +1193,10 @@ static int imap_retrieve_file(const char *dir, const int msgnum, const struct as fprintf(text_file_ptr, "%s\n", "[message]"); - 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, "callerid=\"%s\" ", S_OR(cid_name, "")); + cid_num = get_header_by_tag(header_content, "X-Asterisk-VM-Caller-ID-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:"); |