[Freeswitch-svn] [commit] r6422 - in freeswitch/trunk: conf src

Freeswitch SVN anthm at freeswitch.org
Wed Nov 28 18:12:14 EST 2007


Author: anthm
Date: Wed Nov 28 18:12:13 2007
New Revision: 6422

Modified:
   freeswitch/trunk/conf/voicemail.tpl
   freeswitch/trunk/src/switch_utils.c

Log:
update template for multipart/alternative 

Modified: freeswitch/trunk/conf/voicemail.tpl
==============================================================================
--- freeswitch/trunk/conf/voicemail.tpl	(original)
+++ freeswitch/trunk/conf/voicemail.tpl	Wed Nov 28 18:12:13 2007
@@ -4,8 +4,23 @@
 X-Priority: ${voicemail_priority}
 X-Mailer: FreeSWITCH
 
+Content-Type: multipart/alternative; 
+	boundary=000XXX000
+
+--000XXX000
+Content-Type: text/plain; charset=ISO-8859-1; Format=Flowed
+Content-Disposition: attachment
+Content-Transfer-Encoding: 7bit
+
 At ${voicemail_time} you were left a ${voicemail_message_len} second message from ${voicemail_caller_id_name} ${voicemail_caller_id_number}
 to your account ${voicemail_account}@${voicemail_domain}
 
+--000XXX000
+Content-Type: text/html; charset=ISO-8859-1
+Content-Disposition: attachment
+Content-Transfer-Encoding: 7bit
 
+At ${voicemail_time} you were left a ${voicemail_message_len} second message from ${voicemail_caller_id_name} ${voicemail_caller_id_number}
+to your account ${voicemail_account} @ ${voicemail_domain} <a href=tel:${voicemail_caller_id_number}>Click to call</a>
 
+--000XXX000--

Modified: freeswitch/trunk/src/switch_utils.c
==============================================================================
--- freeswitch/trunk/src/switch_utils.c	(original)
+++ freeswitch/trunk/src/switch_utils.c	Wed Nov 28 18:12:13 2007
@@ -205,6 +205,7 @@
 
 			snprintf(buf, B64BUFFLEN,
 					 "\n\n--%s\nContent-Type: %s; name=\"%s\"\n"
+					 "Content-ID: <ATTACHED at freeswitch.org>\n"
 					 "Content-Transfer-Encoding: base64\n"
 					 "Content-Description: Sound attachment.\n"
 					 "Content-Disposition: attachment; filename=\"%s\"\n\n",



More information about the Freeswitch-svn mailing list