43 #define GSM_FRAME_SIZE 33 44 #define GSM_SAMPLES 160 49 {0xD8,0x20,0xA2,0xE1,0x5A,0x50,0x00,0x49,0x24,0x92,0x49,0x24,0x50,0x00,0x49
50 ,0x24,0x92,0x49,0x24,0x50,0x00,0x49,0x24,0x92,0x49,0x24,0x50,0x00,0x49,0x24
104 if ((cur = ftello(fs->
f)) < 0) {
109 if (fseeko(fs->
f, 0, SEEK_END) < 0) {
114 if ((max = ftello(fs->
f)) < 0) {
121 if (whence == SEEK_SET) {
124 offset = distance + cur;
125 }
else if (whence == SEEK_END) {
126 offset = max - distance;
130 offset = (offset <
min)?
min:offset;
132 offset = (offset >
max)?max:offset;
133 }
else if (offset > max) {
135 fseeko(fs->
f, 0, SEEK_END);
142 return fseeko(fs->
f, offset, SEEK_SET);
150 if ((fd = fileno(fs->
f)) < 0) {
154 if ((cur = ftello(fs->
f)) < 0) {
159 return ftruncate(fd, cur);
Asterisk main include file. File version handling, generic pbx functions.
struct ast_frame_subclass subclass
#define AST_FRIENDLY_OFFSET
Offset into a frame's data buffer.
Asterisk architecture endianess compatibility definitions.
struct ast_frame fr
frame produced by read, typically
static void conv65(wav_byte *c, gsm_byte *d)
#define AST_FRAME_SET_BUFFER(fr, _base, _ofs, _datalen)
static int len(struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t buflen)
Module has failed to load, may be in an inconsistent state.
AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_GLOBAL_SYMBOLS|AST_MODFLAG_LOAD_ORDER, "HTTP Phone Provisioning",.support_level=AST_MODULE_SUPPORT_EXTENDED,.load=load_module,.unload=unload_module,.reload=reload,.load_pri=AST_MODPRI_CHANNEL_DEPEND,.requires="http",)
This structure is allocated by file.c in one chunk, together with buf_size and desc_size bytes of mem...
Data structure associated with a single frame of data.
union ast_frame::@263 data
struct ast_format * format
#define ASTERISK_GPL_KEY
The text the key() function should return.
Asterisk module definitions.