blob: ed22a5d7aa5138dd5035ac06f6a0bd4a1a2e0a08 [file] [log] [blame]
James Kuszmaul82f6c042021-01-17 11:30:16 -08001/**
2 * @file re_telev.h Interface to Telephony Events (RFC 4733)
3 *
4 * Copyright (C) 2010 Creytiv.com
5 */
6
7enum {
8 TELEV_PTIME = 50,
9 TELEV_SRATE = 8000
10};
11
12struct telev;
13
14extern const char telev_rtpfmt[];
15
16int telev_alloc(struct telev **tp, uint32_t ptime);
17int telev_set_srate(struct telev *tel, uint32_t srate);
18int telev_send(struct telev *tel, int event, bool end);
19int telev_recv(struct telev *tel, struct mbuf *mb, int *event, bool *end);
20int telev_poll(struct telev *tel, bool *marker, struct mbuf *mb);
21
22int telev_digit2code(int digit);
23int telev_code2digit(int code);