From e64104530ea746ed554383774a0d0672d4907a2b Mon Sep 17 00:00:00 2001 From: Tamas Cseke Date: Mon, 5 Dec 2011 09:35:00 +0100 Subject: [PATCH] FS-3738 --resolve --- src/mod/event_handlers/mod_json_cdr/mod_json_cdr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/event_handlers/mod_json_cdr/mod_json_cdr.c b/src/mod/event_handlers/mod_json_cdr/mod_json_cdr.c index fa125da972..aad224655c 100644 --- a/src/mod/event_handlers/mod_json_cdr/mod_json_cdr.c +++ b/src/mod/event_handlers/mod_json_cdr/mod_json_cdr.c @@ -787,7 +787,7 @@ static switch_status_t my_on_reporting(switch_core_session_t *session) switch_curl_easy_perform(curl_handle); switch_curl_easy_getinfo(curl_handle, CURLINFO_RESPONSE_CODE, &httpRes); switch_safe_free(destUrl); - if (httpRes == 200) { + if (httpRes >= 200 && httpRes < 300) { goto success; } else { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Got error [%ld] posting to web server [%s]\n",