[Freeswitch-trunk] [commit] r6376 - freeswitch/trunk/src
Freeswitch SVN
mikej at freeswitch.org
Thu Nov 22 03:32:36 EST 2007
Author: mikej
Date: Thu Nov 22 03:32:35 2007
New Revision: 6376
Modified:
freeswitch/trunk/src/switch_utils.c
Log:
fix e-mail content type to work with the iphone (FSCORE-63) Thanks Jason
Modified: freeswitch/trunk/src/switch_utils.c
==============================================================================
--- freeswitch/trunk/src/switch_utils.c (original)
+++ freeswitch/trunk/src/switch_utils.c Thu Nov 22 03:32:35 2007
@@ -127,9 +127,9 @@
}
if (file) {
- snprintf(buf, B64BUFFLEN, "\n\n--%s\nContent-Type: application/octet-stream\n"
+ snprintf(buf, B64BUFFLEN, "\n\n--%s\nContent-Type: audio/x-WAV; name=\"%s\"\n"
"Content-Transfer-Encoding: base64\n"
- "Content-Description: Sound attachment.\n" "Content-Disposition: attachment; filename=\"%s\"\n\n", bound, switch_cut_path(file));
+ "Content-Description: Sound attachment.\n" "Content-Disposition: attachment; filename=\"%s\"\n\n", bound, switch_cut_path(file), switch_cut_path(file));
if (!write_buf(fd, buf))
return SWITCH_FALSE;
More information about the Freeswitch-trunk
mailing list