Wed Apr 6 11:30:12 2011

Asterisk developer's documentation


ast_rtp_glue Struct Reference

#include <rtp_engine.h>


Data Fields

struct {
   ast_rtp_glue *   next
entry
format_t(* get_codec )(struct ast_channel *chan)
enum ast_rtp_glue_result(* get_rtp_info )(struct ast_channel *chan, struct ast_rtp_instance **instance)
 Callback for retrieving the RTP instance carrying audio.
enum ast_rtp_glue_result(* get_trtp_info )(struct ast_channel *chan, struct ast_rtp_instance **instance)
 Callback for retrieving the RTP instance carrying text.
enum ast_rtp_glue_result(* get_vrtp_info )(struct ast_channel *chan, struct ast_rtp_instance **instance)
 Callback for retrieving the RTP instance carrying video.
ast_modulemod
const char * type
int(* update_peer )(struct ast_channel *chan, struct ast_rtp_instance *instance, struct ast_rtp_instance *vinstance, struct ast_rtp_instance *tinstance, format_t codecs, int nat_active)


Detailed Description

Structure that represents the glue that binds an RTP instance to a channel

Definition at line 389 of file rtp_engine.h.


Field Documentation

struct { ... } entry

Linked list information

Referenced by ast_rtp_glue_register2(), ast_rtp_glue_unregister(), and ast_rtp_instance_get_glue().

format_t(* get_codec)(struct ast_channel *chan)

Callback for retrieving codecs that the channel can do

Referenced by ast_rtp_instance_bridge(), ast_rtp_instance_early_bridge(), ast_rtp_instance_early_bridge_make_compatible(), and remote_bridge_loop().

enum ast_rtp_glue_result(* get_rtp_info)(struct ast_channel *chan, struct ast_rtp_instance **instance)

Callback for retrieving the RTP instance carrying audio.

Note:
This function increases the reference count on the returned RTP instance.

Referenced by ast_rtp_instance_bridge(), ast_rtp_instance_early_bridge(), ast_rtp_instance_early_bridge_make_compatible(), and ast_rtp_instance_make_compatible().

enum ast_rtp_glue_result(* get_trtp_info)(struct ast_channel *chan, struct ast_rtp_instance **instance)

Callback for retrieving the RTP instance carrying text.

Note:
This function increases the reference count on the returned RTP instance.

Referenced by ast_rtp_instance_bridge(), ast_rtp_instance_early_bridge(), and ast_rtp_instance_early_bridge_make_compatible().

enum ast_rtp_glue_result(* get_vrtp_info)(struct ast_channel *chan, struct ast_rtp_instance **instance)

Callback for retrieving the RTP instance carrying video.

Note:
This function increases the reference count on the returned RTP instance.

Referenced by ast_rtp_instance_bridge(), ast_rtp_instance_early_bridge(), and ast_rtp_instance_early_bridge_make_compatible().

struct ast_module* mod

Module that the RTP glue came from

Definition at line 393 of file rtp_engine.h.

Referenced by ast_rtp_glue_register2().

struct ast_rtp_glue* next

Definition at line 414 of file rtp_engine.h.

const char* type

Name of the channel driver that this glue is responsible for

Definition at line 391 of file rtp_engine.h.

Referenced by ast_rtp_glue_register2(), ast_rtp_glue_unregister(), and ast_rtp_instance_get_glue().

int(* update_peer)(struct ast_channel *chan, struct ast_rtp_instance *instance, struct ast_rtp_instance *vinstance, struct ast_rtp_instance *tinstance, format_t codecs, int nat_active)

Callback for updating the destination that the remote side should send RTP to

Referenced by ast_rtp_instance_early_bridge(), and remote_bridge_loop().


The documentation for this struct was generated from the following file:
Generated on Wed Apr 6 11:30:12 2011 for Asterisk - The Open Source Telephony Project by  doxygen 1.4.7