aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk/channel.h
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-06-28 16:40:02 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-06-28 16:40:02 +0000
commit63170c4333b792805df5170e43d516b479a75421 (patch)
tree350126d47aecc8eeeaca9794943d8d2640d37670 /include/asterisk/channel.h
parentefde31a9908909b35ee154afe257030a56a6c520 (diff)
Add SIP/RTP video support, video enable app_echo, start on RTCP
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1128 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/channel.h')
-rwxr-xr-xinclude/asterisk/channel.h25
1 files changed, 20 insertions, 5 deletions
diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h
index 03b1fa448..c56a1fc76 100755
--- a/include/asterisk/channel.h
+++ b/include/asterisk/channel.h
@@ -39,7 +39,7 @@ extern "C" {
#define MAX_LANGUAGE 20
-#define AST_MAX_FDS 4
+#define AST_MAX_FDS 8
struct ast_generator {
void *(*alloc)(struct ast_channel *chan, void *params);
@@ -72,7 +72,13 @@ struct ast_channel {
int writeinterrupt;
/*! Who are we bridged to, if we're bridged */
- struct ast_channel *bridge;
+ struct ast_channel *bridge;
+ /*! Who did we call? */
+ struct ast_channel *dialed;
+ /*! Who called us? */
+ struct ast_channel *dialing;
+ /*! Reverse the dialed link (0 false, 1 true) */
+ int reversedialed;
/*! Channel that will masquerade as us */
struct ast_channel *masq;
/*! Who we are masquerading as */
@@ -122,7 +128,7 @@ struct ast_channel {
/*! Number of rings so far */
int rings;
/*! Current level of application */
- int stack;
+ int stack;
/*! Kinds of data this channel can natively handle */
@@ -199,7 +205,7 @@ struct ast_channel {
unsigned int pickupgroup;
/*! For easy linking */
- struct ast_channel *next;
+ struct ast_channel *next;
};
@@ -452,7 +458,7 @@ int ast_waitfor_n_fd(int *fds, int n, int *ms, int *exception);
//! Reads a frame
-/*!
+/*!
* \param chan channel to read a frame from
* Read a frame. Returns a frame, or NULL on error. If it returns NULL, you
best just stop reading frames and assume the channel has been
@@ -468,6 +474,15 @@ struct ast_frame *ast_read(struct ast_channel *chan);
*/
int ast_write(struct ast_channel *chan, struct ast_frame *frame);
+//! Write video frame to a channel
+/*!
+ * \param chan destination channel of the frame
+ * \param frame frame that will be written
+ * This function writes the given frame to the indicated channel.
+ * It returns 1 on success, 0 if not implemented, and -1 on failure.
+ */
+int ast_write_video(struct ast_channel *chan, struct ast_frame *frame);
+
/* Send empty audio to prime a channel driver */
int ast_prod(struct ast_channel *chan);