[asterisk-commits] mjordan: branch 11 r432012 - /branches/11/apps/app_voicemail.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Feb 20 09:46:27 CST 2015
Author: mjordan
Date: Fri Feb 20 09:45:35 2015
New Revision: 432012
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=432012
Log:
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)
Modified:
branches/11/apps/app_voicemail.c
Modified: branches/11/apps/app_voicemail.c
URL: http://svnview.digium.com/svn/asterisk/branches/11/apps/app_voicemail.c?view=diff&rev=432012&r1=432011&r2=432012
==============================================================================
--- branches/11/apps/app_voicemail.c (original)
+++ branches/11/apps/app_voicemail.c Fri Feb 20 09:45:35 2015
@@ -3234,7 +3234,7 @@
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 */
More information about the asterisk-commits
mailing list