|
|
|
@ -172,6 +172,7 @@ static int mm7soap_receive(MmsBoxHTTPClientInfo *h)
|
|
|
|
|
Octstr *qf = NULL, *mmc_id = NULL, *qdir = NULL;
|
|
|
|
|
List *qhdr = http_create_empty_headers();
|
|
|
|
|
Octstr *r, *s, *transid = NULL, *value = NULL;
|
|
|
|
|
Octstr *carrier_id = NULL;
|
|
|
|
|
|
|
|
|
|
if (h->body)
|
|
|
|
|
mreq = mm7_parse_soap(h->headers, h->body);
|
|
|
|
@ -198,6 +199,8 @@ static int mm7soap_receive(MmsBoxHTTPClientInfo *h)
|
|
|
|
|
if (!from)
|
|
|
|
|
from = octstr_create("anon@anon");
|
|
|
|
|
|
|
|
|
|
if (h->m->carrier_id_header)
|
|
|
|
|
carrier_id = http_header_value(h->headers, h->m->carrier_id_header);
|
|
|
|
|
|
|
|
|
|
qdir = get_mmsbox_queue_dir(from, to, h->m, &mmc_id); /* get routing info. */
|
|
|
|
|
|
|
|
|
@ -232,6 +235,9 @@ static int mm7soap_receive(MmsBoxHTTPClientInfo *h)
|
|
|
|
|
http_header_add(qh, "X-Mbuni-Timestamp", octstr_get_cstr(sx));
|
|
|
|
|
octstr_destroy(sx);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (carrier_id)
|
|
|
|
|
http_header_add(qh, "X-Mbuni-CarrierID", octstr_get_cstr(carrier_id));
|
|
|
|
|
|
|
|
|
|
MOD_SUBJECT(m, h->m, from);
|
|
|
|
|
|
|
|
|
@ -291,7 +297,10 @@ static int mm7soap_receive(MmsBoxHTTPClientInfo *h)
|
|
|
|
|
octstr_destroy(value2);
|
|
|
|
|
value2 = NULL;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (carrier_id)
|
|
|
|
|
http_header_add(qhdr, "X-Mbuni-CarrierID", octstr_get_cstr(carrier_id));
|
|
|
|
|
|
|
|
|
|
m = mm7_soap_to_mmsmsg(mreq, from);
|
|
|
|
|
value2 = mmsbox_get_report_info(m, h->m, mmc_id, "delivery-report",
|
|
|
|
|
value, qhdr, uaprof, uaprof_tstamp, msgid);
|
|
|
|
@ -327,6 +336,9 @@ static int mm7soap_receive(MmsBoxHTTPClientInfo *h)
|
|
|
|
|
|
|
|
|
|
value2 = mmsbox_get_report_info(m, h->m, mmc_id, "read-report", value, qhdr, uaprof, uaprof_tstamp, msgid);
|
|
|
|
|
|
|
|
|
|
if (carrier_id)
|
|
|
|
|
http_header_add(qhdr, "X-Mbuni-CarrierID", octstr_get_cstr(carrier_id));
|
|
|
|
|
|
|
|
|
|
qf = qfs->mms_queue_add(from, to, NULL,
|
|
|
|
|
h->m->id, mmc_id,
|
|
|
|
|
0, time(NULL) + default_msgexpiry, m, NULL,
|
|
|
|
|