1
0
Fork 0

Improved logging of NotifyResp messages om MM1 interface

This commit is contained in:
bagyenda 2006-05-06 14:08:12 +00:00
parent ea8bce278a
commit 142c9f8342
1 changed files with 5 additions and 2 deletions

View File

@ -913,7 +913,9 @@ static void sendmms_proxy(MmsHTTPClientInfo *h)
MmsMsg *mrpt;
if (m)
mms_msgdump(m,1);
if (mtype == MMS_MSGTYPE_NOTIFYRESP)
status = mms_get_header_value(m, octstr_imm("X-Mms-Status"));
else /* This (acknowledge-ind) is the same as notify_resp with status=retrieved. */
@ -965,7 +967,8 @@ static void sendmms_proxy(MmsHTTPClientInfo *h)
mdone:
/* Log to access log */
mms_log2("NotifyResp", h->client_addr, NULL, msize, transid, NULL, NULL, "MM1", h->ua, NULL);
mms_log2("NotifyResp", h->client_addr, NULL, msize, transid, status, NULL, "MM1",
h->ua, NULL);
if (e &&
mms_queue_update(e) != 1) /* Should be freed. */