1
0
Fork 0

*** empty log message ***

This commit is contained in:
bagyenda 2009-06-23 05:14:22 +00:00
parent 0ee33f2da1
commit e499aa8131
5 changed files with 8 additions and 5 deletions

View File

@ -1,3 +1,5 @@
2009-06-22 P. A. Bagyenda <bagyenda@dsmagic.com>
* Minor fix: GET HTTP request shouldn't have body
2009-05-05 P. A. Bagyenda <bagyenda@dsmagic.com> 2009-05-05 P. A. Bagyenda <bagyenda@dsmagic.com>
* added mmsbox-maximum-request-attempts config param * added mmsbox-maximum-request-attempts config param
2009-05-05 P. A. Bagyenda <bagyenda@dsmagic.com> 2009-05-05 P. A. Bagyenda <bagyenda@dsmagic.com>

View File

@ -7,7 +7,7 @@ dnl
dnl This program is free software, distributed under the terms of dnl This program is free software, distributed under the terms of
dnl the GNU General Public License, with a few exceptions granted (see LICENSE) dnl the GNU General Public License, with a few exceptions granted (see LICENSE)
dnl dnl
AC_PREREQ(2.59) AC_PREREQ(2.61)
AC_INIT([mbuni],[cvs],[devel@mbuni.org]) AC_INIT([mbuni],[cvs],[devel@mbuni.org])

View File

@ -438,7 +438,7 @@ static MmsUaProfile *profile_fetch(Octstr *profile_url)
h = http_create_empty_headers(); h = http_create_empty_headers();
http_header_add(h, "User-Agent", MM_NAME "/" MMSC_VERSION); http_header_add(h, "User-Agent", MM_NAME "/" MMSC_VERSION);
status = mms_url_fetch_content(HTTP_METHOD_GET, profile_url, h, octstr_imm(""), &rh, &body); status = mms_url_fetch_content(HTTP_METHOD_GET, profile_url, h, NULL, &rh, &body);
if (http_status_class(status) == HTTP_STATUS_SUCCESSFUL) { if (http_status_class(status) == HTTP_STATUS_SUCCESSFUL) {
prof = parse_uaprofile(body); prof = parse_uaprofile(body);

View File

@ -106,10 +106,11 @@ static Octstr *get_dlr_notify_url(Octstr *msgid, char *report_type, Octstr *mmc_
goto done; goto done;
} }
#if 0
/* At what point do we delete it? For now, when we get a read report, /* At what point do we delete it? For now, when we get a read report,
* and also when we get a delivery report that is not 'deferred' or sent or forwarded * and also when we get a delivery report that is not 'deferred' or sent or forwarded
*/ */
#if 0
if (strcmp(report_type, "read-report") == 0 || if (strcmp(report_type, "read-report") == 0 ||
(octstr_case_compare(status, octstr_imm("Deferred")) != 0 && (octstr_case_compare(status, octstr_imm("Deferred")) != 0 &&
octstr_case_compare(status, octstr_imm("Forwarded")) != 0)) octstr_case_compare(status, octstr_imm("Forwarded")) != 0))

View File

@ -556,7 +556,7 @@ static int mmsbox_send_report(Octstr *from, char *report_type,
http_header_add(rh, "X-Mbuni-UAProf", octstr_get_cstr(uaprof)); http_header_add(rh, "X-Mbuni-UAProf", octstr_get_cstr(uaprof));
http_header_add(rh, "X-Mbuni-Timestamp", octstr_get_cstr(uaprof_tstamp)); http_header_add(rh, "X-Mbuni-Timestamp", octstr_get_cstr(uaprof_tstamp));
} }
ret = mms_url_fetch_content(HTTP_METHOD_GET, dlr_url, rh, octstr_imm(""), &rph, &rb); ret = mms_url_fetch_content(HTTP_METHOD_GET, dlr_url, rh, NULL, &rph, &rb);
octstr_destroy(rb); octstr_destroy(rb);
octstr_destroy(xfrom); octstr_destroy(xfrom);
@ -1469,7 +1469,7 @@ static void dispatch_sendmms_recv(List *rl)
http_header_add(reqh, "User-Agent", MM_NAME "/" VERSION); http_header_add(reqh, "User-Agent", MM_NAME "/" VERSION);
if (mmsbox_url_fetch_content(HTTP_METHOD_GET, data, reqh, octstr_imm(""), &rph, &reply) == HTTP_OK) if (mmsbox_url_fetch_content(HTTP_METHOD_GET, data, reqh, NULL, &rph, &reply) == HTTP_OK)
get_content_type(rph, &ctype, &params); get_content_type(rph, &ctype, &params);
else else
rb = octstr_format("failed to fetch content from url [%S]!", data); rb = octstr_format("failed to fetch content from url [%S]!", data);