diff --git a/apps/app_macro.c b/apps/app_macro.c index 2d59830007..53b8a1af3f 100644 --- a/apps/app_macro.c +++ b/apps/app_macro.c @@ -193,7 +193,7 @@ static int _macro_exec(struct ast_channel *chan, void *data, int exclusive) if (macro_store) { break; } - if (!(macro_store = ast_channel_datastore_alloc(¯o_ds_info, NULL))) { + if (!(macro_store = ast_datastore_alloc(¯o_ds_info, NULL))) { ast_log(LOG_WARNING, "Unable to allocate new datastore.\n"); break; }