1
0
Fork 0

extra headers in mmsbox url service call

This commit is contained in:
bagyenda 2008-12-10 05:35:04 +00:00
parent 5247c97695
commit cb2e860093
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,5 @@
2008-12-10 P. A. Bagyenda <bagyenda@dsmagic.com>
* Extra mbuni headers in mmsbox url service call
2008-12-09 P. A. Bagyenda <bagyenda@dsmagic.com>
* MSISDN and IP request headers now list (MMSC)
2008-12-04 P. A. Bagyenda <bagyenda@dsmagic.com>

View File

@ -377,6 +377,15 @@ static int fetch_serviceurl(MmsEnvelope *e,
octstr_destroy(s);
}
if ((s = mms_get_header_value(m, octstr_imm("Date"))) != NULL) {
http_header_add(rh, "X-Mbuni-Message-Date", octstr_get_cstr(s));
octstr_destroy(s);
}
s = date_format_http(e->created);
http_header_add(rh, "X-Mbuni-Received-Date", octstr_get_cstr(s));
octstr_destroy(s);
if (ms->type == TRANS_TYPE_POST_URL) { /* Put in the parameters. */
MIMEEntity *x = mime_entity_create();