From de6ded80a99e093badaa2fda912321b8240b7557 Mon Sep 17 00:00:00 2001 From: bagyenda <> Date: Wed, 3 Jan 2007 05:53:03 +0000 Subject: [PATCH] Minor change of order of MM7 tags to please Comverse! --- mbuni/mmlib/mms_mm7soap.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/mbuni/mmlib/mms_mm7soap.c b/mbuni/mmlib/mms_mm7soap.c index 6cb18e7..de99fa9 100644 --- a/mbuni/mmlib/mms_mm7soap.c +++ b/mbuni/mmlib/mms_mm7soap.c @@ -932,6 +932,11 @@ MSoapMsg_t *mm7_mmsmsg_to_soap(MmsMsg *msg, Octstr *from, List *xto, isclientside ? "SenderAddress" : "Sender", octstr_get_cstr(xfrom)); + if ((s = mms_get_header_value(msg, octstr_imm("Date"))) != NULL) { + http_header_add(m->envelope, "TimeStamp", octstr_get_cstr(s)); + octstr_destroy(s); + } + if (isclientside) { if (vaspid) http_header_add(m->envelope, "VASPID", vaspid); @@ -974,10 +979,6 @@ MSoapMsg_t *mm7_mmsmsg_to_soap(MmsMsg *msg, Octstr *from, List *xto, octstr_destroy(s); } - if ((s = mms_get_header_value(msg, octstr_imm("Date"))) != NULL) { - http_header_add(m->envelope, "TimeStamp", octstr_get_cstr(s)); - octstr_destroy(s); - } /* Should we bother to strip message part of headers??? */ headers = mime_entity_headers(m->msg);