]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix e-mail content type to work with the iphone (FSCORE-63) Thanks Jason
authorMichael Jerris <mike@jerris.com>
Thu, 22 Nov 2007 08:32:35 +0000 (08:32 +0000)
committerMichael Jerris <mike@jerris.com>
Thu, 22 Nov 2007 08:32:35 +0000 (08:32 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6376 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_utils.c

index b9069914151fd64d51637dcb62c7e3baaed1aa16..5e495c1b2e46f0d72a565a3ae6fee968beec4677 100644 (file)
@@ -127,9 +127,9 @@ SWITCH_DECLARE(switch_bool_t) switch_simple_email(char *to, char *from, char *he
         }
 
         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;