|
static void | __reg_module (void) |
|
static void | __unreg_module (void) |
|
struct ast_module * | AST_MODULE_SELF_SYM (void) |
|
static int | attempt_transfer (struct unistim_subchannel *p1, struct unistim_subchannel *p2) |
|
static struct unistim_device * | build_device (const char *cat, const struct ast_variable *v) |
|
static void | change_callerid (struct unistimsession *pte, int type, char *callerid) |
|
static void | change_favorite_icon (struct unistimsession *pte, unsigned char status) |
|
static struct unistimsession * | channel_to_session (struct ast_channel *ast) |
|
static void | check_send_queue (struct unistimsession *pte) |
|
static void | close_call (struct unistimsession *pte) |
|
static void | close_client (struct unistimsession *s) |
|
static char * | control2str (int ind) |
|
static struct unistimsession * | create_client (const struct sockaddr_in *addr_from) |
|
static void | delete_device (struct unistim_device *d) |
|
static void | discard_call (struct unistimsession *pte) |
|
static void | display_last_error (const char *sz_msg) |
|
static void * | do_monitor (void *data) |
|
static void | dummy (char *unused,...) |
|
static int | find_language (const char *) |
|
static struct unistim_line * | find_line_by_number (struct unistim_device *d, const char *val) |
|
static int | find_rtp_port (struct unistim_subchannel *s) |
|
static struct unistim_subchannel * | find_subchannel_by_name (const char *dest) |
|
static void | finish_bookmark (void) |
|
static int | get_active_softkey (struct unistimsession *pte) |
|
static int | get_avail_softkey (struct unistimsession *pte, const char *name) |
|
static struct unistim_subchannel * | get_sub (struct unistim_device *device, int type) |
|
static struct unistim_subchannel * | get_sub_holding (struct unistim_device *device, int type, int holding) |
|
static unsigned int | get_tick_count (void) |
|
static int | get_to_address (int fd, struct sockaddr_in *toAddr) |
|
static void | handle_call_incoming (struct unistimsession *s) |
|
static void | handle_call_outgoing (struct unistimsession *s) |
|
static void | handle_dial_page (struct unistimsession *pte) |
|
static void | handle_key_fav (struct unistimsession *pte, char keycode) |
|
static void | handle_select_codec (struct unistimsession *) |
|
static void | handle_select_language (struct unistimsession *) |
|
static void | handle_select_option (struct unistimsession *pte) |
|
static void | ignore_call (struct unistimsession *pte) |
|
static void | in_band_indication (struct ast_channel *ast, const struct ast_tone_zone *tz, const char *indication) |
|
static void | init_phone_step2 (struct unistimsession *pte) |
|
static int | is_key_favorite (struct unistim_device *d, int fav) |
|
static int | is_key_line (struct unistim_device *d, int fav) |
|
static void | key_call (struct unistimsession *pte, char keycode) |
|
static void | key_dial_page (struct unistimsession *pte, char keycode) |
|
static void | key_favorite (struct unistimsession *, char) |
|
static void | key_history (struct unistimsession *pte, char keycode) |
|
static void | key_main_page (struct unistimsession *pte, char keycode) |
|
static void | key_ringing (struct unistimsession *pte, char keycode) |
|
static void | key_select_codec (struct unistimsession *pte, char keycode) |
|
static void | key_select_extension (struct unistimsession *pte, char keycode) |
|
static void | key_select_language (struct unistimsession *pte, char keycode) |
|
static void | key_select_option (struct unistimsession *pte, char keycode) |
|
static int | lang_cmp_fn (void *obj, void *arg, int flags) |
|
static int | lang_hash_fn (const void *obj, const int flags) |
|
static int | load_module (void) |
|
static void | microphone_mute_toggle (struct unistimsession *pte) |
|
static char | open_history (struct unistimsession *pte, char way, FILE **f) |
|
static int | parse_bookmark (const char *text, struct unistim_device *d) |
|
static void | parsing (int size, unsigned char *buf, struct unistimsession *pte, struct sockaddr_in *addr_from) |
|
static void | process_request (int size, unsigned char *buf, struct unistimsession *pte) |
|
static const char * | ptestate_tostr (const int type) |
|
static void | rcv_mac_addr (struct unistimsession *pte, const unsigned char *buf) |
|
static void | rcv_resume_connection_with_server (struct unistimsession *pte) |
|
static void | refresh_all_favorite (struct unistimsession *pte) |
|
static int | register_extension (const struct unistimsession *pte) |
|
static int | reload (void) |
|
static int | reload_config (void) |
|
static int | restart_monitor (void) |
|
static void | send_blink_cursor (struct unistimsession *pte) |
|
static void | send_callerid_screen (struct unistimsession *, struct unistim_subchannel *) |
|
static void | send_charset_update (struct unistimsession *pte, int charset) |
|
static void | send_client (int size, const unsigned char *data, struct unistimsession *pte) |
|
static void | send_cursor_pos (struct unistimsession *pte, unsigned char pos) |
|
static void | send_date_time (struct unistimsession *pte) |
|
static void | send_date_time2 (struct unistimsession *pte) |
|
static void | send_date_time3 (struct unistimsession *pte) |
|
static void | send_dial_tone (struct unistimsession *pte) |
|
static int | send_dtmf_tone (struct unistimsession *pte, char digit) |
|
static void | send_end_call (struct unistimsession *pte) |
|
static void | send_expansion_icon (unsigned char pos, unsigned char status, struct unistimsession *pte) |
|
static void | send_expansion_next (struct unistimsession *pte) |
|
static void | send_expansion_short (unsigned char pos, unsigned char status, struct unistimsession *pte) |
|
static void | send_expansion_text (unsigned char pos, struct unistimsession *pte, const char *text) |
|
static void | send_favorite (unsigned char pos, unsigned char status, struct unistimsession *pte, const char *text) |
|
static void | send_favorite_selected (unsigned char status, struct unistimsession *pte) |
|
static void | send_favorite_short (unsigned char pos, unsigned char status, struct unistimsession *pte) |
|
static void | send_icon (unsigned char pos, unsigned char status, struct unistimsession *pte) |
|
static void | send_idle_clock (struct unistimsession *pte) |
|
static void | send_led_update (struct unistimsession *pte, unsigned char led) |
|
static void | send_month_labels (struct unistimsession *pte, int month) |
|
static void | send_mute (struct unistimsession *pte, unsigned char mute) |
|
static void | send_no_ring (struct unistimsession *pte) |
|
static void | send_ping (struct unistimsession *pte) |
|
static void | send_raw_client (int size, const unsigned char *data, struct sockaddr_in *addr_to, const struct sockaddr_in *addr_ourip) |
|
static int | send_retransmit (struct unistimsession *pte) |
|
static void | send_ring (struct unistimsession *pte, signed char volume, signed char style) |
|
static void | send_select_output (struct unistimsession *pte, unsigned char output, unsigned char volume, unsigned char mute) |
|
static void | send_start_rtp (struct unistim_subchannel *) |
|
static void | send_start_timer (struct unistimsession *pte) |
|
static void | send_stop_timer (struct unistimsession *pte) |
|
static void | send_text (unsigned char pos, unsigned char inverse, struct unistimsession *pte, const char *text) |
|
static void | send_text_status (struct unistimsession *pte, const char *text) |
|
static void | send_texttitle (struct unistimsession *pte, const char *text) |
|
static void | send_tone (struct unistimsession *pte, uint16_t tone1, uint16_t tone2) |
|
static void | set_ping_timer (struct unistimsession *pte) |
|
static void | show_entry_history (struct unistimsession *pte, FILE **f) |
|
static void | show_extension_page (struct unistimsession *pte) |
|
static void | show_history (struct unistimsession *pte, char way) |
|
static void | show_main_page (struct unistimsession *pte) |
|
static void | show_phone_number (struct unistimsession *pte) |
|
static int | soft_key_visible (struct unistim_device *d, unsigned char num) |
|
static void | start_rtp (struct unistim_subchannel *sub) |
|
static void | sub_hold (struct unistimsession *pte, struct unistim_subchannel *sub) |
|
static void | sub_start_silence (struct unistimsession *pte, struct unistim_subchannel *sub) |
|
static void | sub_stop_silence (struct unistimsession *pte, struct unistim_subchannel *sub) |
|
static void | sub_unhold (struct unistimsession *pte, struct unistim_subchannel *sub) |
|
static const char * | subtype_tostr (const int type) |
|
static void | swap_subs (struct unistim_subchannel *a, struct unistim_subchannel *b) |
|
static void | transfer_call_step1 (struct unistimsession *pte) |
|
static void | transfer_cancel_step2 (struct unistimsession *pte) |
|
static struct unistim_subchannel * | unistim_alloc_sub (struct unistim_device *d, int x) |
|
static int | unistim_answer (struct ast_channel *ast) |
|
static int | unistim_call (struct ast_channel *ast, const char *dest, int timeout) |
|
static char * | unistim_do_debug (struct ast_cli_entry *e, int cmd, struct ast_cli_args *a) |
|
static int | unistim_do_senddigit (struct unistimsession *pte, char digit) |
|
static int | unistim_fixup (struct ast_channel *oldchan, struct ast_channel *newchan) |
|
static int | unistim_free_sub (struct unistim_subchannel *) |
|
static enum ast_rtp_glue_result | unistim_get_rtp_peer (struct ast_channel *chan, struct ast_rtp_instance **instance) |
|
static int | unistim_hangup (struct ast_channel *ast) |
|
static int | unistim_hangup_clean (struct ast_channel *ast, struct unistim_subchannel *sub) |
|
static int | unistim_indicate (struct ast_channel *ast, int ind, const void *data, size_t datalen) |
|
static struct unistim_line * | unistim_line_alloc (void) |
|
static void | unistim_line_copy (struct unistim_line *dst, struct unistim_line *src) |
|
static struct unistim_line * | unistim_line_destroy (struct unistim_line *l) |
|
static struct ast_channel * | unistim_new (struct unistim_subchannel *sub, int state, const struct ast_assigned_ids *assignedids, const struct ast_channel *requestor) |
|
static struct ast_frame * | unistim_read (struct ast_channel *ast) |
|
static int | unistim_register (struct unistimsession *s) |
|
static char * | unistim_reload (struct ast_cli_entry *e, int cmd, struct ast_cli_args *a) |
| — unistim_reload: Force reload of module from cli — Runs in the asterisk main thread, so don't do anything useful but setting a flag and waiting for do_monitor to do the job in our thread
|
|
static struct ast_channel * | unistim_request (const char *type, struct ast_format_cap *cap, const struct ast_assigned_ids *assignedids, const struct ast_channel *requestor, const char *dest, int *cause) |
|
static struct ast_frame * | unistim_rtp_read (const struct ast_channel *ast, const struct unistim_subchannel *sub) |
|
static int | unistim_send_mwi_to_peer (struct unistim_line *peer, unsigned int tick) |
|
static int | unistim_senddigit_begin (struct ast_channel *ast, char digit) |
|
static int | unistim_senddigit_end (struct ast_channel *ast, char digit, unsigned int duration) |
|
static int | unistim_sendtext (struct ast_channel *ast, const char *text) |
|
static void | unistim_set_owner (struct unistim_subchannel *sub, struct ast_channel *chan) |
|
static int | unistim_set_rtp_peer (struct ast_channel *chan, struct ast_rtp_instance *rtp, struct ast_rtp_instance *vrtp, struct ast_rtp_instance *trtp, const struct ast_format_cap *codecs, int nat_active) |
|
static char * | unistim_show_devices (struct ast_cli_entry *e, int cmd, struct ast_cli_args *a) |
|
static char * | unistim_show_info (struct ast_cli_entry *e, int cmd, struct ast_cli_args *a) |
|
static char * | unistim_sp (struct ast_cli_entry *e, int cmd, struct ast_cli_args *a) |
|
static void * | unistim_ss (void *data) |
|
static int | unistim_unalloc_sub (struct unistim_device *d, struct unistim_subchannel *sub) |
|
static int | unistim_write (struct ast_channel *ast, struct ast_frame *frame) |
|
static int | unistimsock_read (int *id, int fd, short events, void *ignore) |
|
static int | unload_module (void) |
|
static void | unquote (char *out, const char *src, int maxlen) |
|
static int | unregister_extension (const struct unistimsession *pte) |
|
static const char * | ustmtext (const char *str, struct unistimsession *pte) |
|
static int | write_entry_history (struct unistimsession *pte, FILE *f, char c, char *line1) |
|
static int | write_history (struct unistimsession *pte, char way, char ismissed) |
|
|
static struct ast_module_info | __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_DEFAULT , .description = "UNISTIM Protocol (USTM)" , .key = "This paragraph is copyright (c) 2006 by Digium, Inc. \In order for your module to load, it must return this \key via a function called \"key\". Any code which \includes this paragraph must be licensed under the GNU \General Public License version 2 or later (at your \option). In addition to Digium's general reservations \of rights, Digium expressly reserves the right to \allow other parties to license this paragraph under \different terms. Any use of Digium, Inc. trademarks or \logos (including \"Asterisk\" or \"Digium\") without \express written permission of Digium, Inc. is prohibited.\n" , .buildopt_sum = "da6642af068ee5e6490c5b1d2cc1d238" , .support_level = AST_MODULE_SUPPORT_EXTENDED, .load = load_module, .unload = unload_module, .reload = reload, } |
|
static const struct ast_module_info * | ast_module_info = &__mod_info |
|
static enum autoprovision | autoprovisioning = AUTOPROVISIONING_NO |
|
static unsigned char * | buff |
|
static const char | channel_type [] = "USTM" |
|
static struct ast_jb_conf | default_jbconf |
| Global jitterbuffer configuration - by default, jb is disabled. More...
|
|
static ast_mutex_t | devicelock = { PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP , NULL, {1, 0} } |
|
static struct unistim_device * | devices = NULL |
|
static const float | dtmf_col [] = { 1209, 1336, 1477, 1633 } |
|
static const int | dtmf_row [] = { 697, 770, 852, 941 } |
|
struct ast_format_cap * | global_cap |
|
static struct ast_jb_conf | global_jbconf |
|
static struct io_context * | io |
|
static pthread_t | monitor_thread = AST_PTHREADT_NULL |
|
static ast_mutex_t | monlock = { PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP , NULL, {1, 0} } |
|
static unsigned char | monthlabels [] |
|
static struct unistim_languages | options_languages [] |
|
static struct unistim_menu_item | options_menu [] |
|
static const unsigned char | packet_rcv_discovery [] |
|
static const unsigned char | packet_recv_expansion_pressed_key [] |
|
static const unsigned char | packet_recv_firm_version [] |
|
static const unsigned char | packet_recv_hangup [] |
|
static const unsigned char | packet_recv_it_type [] |
|
static const unsigned char | packet_recv_mac_addr [] |
|
static const unsigned char | packet_recv_pick_up [] |
|
static const unsigned char | packet_recv_pressed_key [] |
|
static const unsigned char | packet_recv_r2 [] = { 0x00, 0x00, 0x00, 0x13, 0x96, 0x03, 0x03 } |
|
static const unsigned char | packet_recv_resume_connection_with_server [] |
|
static const unsigned char | packet_send_arrow [] = { 0x17, 0x04, 0x04, 0x00 } |
|
static const unsigned char | packet_send_blink_cursor [] = { 0x17, 0x04, 0x10, 0x86 } |
|
static const unsigned char | packet_send_call [] |
|
static const unsigned char | packet_send_charset_iso_2022_jp [] |
|
static const unsigned char | packet_send_charset_iso_8859_1 [] |
|
static const unsigned char | packet_send_charset_iso_8859_2 [] |
|
static const unsigned char | packet_send_charset_iso_8859_4 [] |
|
static const unsigned char | packet_send_charset_iso_8859_5 [] |
|
static const unsigned char | packet_send_Contrast [] |
|
static const unsigned char | packet_send_date_time [] |
|
static const unsigned char | packet_send_date_time2 [] |
|
static const unsigned char | packet_send_date_time3 [] |
|
static const unsigned char | packet_send_discovery_ack [] |
|
static const unsigned char | packet_send_end_call [] |
|
static const unsigned char | packet_send_expansion_icon [] = { 0x09, 0x06, 0x59, 0x05, 0x47, 0x20 } |
|
static const unsigned char | packet_send_expansion_next [] = { 0x09, 0x03, 0x17 } |
|
static const unsigned char | packet_send_expansion_text [] |
|
static const unsigned char | packet_send_favorite [] |
|
static const unsigned char | packet_send_icon [] = { 0x17, 0x05, 0x14, 0x00, 0x25 } |
|
static const unsigned char | packet_send_jitter_buffer_conf [] |
|
static const unsigned char | packet_send_led_update [] = { 0x19, 0x04, 0x00, 0x00 } |
|
static unsigned char | packet_send_monthlabels_download [] |
|
static const unsigned char | packet_send_mute [] = { 0x16, 0x05, 0x04, 0x00, 0x00 } |
|
static const unsigned char | packet_send_no_ring [] |
|
static const unsigned char | packet_send_open_audio_stream_rx [] |
|
static const unsigned char | packet_send_open_audio_stream_rx3 [] |
|
static const unsigned char | packet_send_open_audio_stream_tx [] |
|
static const unsigned char | packet_send_open_audio_stream_tx3 [] |
|
static unsigned char | packet_send_ping [] |
|
static const unsigned char | packet_send_query_basic_manager_04 [] = { 0x1a, 0x04, 0x01, 0x04 } |
|
static const unsigned char | packet_send_query_basic_manager_10 [] = { 0x1a, 0x04, 0x01, 0x10 } |
|
static const unsigned char | packet_send_query_mac_address [] = { 0x1a, 0x04, 0x01, 0x08 } |
|
static const unsigned char | packet_send_ring [] |
|
static const unsigned char | packet_send_rtp_packet_size [] |
|
static const unsigned char | packet_send_S1 [] = { 0x1a, 0x07, 0x07, 0x00, 0x00, 0x00, 0x13 } |
|
static const unsigned char | packet_send_s4 [] |
|
static const unsigned char | packet_send_S7 [] = { 0x17, 0x06, 0x0f, 0x30, 0x07, 0x07 } |
|
static const unsigned char | packet_send_s9 [] |
|
static const unsigned char | packet_send_select_output [] |
|
static const unsigned char | packet_send_set_pos_cursor [] |
|
static const unsigned char | packet_send_start_timer [] |
|
static const unsigned char | packet_send_status [] |
|
static const unsigned char | packet_send_status2 [] |
|
static const unsigned char | packet_send_stop_timer [] = { 0x17, 0x05, 0x0b, 0x02, 0x00 } |
|
static const unsigned char | packet_send_stream_based_tone_dual_freq [] |
|
static const unsigned char | packet_send_stream_based_tone_off [] |
|
static const unsigned char | packet_send_stream_based_tone_on [] |
|
static const unsigned char | packet_send_stream_based_tone_single_freq [] |
|
static const unsigned char | packet_send_text [] |
|
static const unsigned char | packet_send_title [] |
|
static struct sockaddr_in | public_ip = { 0, } |
|
struct { |
unsigned int cos |
|
unsigned int cos_audio |
|
unsigned int tos |
|
unsigned int tos_audio |
|
} | qos = { 0, 0, 0, 0 } |
|
static struct ast_sched_context * | sched |
|
static ast_mutex_t | sessionlock = { PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP , NULL, {1, 0} } |
|
static struct unistimsession * | sessions = NULL |
|
static const char | tdesc [] = "UNISTIM Channel Driver" |
|
static struct ast_cli_entry | unistim_cli [] |
|
static int | unistim_keepalive |
|
static int | unistim_port |
|
static ast_mutex_t | unistim_reload_lock = { PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP , NULL, {1, 0} } |
|
static int | unistim_reloading = 0 |
|
static struct ast_rtp_glue | unistim_rtp_glue |
|
static struct ast_channel_tech | unistim_tech |
|
static int | unistimdebug = 0 |
|
static int | unistimsock = -1 |
|
static char | ustm_strcopy [1024] |
|