FS-3593 --resolve

This commit is contained in:
Anthony Minessale 2011-10-03 12:23:36 -05:00
parent 9e3f0b6df5
commit d39b7c6b1a
1 changed files with 1 additions and 1 deletions

View File

@ -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",