--- /tmp/res_config_curl.c 2008-01-14 12:14:47.000000000 +0000 +++ res/res_config_curl.c 2008-01-14 12:20:50.000000000 +0000 @@ -88,8 +88,8 @@ va_end(ap); ast_str_append(&query, 0, ")}"); - pbx_substitute_variables_helper(NULL, query->str, buffer, sizeof(buffer)); - + pbx_substitute_variables_helper(NULL, query->str, buffer, 64000 ); + /* Line oriented output */ stringp = buffer; while ((pair = strsep(&stringp, "&"))) { @@ -158,11 +158,11 @@ ast_str_append(&query, 0, "%s%s=%s", i > 0 ? "&" : "", buf1, buf2); } va_end(ap); - + ast_str_append(&query, 0, ")}"); - + /* Do the CURL query */ - pbx_substitute_variables_helper(NULL, query->str, buffer, sizeof(buffer)); + pbx_substitute_variables_helper(NULL, query->str, buffer, 256000); if (!(cfg = ast_config_new())) goto exit_multi; @@ -250,7 +250,7 @@ va_end(ap); ast_str_append(&query, 0, ")}"); - pbx_substitute_variables_helper(NULL, query->str, buffer, sizeof(buffer)); + pbx_substitute_variables_helper(NULL, query->str, buffer, 100); /* Line oriented output */ stringp = buffer; @@ -314,7 +314,7 @@ va_end(ap); ast_str_append(&query, 0, ")}"); - pbx_substitute_variables_helper(NULL, query->str, buffer, sizeof(buffer)); + pbx_substitute_variables_helper(NULL, query->str, buffer, 100); stringp = buffer; while (*stringp <= ' ') @@ -381,7 +381,7 @@ va_end(ap); ast_str_append(&query, 0, ")}"); - pbx_substitute_variables_helper(NULL, query->str, buffer, sizeof(buffer)); + pbx_substitute_variables_helper(NULL, query->str, buffer, 100); /* Line oriented output */ stringp = buffer; @@ -427,7 +427,7 @@ ast_str_set(&query, 0, "${CURL(%s/static?file=%s)}", url, buf1); /* Do the CURL query */ - pbx_substitute_variables_helper(NULL, query->str, buffer, sizeof(buffer)); + pbx_substitute_variables_helper(NULL, query->str, buffer, 256000); /* Line oriented output */ stringp = buffer;