diff --git a/mbuni/ChangeLog b/mbuni/ChangeLog index 5173a73..7333da9 100644 --- a/mbuni/ChangeLog +++ b/mbuni/ChangeLog @@ -1,3 +1,5 @@ +2008-09-30 P. A. Bagyenda + * Fix in mbuni management interface XML output 2008-09-29 P. A. Bagyenda * Improved mmsbox DLR routing for status Forwarded 2008-09-15 P. A. Bagyenda diff --git a/mbuni/mmsbox/bearerbox.c b/mbuni/mmsbox/bearerbox.c index 3bad1fb..6e17529 100644 --- a/mbuni/mmsbox/bearerbox.c +++ b/mbuni/mmsbox/bearerbox.c @@ -307,7 +307,7 @@ static int mm7soap_receive(MmsBoxHTTPClientInfo *h) value, msgid, NULL, h->m->id, h->m->group_id, NULL, uaprof, uaprof_tstamp); mms_log("DeliveryReport", - from, NULL, -1, msgid, NULL, h->m->id, "MMSBox", h->ua, NULL); + from, NULL, -1, msgid, value, h->m->id, "MMSBox", h->ua, NULL); octstr_destroy(desc); octstr_destroy(value); @@ -586,7 +586,7 @@ static int mm7eaif_receive(MmsBoxHTTPClientInfo *h) NULL); if (qf) { /* Log to access log */ - mms_log("Received DLR", hfrom, to, -1, NULL, NULL, h->m->id, "MMSBox", h->ua, NULL); + mms_log("DeliveryReport", hfrom, to, -1, NULL, NULL, h->m->id, "MMSBox", h->ua, NULL); hstatus = HTTP_NO_CONTENT; } else @@ -811,7 +811,7 @@ static int mm7http_receive(MmsBoxHTTPClientInfo *h) NULL); if (qf) { /* Log to access log */ - mms_log("Received DLR", hfrom, to, -1, NULL, NULL, h->m->id, "MMSBox", h->ua, NULL); + mms_log("DeliveryReport", hfrom, to, -1, NULL, NULL, h->m->id, "MMSBox", h->ua, NULL); hstatus = HTTP_OK; } else diff --git a/mbuni/mmsbox/mmsbox_cfg.c b/mbuni/mmsbox/mmsbox_cfg.c index 412d32a..a5693f2 100644 --- a/mbuni/mmsbox/mmsbox_cfg.c +++ b/mbuni/mmsbox/mmsbox_cfg.c @@ -978,7 +978,7 @@ static void admin_handler(void *unused) Octstr *mmc_id = http_cgi_variable(cgivars, "mmsc-id"); List *l = NULL; - rbody = octstr_create("\n"); + rbody = octstr_create("\n\n"); /* URI is one of: /status, /start, /stop. * mmsc-id is either empty (meaning ALL) or an ID of an existing MMSC connection. */ @@ -1048,8 +1048,10 @@ static void admin_handler(void *unused) octstr_destroy(x); } } - + gwlist_destroy(l, NULL); + + octstr_append_cstr(rbody, "\n\n"); } if (rbody) { diff --git a/mbuni/mmsc/mmsc_cfg.c b/mbuni/mmsc/mmsc_cfg.c index f359583..af442af 100644 --- a/mbuni/mmsc/mmsc_cfg.c +++ b/mbuni/mmsc/mmsc_cfg.c @@ -940,7 +940,7 @@ static void admin_handler(MmscSettings *settings) Octstr *vasp_id = http_cgi_variable(cgivars, "vasp-id"); List *l = NULL; - rbody = octstr_create("\n"); + rbody = octstr_create("\n\n"); /* Command URI is one of: /status, /start, /stop. * vasp-id is either empty (meaning ALL) or an ID of an existing VASPs connection. */ @@ -969,7 +969,7 @@ static void admin_handler(MmscSettings *settings) else if (gwlist_len(e) > 0) while ((x = gwlist_extract_first(e)) != NULL) { octstr_format_append(rbody, - "%S\n", + "%S\n", x); octstr_destroy(x); } @@ -1010,6 +1010,8 @@ static void admin_handler(MmscSettings *settings) } } gwlist_destroy(l, NULL); + + octstr_append_cstr(rbody, "\n\n"); } if (rbody) {