|
|
|
@ -3036,14 +3036,14 @@ MmsMsg *make_msg_from_sendmms_request(Octstr *from, List *to,
|
|
|
|
|
|
|
|
|
|
dict_destroy(url_map);
|
|
|
|
|
/* SMIL has been modified, convert it to text, put it in. */
|
|
|
|
|
xmlDocDumpFormatMemory(smil, &buf, &bsize, 1);
|
|
|
|
|
xmlDocDumpFormatMemoryEnc(smil, &buf, &bsize, "utf-8", 1);
|
|
|
|
|
xmlFreeDoc(smil);
|
|
|
|
|
if (buf) {
|
|
|
|
|
MIMEEntity *sm = mime_entity_create();
|
|
|
|
|
List *xh = http_create_empty_headers();
|
|
|
|
|
Octstr *s;
|
|
|
|
|
|
|
|
|
|
http_header_add(xh, "Content-Type", "application/smil");
|
|
|
|
|
http_header_add(xh, "Content-Type", "application/smil; charset=utf-8");
|
|
|
|
|
http_header_add(xh, "Content-ID", "<presentation>"); /* identify it as start element. */
|
|
|
|
|
if (xmhdr)
|
|
|
|
|
http_header_add(xh, octstr_get_cstr(xmhdr), octstr_get_cstr(xmhdr_val));
|
|
|
|
|