diff --git a/src/mod/applications/mod_curl/mod_curl.c b/src/mod/applications/mod_curl/mod_curl.c index 68c21f61e4..86e2924073 100644 --- a/src/mod/applications/mod_curl/mod_curl.c +++ b/src/mod/applications/mod_curl/mod_curl.c @@ -959,7 +959,7 @@ SWITCH_STANDARD_API(curl_function) int tmp = atoi(argv[i]); if (tmp > 0) { - options.connect_timeout = tmp; + options.timeout = tmp; } else { switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_WARNING, "Invalid timeout!\n"); }