Go to the source code of this file.
Classes | |
struct | adsi_tx_state_t |
struct | adsi_rx_state_t |
Defines | |
#define | _SPANDSP_ADSI_H_ |
#define | MCLASS_VISUAL_INDICATOR 0x0B |
#define | JCLIP_MDMF_CALLERID 0x40 |
#define | CLIP_DTMF_HASH_TERMINATED '#' |
#define | CLIP_DTMF_C_TERMINATED 'C' |
#define | CLIP_DTMF_HASH_CALLER_NUMBER 'A' |
#define | CLIP_DTMF_HASH_ABSENCE 'D' |
#define | CLIP_DTMF_HASH_UNSPECIFIED 0 |
#define | CLIP_DTMF_C_CALLER_NUMBER 'A' |
#define | CLIP_DTMF_C_REDIRECT_NUMBER 'D' |
#define | CLIP_DTMF_C_ABSENCE 'B' |
Enumerations | |
enum | { ADSI_STANDARD_NONE = 0, ADSI_STANDARD_CLASS = 1, ADSI_STANDARD_CLIP = 2, ADSI_STANDARD_ACLIP = 3, ADSI_STANDARD_JCLIP = 4, ADSI_STANDARD_CLIP_DTMF = 5, ADSI_STANDARD_TDD = 6 } |
enum | { CLASS_SDMF_CALLERID = 0x04, CLASS_MDMF_CALLERID = 0x80, CLASS_SDMF_MSG_WAITING = 0x06, CLASS_MDMF_MSG_WAITING = 0x82 } |
enum | { MCLASS_DATETIME = 0x01, MCLASS_CALLER_NUMBER = 0x02, MCLASS_DIALED_NUMBER = 0x03, MCLASS_ABSENCE1 = 0x04, MCLASS_REDIRECT = 0x05, MCLASS_QUALIFIER = 0x06, MCLASS_CALLER_NAME = 0x07, MCLASS_ABSENCE2 = 0x08, MCLASS_ALT_ROUTE = 0x09 } |
enum | { CLIP_MDMF_CALLERID = 0x80, CLIP_MDMF_MSG_WAITING = 0x82, CLIP_MDMF_CHARGE_INFO = 0x86, CLIP_MDMF_SMS = 0x89 } |
enum | { CLIP_DATETIME = 0x01, CLIP_CALLER_NUMBER = 0x02, CLIP_DIALED_NUMBER = 0x03, CLIP_ABSENCE1 = 0x04, CLIP_CALLER_NAME = 0x07, CLIP_ABSENCE2 = 0x08, CLIP_VISUAL_INDICATOR = 0x0B, CLIP_MESSAGE_ID = 0x0D, CLIP_CALLTYPE = 0x11, CLIP_NUM_MSG = 0x13, CLIP_REDIR_NUMBER = 0x03, CLIP_CHARGE = 0x20, CLIP_DURATION = 0x23, CLIP_ADD_CHARGE = 0x21, CLIP_DISPLAY_INFO = 0x50, CLIP_SERVICE_INFO = 0x55 } |
enum | { ACLIP_SDMF_CALLERID = 0x04, ACLIP_MDMF_CALLERID = 0x80 } |
enum | { ACLIP_DATETIME = 0x01, ACLIP_CALLER_NUMBER = 0x02, ACLIP_DIALED_NUMBER = 0x03, ACLIP_NUMBER_ABSENCE = 0x04, ACLIP_REDIRECT = 0x05, ACLIP_QUALIFIER = 0x06, ACLIP_CALLER_NAME = 0x07, ACLIP_NAME_ABSENCE = 0x08 } |
enum | { JCLIP_CALLER_NUMBER = 0x02, JCLIP_CALLER_NUM_DES = 0x21, JCLIP_DIALED_NUMBER = 0x09, JCLIP_DIALED_NUM_DES = 0x22, JCLIP_ABSENCE = 0x04 } |
Functions | |
adsi_rx_state_t * | adsi_rx_init (adsi_rx_state_t *s, int standard, put_msg_func_t put_msg, void *user_data) |
Initialise an ADSI receive context. | |
int | adsi_rx (adsi_rx_state_t *s, const int16_t *amp, int len) |
Receive a chunk of ADSI audio. | |
adsi_tx_state_t * | adsi_tx_init (adsi_tx_state_t *s, int standard) |
Initialise an ADSI transmit context. | |
void | adsi_tx_set_preamble (adsi_tx_state_t *s, int preamble_len, int preamble_ones_len, int postamble_ones_len, int stop_bits) |
Adjust the preamble associated with an ADSI transmit context. | |
int | adsi_tx (adsi_tx_state_t *s, int16_t *amp, int max_len) |
Generate a block of ADSI audio samples. | |
void | adsi_tx_send_alert_tone (adsi_tx_state_t *s) |
Request generation of an ADSI alert tone. | |
int | adsi_tx_put_message (adsi_tx_state_t *s, const uint8_t *msg, int len) |
Put a message into the input buffer of an ADSI transmit context. | |
int | adsi_next_field (adsi_rx_state_t *s, const uint8_t *msg, int msg_len, int pos, uint8_t *field_type, uint8_t const **field_body, int *field_len) |
Get a field from an ADSI message. | |
int | adsi_add_field (adsi_tx_state_t *s, uint8_t *msg, int len, uint8_t field_type, uint8_t const *field_body, int field_len) |
Insert the header or a field into an ADSI message. | |
const char * | adsi_standard_to_str (int standard) |
Return a short name for an ADSI standard. |
|
Caller number absent: private/restricted (00) or not available (10) |
|
Caller number |
|
Diverting number |
|
Caller number absent: private (1), overseas (2) or not available (3) |
|
Caller number |
|
Definitions for CLIP-DTMF and its variants |
|
Caller ID field with no explicit field type |
|
Multiple data message caller ID frame |
|
Message waiting/not waiting |
|
Definitions for CLASS (Custom Local Area Signaling Services) |
|
|
Definitions for CLIP (Calling Line Identity Presentation) |
|
CLIP message IDs
|
|
Definitions for A-CLIP (Analog Calling Line Identity Presentation) |
|
A-CLIP MDM message IDs
|
|
J-CLIP MDM message IDs |
|
Insert the header or a field into an ADSI message.
|
|
Get a field from an ADSI message.
|
|
Receive a chunk of ADSI audio.
|
|
Initialise an ADSI receive context.
|
|
Return a short name for an ADSI standard.
|
|
Generate a block of ADSI audio samples.
|
|
Initialise an ADSI transmit context.
|
|
Put a message into the input buffer of an ADSI transmit context.
|
|
Request generation of an ADSI alert tone.
|
|
Adjust the preamble associated with an ADSI transmit context.
|