diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-06-03 22:05:16 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-06-03 22:05:16 +0000 |
commit | 0a568addd81eb9e0b3346b47ba749a14e6cdb742 (patch) | |
tree | 1128255ba26efd55114897a12cea38a75f674c31 /include/asterisk/options.h | |
parent | ae5d47ddbdd14184563996190e84b68e54ddb3f4 (diff) |
Move compatibility options into asterisk.conf, default them to on for upgrades,
and off for new installations. This includes the translation from pipes to commas
for pbx_realtime and the EXEC command for AGI, as well as the change to the Set
application not to support multiple variables at once.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@120171 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/options.h')
-rw-r--r-- | include/asterisk/options.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/asterisk/options.h b/include/asterisk/options.h index 794a75759..3b639e6b9 100644 --- a/include/asterisk/options.h +++ b/include/asterisk/options.h @@ -112,6 +112,18 @@ enum ast_option_flags { extern struct ast_flags ast_options; +enum ast_compat_flags { + AST_COMPAT_DELIM_PBX_REALTIME = (1 << 0), + AST_COMPAT_DELIM_RES_AGI = (1 << 1), + AST_COMPAT_APP_SET = (1 << 2), +}; + +#define ast_compat_pbx_realtime ast_test_flag(&ast_compat, AST_COMPAT_DELIM_PBX_REALTIME) +#define ast_compat_res_agi ast_test_flag(&ast_compat, AST_COMPAT_DELIM_RES_AGI) +#define ast_compat_app_set ast_test_flag(&ast_compat, AST_COMPAT_APP_SET) + +extern struct ast_flags ast_compat; + extern int option_verbose; extern int option_maxfiles; /*!< Max number of open file handles (files, sockets) */ extern int option_debug; /*!< Debugging */ |