From b5cd67adc3af2c42f39cfe01a2f2d318f47103f4 Mon Sep 17 00:00:00 2001 From: Steve Murphy Date: Wed, 29 Aug 2007 20:55:40 +0000 Subject: This code was in team/murf/bug8684-trunk; it should fix bug 8684 in trunk. I didn't add it to 1.4 yet, because it's not entirely clear to me if this is a bug fix or an enhancement. A lot of files were affected by small changes like ast_variable_new getting an added arg, for the file name the var was defined in; ast_category_new gets added args of filename and lineno; ast_category and ast_variable structures now record file and lineno for each entry; a list of all #include and #execs in a config file (or any of its inclusions are now kept in the ast_config struct; at save time, each entry is put back into its proper file of origin, in order. #include and #exec directives are folded in properly. Headers indicating that the file was generated, are generated also for each included file. Some changes to main/manager.c to take care of file renaming, via the UpdateConfig command. Multiple inclusions of the same file are handled by exploding these into multiple include files, uniquely named. There's probably more, but I can't remember it right now. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@81361 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_parkandannounce.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/app_parkandannounce.c') diff --git a/apps/app_parkandannounce.c b/apps/app_parkandannounce.c index b6ca3f53a..51841d8d3 100644 --- a/apps/app_parkandannounce.c +++ b/apps/app_parkandannounce.c @@ -130,7 +130,7 @@ static int parkandannounce_exec(struct ast_channel *chan, void *data) snprintf(buf, sizeof(buf), "%d", lot); oh.parent_channel = chan; - oh.vars = ast_variable_new("_PARKEDAT", buf); + oh.vars = ast_variable_new("_PARKEDAT", buf, ""); dchan = __ast_request_and_dial(dialtech, AST_FORMAT_SLINEAR, args.dial, 30000, &outstate, chan->cid.cid_num, chan->cid.cid_name, &oh); if (dchan) { -- cgit v1.2.3