aboutsummaryrefslogtreecommitdiffstats
path: root/pbx.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-03-17 21:39:36 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-03-17 21:39:36 +0000
commite69d1ded060265a1cb52d7a691acbe84f0f03df5 (patch)
tree7d7227d3147c81973af4e6503672c07fc6568db9 /pbx.c
parent6b15c9e645cfee77e1e176e7656e647ea1c01e22 (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: http://svn.digium.com/svn/asterisk/trunk@13357 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx.c')
-rw-r--r--pbx.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/pbx.c b/pbx.c
index eca359cc7..b355abe04 100644
--- a/pbx.c
+++ b/pbx.c
@@ -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 *);