]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-3738 --resolve
authorTamas Cseke <tamas.cseke@virtual-call-center.eu>
Mon, 5 Dec 2011 08:35:00 +0000 (09:35 +0100)
committerTamas Cseke <tamas.cseke@virtual-call-center.eu>
Mon, 5 Dec 2011 08:35:00 +0000 (09:35 +0100)
src/mod/event_handlers/mod_json_cdr/mod_json_cdr.c

index fa125da9725ae6bc21a2dda902bc06a8e3c60cfb..aad224655c409860764b3a81910a40f0660ed6b9 100644 (file)
@@ -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",