|
libsangoma
1
|
Wanpipe API Event Structure. More...
#include <wanpipe_api_hdr.h>
Public Attributes | |
| u_int8_t | event_type |
| u_int8_t | mode |
| u_int8_t | channel |
| u_int8_t | span |
| u_int32_t | time_stamp_sec |
| u_int32_t | time_stamp_usec |
| union { | |
| struct { | |
| u_int32_t alarm | |
| } te1_alarm | |
| struct { | |
| u_int8_t rbs_bits | |
| } te1_rbs | |
| struct { | |
| u_int8_t state | |
| u_int8_t sig | |
| } rm_hook | |
| struct { | |
| u_int8_t state | |
| } rm_ring | |
| struct { | |
| u_int16_t type | |
| } rm_tone | |
| struct { | |
| u_int8_t digit | |
| u_int8_t port | |
| u_int8_t type | |
| } dtmf | |
| struct { | |
| u_int16_t polarity | |
| u_int16_t ohttimer | |
| u_int16_t polarity_reverse | |
| } rm_common | |
| struct { | |
| int32_t gain | |
| } rm_gain | |
| struct { | |
| u_int16_t status | |
| } linkstatus | |
| struct { | |
| u_int32_t status | |
| } serial | |
| unsigned char reserved [WAN_MAX_EVENT_SZ_UNION] | |
| }; | |
Wanpipe API Event Structure.
Definition at line 60 of file wanpipe_api_hdr.h.
| u_int8_t wp_api_event::event_type |
Event Type defined in enum wanpipe_tdm_api_events
Definition at line 62 of file wanpipe_api_hdr.h.
| u_int8_t wp_api_event::mode |
Mode (Enable/Disable), WP_TDMAPI_EVENT_DISABLE, WP_TDMAPI_EVENT_ENABLE
Definition at line 63 of file wanpipe_api_hdr.h.
| u_int8_t wp_api_event::channel |
TDM channel num, integer from 1 to 32
Definition at line 64 of file wanpipe_api_hdr.h.
Referenced by sangoma_disable_bri_bchan_loopback(), and sangoma_enable_bri_bchan_loopback().
| u_int8_t wp_api_event::span |
TDM span num, integer from 1 to 255
Definition at line 65 of file wanpipe_api_hdr.h.
| u_int32_t wp_api_event::time_stamp_sec |
timestamp in sec
Definition at line 66 of file wanpipe_api_hdr.h.
| u_int32_t wp_api_event::time_stamp_usec |
timestamp in microseconds
Definition at line 67 of file wanpipe_api_hdr.h.
| u_int32_t wp_api_event::alarm |
contains bit map of T1/E1 alarms
Definition at line 70 of file wanpipe_api_hdr.h.
| u_int8_t wp_api_event::rbs_bits |
contains bit map of T1/E1 rbs bits
Definition at line 73 of file wanpipe_api_hdr.h.
| u_int8_t wp_api_event::state |
contains rx hook state: WP_TDMAPI_EVENT_RXHOOK_OFF, WP_TDMAPI_EVENT_RXHOOK_ON
Ring state, WP_TDMAPI_EVENT_RING_PRESENT, WP_TDMAPI_EVENT_RING_STOP
Definition at line 76 of file wanpipe_api_hdr.h.
| u_int16_t wp_api_event::type |
Ring tone type, enum WP_TDMAPI_EVENT_TONE_xxx
Definition at line 83 of file wanpipe_api_hdr.h.
| u_int8_t wp_api_event::digit |
DTMF: digit
Definition at line 86 of file wanpipe_api_hdr.h.
| u_int8_t wp_api_event::port |
DTMF: SOUT/ROUT
Definition at line 87 of file wanpipe_api_hdr.h.
| u_int8_t wp_api_event::type |
DTMF: PRESET/STOP
Definition at line 88 of file wanpipe_api_hdr.h.
| u_int16_t wp_api_event::status |
Link Status (connected/disconnnected)
Definition at line 99 of file wanpipe_api_hdr.h.
| u_int32_t wp_api_event::status |
Serial Modem Status: DCD/CTS
Definition at line 102 of file wanpipe_api_hdr.h.
| unsigned char wp_api_event::reserved[WAN_MAX_EVENT_SZ_UNION] |
Padding up to WAN_MAX_EVENT_SZ
Definition at line 104 of file wanpipe_api_hdr.h.
1.8.5