From: Tamas Cseke Date: Mon, 5 Dec 2011 08:35:00 +0000 (+0100) Subject: FS-3738 --resolve X-Git-Tag: v1.2-rc1~27^2~112 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e64104530ea746ed554383774a0d0672d4907a2b;p=thirdparty%2Ffreeswitch.git FS-3738 --resolve --- 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",