ast_channel_pvt Struct Reference

#include <channel_pvt.h>

Collaboration diagram for ast_channel_pvt:

Collaboration graph
[legend]

Data Fields

void * pvt
struct ast_framereadq
int alertpipe [2]
struct ast_trans_pvtwritetrans
struct ast_trans_pvtreadtrans
int rawreadformat
int rawwriteformat
int(* send_digit )(struct ast_channel *chan, char digit)
int(* call )(struct ast_channel *chan, char *addr, int timeout)
int(* hangup )(struct ast_channel *chan)
int(* answer )(struct ast_channel *chan)
struct ast_frame *(* read )(struct ast_channel *chan)
int(* write )(struct ast_channel *chan, struct ast_frame *frame)
int(* send_text )(struct ast_channel *chan, char *text)
int(* send_image )(struct ast_channel *chan, struct ast_frame *frame)
int(* send_html )(struct ast_channel *chan, int subclass, char *data, int len)
struct ast_frame *(* exception )(struct ast_channel *chan)
int(* bridge )(struct ast_channel *c0, struct ast_channel *c1, int flags, struct ast_frame **fo, struct ast_channel **rc)
int(* indicate )(struct ast_channel *c, int condition)
int(* fixup )(struct ast_channel *oldchan, struct ast_channel *newchan)
int(* setoption )(struct ast_channel *chan, int option, void *data, int datalen)
int(* queryoption )(struct ast_channel *chan, int option, void *data, int *datalen)
int(* transfer )(struct ast_channel *chan, char *newdest)
int(* write_video )(struct ast_channel *chan, struct ast_frame *frame)

Detailed Description

Definition at line 24 of file channel_pvt.h.


Field Documentation

void* pvt

Private data used by channel backend

Definition at line 26 of file channel_pvt.h.

struct ast_frame* readq [read]

Definition at line 27 of file channel_pvt.h.

int alertpipe[2]

Definition at line 28 of file channel_pvt.h.

struct ast_trans_pvt* writetrans [read]

Write translation path

Definition at line 30 of file channel_pvt.h.

struct ast_trans_pvt* readtrans [read]

Read translation path

Definition at line 32 of file channel_pvt.h.

Raw read format

Definition at line 34 of file channel_pvt.h.

Raw write format

Definition at line 36 of file channel_pvt.h.

int(* send_digit)(struct ast_channel *chan, char digit)

Send a literal DTMF digit

int(* call)(struct ast_channel *chan, char *addr, int timeout)

Call a given phone number (address, etc), but don't take longer than timeout seconds to do so.

int(* hangup)(struct ast_channel *chan)

Hangup (and possibly destroy) the channel

int(* answer)(struct ast_channel *chan)

Answer the line

struct ast_frame*(* read)(struct ast_channel *chan) [read]

Read a frame, in standard format

int(* write)(struct ast_channel *chan, struct ast_frame *frame)

Write a frame, in standard format

int(* send_text)(struct ast_channel *chan, char *text)

Display or transmit text

int(* send_image)(struct ast_channel *chan, struct ast_frame *frame)

Display or send an image

int(* send_html)(struct ast_channel *chan, int subclass, char *data, int len)

Send HTML data

struct ast_frame*(* exception)(struct ast_channel *chan) [read]

Handle an exception, reading a frame

int(* bridge)(struct ast_channel *c0, struct ast_channel *c1, int flags, struct ast_frame **fo, struct ast_channel **rc)

Bridge two channels of the same type together

int(* indicate)(struct ast_channel *c, int condition)

Indicate a particular condition (e.g. AST_CONTROL_BUSY or AST_CONTROL_RINGING or AST_CONTROL_CONGESTION

int(* fixup)(struct ast_channel *oldchan, struct ast_channel *newchan)

Fix up a channel: If a channel is consumed, this is called. Basically update any ->owner links

int(* setoption)(struct ast_channel *chan, int option, void *data, int datalen)

Set a given option

int(* queryoption)(struct ast_channel *chan, int option, void *data, int *datalen)

Query a given option

int(* transfer)(struct ast_channel *chan, char *newdest)

Blind transfer other side

int(* write_video)(struct ast_channel *chan, struct ast_frame *frame)

Write a frame, in standard format


The documentation for this struct was generated from the following file:

Generated on Wed Oct 28 17:01:05 2009 for Asterisk by  doxygen 1.5.6