summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2005-01-04 04:01:40 +0000
committerMark Spencer <markster@digium.com>2005-01-04 04:01:40 +0000
commite7d4ae8efa36516e72a2e364a5930f17dd9923b9 (patch)
tree29d4df585c7a16fb387fa5eb4daf553cdf195852 /include
parent77543144500ec3b92c4a58b4a662a61808120b4c (diff)
Make features configurable and easier to implement
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4650 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include')
-rwxr-xr-xinclude/asterisk/channel.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h
index 909e314cc..3e0743022 100755
--- a/include/asterisk/channel.h
+++ b/include/asterisk/channel.h
@@ -233,13 +233,15 @@ struct ast_channel {
#define AST_FLAG_EXCEPTION (1 << 5) /* if there is a pending exception */
#define AST_FLAG_MOH (1 << 6) /* XXX anthm promises me this will disappear XXX listening to moh */
+#define AST_FEATURE_PLAY_WARNING (1 << 0)
+#define AST_FEATURE_REDIRECT (1 << 1)
+#define AST_FEATURE_DISCONNECT (1 << 2)
+
+#define AST_FEATURE_FLAG_NEEDSDTMF (1 << 0)
+
struct ast_bridge_config {
- int play_to_caller;
- int play_to_callee;
- int allowredirect_in;
- int allowredirect_out;
- int allowdisconnect_in;
- int allowdisconnect_out;
+ unsigned int features_caller;
+ unsigned int features_callee;
long timelimit;
long play_warning;
long warning_freq;
@@ -247,6 +249,7 @@ struct ast_bridge_config {
char *end_sound;
char *start_sound;
int firstpass;
+ int flags;
};
struct chanmon;