Asterisk - The Open Source Telephony Project GIT-master-d856a3e
|
#include "chan_ooh323.h"
#include "ootypes.h"
#include "ooh323ep.h"
#include "oochannels.h"
#include "ooCalls.h"
#include "ooCapability.h"
#include "ooStackCmds.h"
#include "asterisk/format.h"
Go to the source code of this file.
Macros | |
#define | H323_DTMF_CISCO (1 << 5) |
#define | H323_DTMF_H245ALPHANUMERIC (1 << 2) |
#define | H323_DTMF_H245SIGNAL (1 << 3) |
#define | H323_DTMF_INBAND (1 << 4) |
#define | H323_DTMF_INBANDRELAX (1 << 8) |
#define | H323_DTMF_Q931 (1 << 1) |
#define | H323_DTMF_RFC2833 (1 << 0) |
Functions | |
struct ast_format * | convertH323CapToAsteriskCap (int cap) |
int | ooh323c_set_capability (struct ast_format_cap *cap, int dtmf, int dtmfcodec) |
int | ooh323c_set_capability_for_call (ooCallData *call, struct ast_format_cap *cap, int dtmf, int dtmfcodec, int t38support, int g729onlyA) |
int | ooh323c_start_call_thread (ooCallData *call) |
int | ooh323c_start_stack_thread (void) |
int | ooh323c_stop_call_thread (ooCallData *call) |
int | ooh323c_stop_stack_thread (void) |
#define H323_DTMF_CISCO (1 << 5) |
Definition at line 31 of file ooh323cDriver.h.
#define H323_DTMF_H245ALPHANUMERIC (1 << 2) |
Definition at line 28 of file ooh323cDriver.h.
#define H323_DTMF_H245SIGNAL (1 << 3) |
Definition at line 29 of file ooh323cDriver.h.
#define H323_DTMF_INBAND (1 << 4) |
Definition at line 30 of file ooh323cDriver.h.
#define H323_DTMF_INBANDRELAX (1 << 8) |
Definition at line 32 of file ooh323cDriver.h.
#define H323_DTMF_Q931 (1 << 1) |
Definition at line 27 of file ooh323cDriver.h.
#define H323_DTMF_RFC2833 (1 << 0) |
Definition at line 26 of file ooh323cDriver.h.
struct ast_format * convertH323CapToAsteriskCap | ( | int | cap | ) |
Definition at line 664 of file ooh323cDriver.c.
References ast_debug, ast_format_alaw, ast_format_g723, ast_format_g726, ast_format_g726_aal2, ast_format_g729, ast_format_gsm, ast_format_h263, ast_format_speex, ast_format_ulaw, and NULL.
Referenced by ooh323c_start_receive_channel(), and ooh323c_start_transmit_channel().
int ooh323c_set_capability | ( | struct ast_format_cap * | cap, |
int | dtmf, | ||
int | dtmfcodec | ||
) |
Definition at line 227 of file ooh323cDriver.c.
References ao2_ref, ast_format_alaw, ast_format_cap_count(), ast_format_cap_get_format(), ast_format_cmp(), AST_FORMAT_CMP_EQUAL, ast_format_g723, ast_format_g726, ast_format_g726_aal2, ast_format_g729, ast_format_gsm, ast_format_h263, ast_format_speex, ast_format_ulaw, ast_verb, FALSE, gH323Debug, grxframes, gtxframes, H323_DTMF_CISCO, H323_DTMF_H245ALPHANUMERIC, H323_DTMF_H245SIGNAL, H323_DTMF_RFC2833, ooh323c_start_receive_channel(), ooh323c_start_transmit_channel(), ooh323c_stop_receive_channel(), and ooh323c_stop_transmit_channel().
Referenced by load_module().
int ooh323c_set_capability_for_call | ( | ooCallData * | call, |
struct ast_format_cap * | cap, | ||
int | dtmf, | ||
int | dtmfcodec, | ||
int | t38support, | ||
int | g729onlyA | ||
) |
Definition at line 383 of file ooh323cDriver.c.
References ao2_ref, ast_format_alaw, ast_format_cap_count(), ast_format_cap_get_format(), ast_format_cap_get_format_framing(), ast_format_cmp(), AST_FORMAT_CMP_EQUAL, ast_format_g723, ast_format_g726, ast_format_g726_aal2, ast_format_g729, ast_format_gsm, ast_format_h263, ast_format_speex, ast_format_ulaw, ast_verb, call(), FALSE, g729onlyA, gH323Debug, grxframes, H323_DTMF_CISCO, H323_DTMF_H245ALPHANUMERIC, H323_DTMF_H245SIGNAL, H323_DTMF_RFC2833, ooh323c_start_receive_channel(), ooh323c_start_receive_datachannel(), ooh323c_start_transmit_channel(), ooh323c_start_transmit_datachannel(), ooh323c_stop_receive_channel(), ooh323c_stop_receive_datachannel(), ooh323c_stop_transmit_channel(), and ooh323c_stop_transmit_datachannel().
Referenced by onNewCallCreated(), and ooh323_onReceivedSetup().
int ooh323c_start_call_thread | ( | ooCallData * | call | ) |
Definition at line 130 of file ooh323cDriver.c.
References ast_calloc, ast_debug, ast_free, ast_log, ast_module_ref, ast_mutex_destroy, ast_mutex_init, ast_mutex_lock, ast_mutex_trylock, ast_mutex_unlock, ast_pthread_create_detached_background, c, callthread::call, call(), callThreads, callThreadsLock, gH323Debug, callthread::inUse, callthread::lock, LOG_ERROR, myself, callthread::next, NULL, ooh323c_call_thread(), PF_LOCAL, callthread::thePipe, and TRUE.
Referenced by onNewCallCreated().
int ooh323c_start_stack_thread | ( | void | ) |
Definition at line 199 of file ooh323cDriver.c.
References ast_log, ast_pthread_create_background, LOG_ERROR, NULL, ooh323c_cmd_thread(), ooh323c_stack_thread(), ooh323c_thread, and ooh323cmd_thread.
Referenced by load_module().
int ooh323c_stop_call_thread | ( | ooCallData * | call | ) |
Definition at line 192 of file ooh323cDriver.c.
References AST_PTHREADT_NULL, and call().
Referenced by onCallCleared().
int ooh323c_stop_stack_thread | ( | void | ) |
Definition at line 214 of file ooh323cDriver.c.
References AST_PTHREADT_NULL, NULL, ooh323c_thread, and ooh323cmd_thread.
Referenced by unload_module().