File: re_telev.h

package info (click to toggle)
libre 2.0.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,556 kB
  • sloc: ansic: 41,621; makefile: 143; sh: 1
file content (23 lines) | stat: -rw-r--r-- 579 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/**
 * @file re_telev.h  Interface to Telephony Events (RFC 4733)
 *
 * Copyright (C) 2010 Creytiv.com
 */

enum {
	TELEV_PTIME = 50,
	TELEV_SRATE = 8000
};

struct telev;

extern const char telev_rtpfmt[];

int telev_alloc(struct telev **tp, uint32_t ptime);
int telev_set_srate(struct telev *tel, uint32_t srate);
int telev_send(struct telev *tel, int event, bool end);
int telev_recv(struct telev *tel, struct mbuf *mb, int *event, bool *end);
int telev_poll(struct telev *tel, bool *marker, struct mbuf *mb);

int telev_digit2code(int digit);
int telev_code2digit(int code);