#include <asterisk/frame.h>#include <asterisk/channel.h>#include <asterisk/channel_pvt.h>Include dependency graph for vmodem.h:

Go to the source code of this file.
Data Structures | |
| struct | ast_modem_driver |
| struct | ast_modem_pvt |
| Private data that needs to be filled by modem driver. More... | |
Defines | |
| #define | CHAR_DLE 0x10 |
| #define | CHAR_ETX 0x03 |
| #define | CHAR_DC4 0x14 |
| #define | MODEM_DEV_TELCO 0 |
| #define | MODEM_DEV_TELCO_SPK 4 |
| #define | MODEM_DEV_SPKRPHONE 6 |
| #define | MODEM_DEV_HANDSET 9 |
| #define | MODEM_MAX_LEN 30 |
| #define | MODEM_MAX_BUF MODEM_MAX_LEN * 16 |
| #define | AST_MAX_INIT_STR 256 |
| #define | MODEM_MODE_IMMEDIATE 0 |
| #define | MODEM_MODE_WAIT_RING 1 |
| #define | MODEM_MODE_WAIT_ANSWER 2 |
Functions | |
| int | ast_register_modem_driver (struct ast_modem_driver *mc) |
| Register a modem driver. | |
| int | ast_unregister_modem_driver (struct ast_modem_driver *mc) |
| Unregisters a modem driver. | |
| int | ast_modem_send (struct ast_modem_pvt *p, char *cmd, int len) |
| Sends command. | |
| int | ast_modem_expect (struct ast_modem_pvt *p, char *result, int timeout) |
| Waits for result. | |
| int | ast_modem_read_response (struct ast_modem_pvt *p, int timeout) |
| Waits for result. | |
| ast_channel * | ast_modem_new (struct ast_modem_pvt *i, int state) |
| Used to start up the PBX on a RING. | |
| void | ast_modem_trim (char *s) |
| Trim string of trailing stuff. | |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||||||
|
Waits for result. Wait for result to occur. Return non-zero if times out or error, last response is stored in p->response |
|
||||||||||||
|
Used to start up the PBX on a RING. Used by modem drivers to start up the PBX on a RING |
|
||||||||||||
|
Waits for result. Wait for result to occur. response is stored in p->response |
|
||||||||||||||||
|
Sends command. Send the command cmd (length len, or 0 if pure ascii) on modem |
|
|
Trim string of trailing stuff. Trim off trailing mess |
|
|
Register a modem driver. Register a driver |
|
|
Unregisters a modem driver. Unregister a driver |
1.3.7