diff options
author | Russell Bryant <russell@russellbryant.com> | 2006-03-17 21:39:36 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2006-03-17 21:39:36 +0000 |
commit | 0838e30076df0b0225e3c7f56e3139e46e969429 (patch) | |
tree | 7d7227d3147c81973af4e6503672c07fc6568db9 /pbx.c | |
parent | 0efbe1aa5d68abe2606536ff2f173ad5dc10a96d (diff) |
move the definition of the mappings between extension states and their text
representation into pbx.c so that every file that includes pbx.h does not
unnecessarily get a copy of it
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@13357 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'pbx.c')
-rw-r--r-- | pbx.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -196,6 +196,18 @@ struct ast_hint { AST_LIST_ENTRY(ast_hint) list; /*!< Pointer to next hint in list */ }; +static const struct cfextension_states { + int extension_state; + const char * const text; +} extension_states[] = { + { AST_EXTENSION_NOT_INUSE, "Idle" }, + { AST_EXTENSION_INUSE, "InUse" }, + { AST_EXTENSION_BUSY, "Busy" }, + { AST_EXTENSION_UNAVAILABLE, "Unavailable" }, + { AST_EXTENSION_RINGING, "Ringing" }, + { AST_EXTENSION_INUSE | AST_EXTENSION_RINGING, "InUse&Ringing" } +}; + int ast_pbx_outgoing_cdr_failed(void); static int pbx_builtin_answer(struct ast_channel *, void *); |