aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk/channel.h
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2000-03-26 01:59:06 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2000-03-26 01:59:06 +0000
commitfab529cb029abf375e0f0a60e7b635f6c067106e (patch)
tree0c056fe684b8ab582cb1c7800e4802b7e7d6a92f /include/asterisk/channel.h
parent679e53660faaff7268141f559cbc47a52140899b (diff)
Version 0.1.3 from FTP
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@207 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/channel.h')
-rwxr-xr-xinclude/asterisk/channel.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h
index d78c490d1..b3ef37653 100755
--- a/include/asterisk/channel.h
+++ b/include/asterisk/channel.h
@@ -28,11 +28,14 @@ extern "C" {
#define AST_CHANNEL_NAME 80
#define AST_CHANNEL_MAX_STACK 32
+#define MAX_LANGUAGE 20
+
/* Max length an extension can be (unique) is this number */
#define AST_MAX_EXTENSION 80
struct ast_channel {
char name[AST_CHANNEL_NAME]; /* ASCII Description of channel name */
+ char language[MAX_LANGUAGE]; /* Language requested */
pthread_t blocker; /* If anyone is blocking, this is them */
pthread_mutex_t lock; /* Lock, can be used to lock a channel for some operations */
char *blockproc; /* Procedure causing blocking */
@@ -132,6 +135,9 @@ struct ast_frame *ast_read(struct ast_channel *chan);
/* Write a frame to a channel */
int ast_write(struct ast_channel *chan, struct ast_frame *frame);
+/* Write text to a display on a channel */
+int ast_sendtext(struct ast_channel *chan, char *text);
+
/* Browse the channels currently in use */
struct ast_channel *ast_channel_walk(struct ast_channel *prev);