Asterisk - The Open Source Telephony Project
18.5.0
|
#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.
Referenced by build_peer(), build_user(), configure_local_rtp(), handle_cli_ooh323_show_config(), handle_cli_ooh323_show_peer(), handle_cli_ooh323_show_user(), ooh323_digit_begin(), ooh323_digit_end(), ooh323_set_write_format(), ooh323c_set_capability(), ooh323c_set_capability_for_call(), and reload_config().
#define H323_DTMF_H245ALPHANUMERIC (1 << 2) |
Definition at line 28 of file ooh323cDriver.h.
Referenced by build_peer(), build_user(), handle_cli_ooh323_show_config(), handle_cli_ooh323_show_peer(), handle_cli_ooh323_show_user(), ooh323_digit_begin(), ooh323c_set_capability(), ooh323c_set_capability_for_call(), and reload_config().
#define H323_DTMF_H245SIGNAL (1 << 3) |
Definition at line 29 of file ooh323cDriver.h.
Referenced by build_peer(), build_user(), handle_cli_ooh323_show_config(), handle_cli_ooh323_show_peer(), handle_cli_ooh323_show_user(), ooh323_digit_begin(), ooh323c_set_capability(), ooh323c_set_capability_for_call(), and reload_config().
#define H323_DTMF_INBAND (1 << 4) |
Definition at line 30 of file ooh323cDriver.h.
Referenced by build_peer(), build_user(), handle_cli_ooh323_show_config(), handle_cli_ooh323_show_peer(), handle_cli_ooh323_show_user(), ooh323_digit_begin(), ooh323_digit_end(), ooh323_new(), ooh323_rtp_read(), and reload_config().
#define H323_DTMF_INBANDRELAX (1 << 8) |
Definition at line 32 of file ooh323cDriver.h.
Referenced by build_peer(), build_user(), handle_cli_ooh323_show_config(), handle_cli_ooh323_show_peer(), handle_cli_ooh323_show_user(), ooh323_new(), and reload_config().
#define H323_DTMF_Q931 (1 << 1) |
Definition at line 27 of file ooh323cDriver.h.
Referenced by build_peer(), build_user(), handle_cli_ooh323_show_config(), handle_cli_ooh323_show_peer(), handle_cli_ooh323_show_user(), ooh323_digit_begin(), and reload_config().
#define H323_DTMF_RFC2833 (1 << 0) |
Definition at line 26 of file ooh323cDriver.h.
Referenced by build_peer(), build_user(), configure_local_rtp(), handle_cli_ooh323_show_config(), handle_cli_ooh323_show_peer(), handle_cli_ooh323_show_user(), ooh323_digit_begin(), ooh323_digit_end(), ooh323_set_write_format(), ooh323c_set_capability(), ooh323c_set_capability_for_call(), and reload_config().
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 228 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, format, gH323Debug, grxframes, gtxframes, H323_DTMF_CISCO, H323_DTMF_H245ALPHANUMERIC, H323_DTMF_H245SIGNAL, H323_DTMF_RFC2833, ooh323c_set_capability_for_call(), ooh323c_start_receive_channel(), ooh323c_start_transmit_channel(), ooh323c_stop_receive_channel(), and ooh323c_stop_transmit_channel().
Referenced by load_module(), and ooh323c_stop_stack_thread().
int ooh323c_set_capability_for_call | ( | ooCallData * | call, |
struct ast_format_cap * | cap, | ||
int | dtmf, | ||
int | dtmfcodec, | ||
int | t38support, | ||
int | g729onlyA | ||
) |
Definition at line 384 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, FALSE, format, 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(), ooh323_onReceivedSetup(), and ooh323c_set_capability().
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, callThreads, callThreadsLock, gH323Debug, callthread::inUse, callthread::lock, LOG_ERROR, 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.
Referenced by onCallCleared().
int ooh323c_stop_stack_thread | ( | void | ) |
Definition at line 214 of file ooh323cDriver.c.
References AST_PTHREADT_NULL, NULL, ooh323c_set_capability(), ooh323c_thread, and ooh323cmd_thread.
Referenced by unload_module().