From d39b7c6b1a7e05e103bbe2314b20df743c34c999 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Mon, 3 Oct 2011 12:23:36 -0500 Subject: [PATCH] FS-3593 --resolve --- src/mod/xml_int/mod_xml_cdr/mod_xml_cdr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/xml_int/mod_xml_cdr/mod_xml_cdr.c b/src/mod/xml_int/mod_xml_cdr/mod_xml_cdr.c index 279bcda2d5..7cfd3592bb 100644 --- a/src/mod/xml_int/mod_xml_cdr/mod_xml_cdr.c +++ b/src/mod/xml_int/mod_xml_cdr/mod_xml_cdr.c @@ -360,7 +360,7 @@ static switch_status_t my_on_reporting(switch_core_session_t *session) curl_easy_perform(curl_handle); curl_easy_getinfo(curl_handle, CURLINFO_RESPONSE_CODE, &httpRes); switch_safe_free(destUrl); - if (httpRes == 200) { + if (httpRes >= 200 && httpRes <= 299) { goto success; } else { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Got error [%ld] posting to web server [%s]\n",