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