#include <time.h>#include <string.h>#include <stdio.h>#include <stdlib.h>#include <unistd.h>#include <math.h>#include <ctype.h>#include <asterisk/ulaw.h>#include <asterisk/tdd.h>#include <asterisk/logger.h>#include <asterisk/fskmodem.h>#include "ecdisa.h"Include dependency graph for tdd.c:

Go to the source code of this file.
Data Structures | |
| struct | tdd_state |
Defines | |
| #define | TDD_SPACE 1800.0 /* 1800 hz for "0" */ |
| #define | TDD_MARK 1400.0 /* 1400 hz for "1" */ |
| #define | PUT_BYTE(a) |
| #define | PUT_AUDIO_SAMPLE(y) |
| #define | PUT_TDD_MARKMS |
| #define | PUT_TDD_BAUD(bit) |
| #define | PUT_TDD_STOP |
| #define | PUT_TDD(byte) |
Functions | |
| void | tdd_init (void) |
| CallerID Initialization. | |
| tdd_state * | tdd_new (void) |
| Create a TDD state machine. | |
| int | ast_tdd_gen_ecdisa (unsigned char *outbuf, int len) |
| Generate Echo Canceller diable tone (2100HZ). | |
| int | tdd_feed (struct tdd_state *tdd, unsigned char *ubuf, int len) |
| Read samples into the state machine, and return character (if any). | |
| void | tdd_free (struct tdd_state *tdd) |
| Free a TDD state machine. | |
| int | tdd_generate (struct tdd_state *tdd, unsigned char *buf, char *str) |
| Generates a CallerID FSK stream in ulaw format suitable for transmission. | |
|
|
Value:
|
|
|
Value:
Definition at line 191 of file tdd.c. Referenced by callerid_generate(), and vmwi_generate(). |
|
|
Definition at line 225 of file tdd.c. Referenced by tdd_generate(). |
|
|
|
|
|
Value: |
|
|
|
|
|
Definition at line 45 of file tdd.c. Referenced by tdd_init(). |
|
|
Definition at line 44 of file tdd.c. Referenced by tdd_init(). |
|
||||||||||||
|
Generate Echo Canceller diable tone (2100HZ).
Definition at line 101 of file tdd.c.
|
|
||||||||||||||||
|
Read samples into the state machine, and return character (if any).
Definition at line 116 of file tdd.c. References ast_log(), AST_MULAW, free, fsk_serie(), tdd_state::fskd, LOG_ERROR, LOG_NOTICE, LOG_WARNING, malloc, tdd_state::mode, tdd_state::oldlen, and tdd_state::oldstuff.
|
|
|
Free a TDD state machine.
Definition at line 172 of file tdd.c. References free.
|
|
||||||||||||||||
|
Generates a CallerID FSK stream in ulaw format suitable for transmission.
Definition at line 236 of file tdd.c. References tdd_state::mode, and PUT_TDD.
|
|
|
CallerID Initialization. Initializes the TDD system. Mostly stuff for inverse FFT Definition at line 67 of file tdd.c. References TDD_MARK, and TDD_SPACE. Referenced by main().
|
|
|
Create a TDD state machine. This function returns a malloc'd instance of the tdd_state data structure. Returns a pointer to a malloc'd tdd_state structure, or NULL on error. Definition at line 76 of file tdd.c. References ast_log(), LOG_WARNING, and malloc.
|
1.3.7