Thu May 24 14:32:01 2007

Asterisk developer's documentation


vmodem.h File Reference

Voice Modem Definitions. More...

#include "asterisk/frame.h"
#include "asterisk/channel.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

Defines

#define AST_MAX_INIT_STR   256
#define CHAR_DC4   0x14
#define CHAR_DLE   0x10
#define CHAR_ETX   0x03
#define MODEM_DEV_HANDSET   9
#define MODEM_DEV_SPKRPHONE   6
#define MODEM_DEV_TELCO   0
#define MODEM_DEV_TELCO_SPK   4
#define MODEM_DTMF_AST   (1 << 1)
#define MODEM_DTMF_I4L   (1 << 2)
#define MODEM_DTMF_NONE   (1 << 0)
#define MODEM_MAX_BUF   MODEM_MAX_LEN * 16
#define MODEM_MAX_LEN   30
#define MODEM_MODE_IMMEDIATE   0
#define MODEM_MODE_WAIT_ANSWER   2
#define MODEM_MODE_WAIT_RING   1

Functions

int ast_modem_expect (struct ast_modem_pvt *p, char *result, int timeout)
ast_channelast_modem_new (struct ast_modem_pvt *i, int state)
int ast_modem_read_response (struct ast_modem_pvt *p, int timeout)
int ast_modem_send (struct ast_modem_pvt *p, char *cmd, int len)
void ast_modem_trim (char *s)
int ast_register_modem_driver (struct ast_modem_driver *mc)
int ast_unregister_modem_driver (struct ast_modem_driver *mc)


Detailed Description

Voice Modem Definitions.

Definition in file vmodem.h.


Function Documentation

int ast_modem_expect ( struct ast_modem_pvt p,
char *  result,
int  timeout 
)

Wait for result to occur. Return non-zero if times out or error, last response is stored in p->response

struct ast_channel* ast_modem_new ( struct ast_modem_pvt i,
int  state 
)

Used by modem drivers to start up the PBX on a RING

int ast_modem_read_response ( struct ast_modem_pvt p,
int  timeout 
)

Wait for result to occur. response is stored in p->response

int ast_modem_send ( struct ast_modem_pvt p,
char *  cmd,
int  len 
)

Send the command cmd (length len, or 0 if pure ascii) on modem

void ast_modem_trim ( char *  s  ) 

Trim off trailing mess

int ast_register_modem_driver ( struct ast_modem_driver mc  ) 

Register a driver

int ast_unregister_modem_driver ( struct ast_modem_driver mc  ) 

Unregister a driver


Generated on Thu May 24 14:32:01 2007 for Asterisk - the Open Source PBX by  doxygen 1.5.1