summaryrefslogtreecommitdiff
path: root/apps/app_voicemail.c
diff options
context:
space:
mode:
authorMatthew Jordan <mjordan@digium.com>2015-02-20 15:47:23 +0000
committerMatthew Jordan <mjordan@digium.com>2015-02-20 15:47:23 +0000
commitc7bdf62a956c39fff738f581e03d78920e9a0981 (patch)
tree21f66255498fd1a5321f56ee605bf896282025f1 /apps/app_voicemail.c
parente0ff83c27276f51b20faf081ed85e47f3c424384 (diff)
apps/app_voicemail: Fix IMAP header compatibility issue with Microsoft Exchange
When interfacing with Microsoft Exchange, custom headers will be returned as all lower case. Currently, the IMAP header code will fail to parse the returned custom headers, as it will be performing a case sensitive comparison. This can cause playback of messages to fail, as needed information - such as origtime - will not be present. This patch updates app_voicemail's header parsing code to perform a case insensitive lookup for the requested custom headers. Since the headers are specific to Asterisk, e.g., 'x-asterisk-vm-orig-time', and headers should be unique in an IMAP message, this should cause no issues with other systems. ASTERISK-24787 #close Reported by: Graham Barnett patches: app_voicemail.c.patch_MSExchange uploaded by Graham Barnett (License 6685) ........ Merged revisions 432012 from http://svn.asterisk.org/svn/asterisk/branches/11 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@432013 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_voicemail.c')
-rw-r--r--apps/app_voicemail.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index 40ffb536d..1102fcd93 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -3334,7 +3334,7 @@ static char *get_header_by_tag(char *header, char *tag, char *buf, size_t len)
if (taglen < 1)
return NULL;
- if (!(start = strstr(header, tag)))
+ if (!(start = strcasestr(header, tag)))
return NULL;
/* Since we can be called multiple times we should clear our buffer */