Index: func_curl.c =================================================================== --- func_curl.c (revision 46551) +++ func_curl.c (working copy) @@ -57,7 +57,6 @@ size_t size; }; - static void *myrealloc(void *ptr, size_t size) { /* There might be a realloc() out there that doesn't like reallocing @@ -114,6 +113,7 @@ static int acf_curl_exec(struct ast_channel *chan, char *cmd, char *info, char *buf, size_t len) { struct ast_module_user *u; + char tmp[1024] = ""; struct MemoryStruct chunk = { NULL, 0 }; AST_DECLARE_APP_ARGS(args, AST_APP_ARG(url); @@ -130,7 +130,7 @@ u = ast_module_user_add(chan); AST_STANDARD_APP_ARGS(args, info); - + pbx_substitute_variables_helper(chan, args.url, tmp, sizeof(tmp) - 1); if (!curl_internal(&chunk, args.url, args.postdata)) { if (chunk.memory) { chunk.memory[chunk.size] = '\0';