diff options
author | Harald Welte <laforge@gnumonks.org> | 2013-02-11 11:34:58 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2013-02-11 11:38:23 +0100 |
commit | ce94d971e1223626c96ad32373ea4ff034233b50 (patch) | |
tree | bbe05c72550d305c50e07528547cb730f59bc4f7 /include | |
parent | f7f0c91ca8c6cae331fa65db71f8c32502fad256 (diff) |
gapk: Add support for RTP input/output streams
Instead of having only file-based I/O, this enables gapk to receive and
send RTP streams, e.g. from live GSM network equipment like
sysmoBTS/nanoBTS.
Support is currently simplistic. On transmit, there is hard-coded codec
type of full-rate GSM. On receive-side, we should auto-detect the
format based on frame size and/or payload type, but we don't do that yet
at all.
Diffstat (limited to 'include')
-rw-r--r-- | include/gapk/procqueue.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/gapk/procqueue.h b/include/gapk/procqueue.h index ba1e2fa..93893ca 100644 --- a/include/gapk/procqueue.h +++ b/include/gapk/procqueue.h @@ -44,6 +44,11 @@ int pq_execute(struct pq *pq); int pq_queue_file_input(struct pq *pq, FILE *src, unsigned int block_len); int pq_queue_file_output(struct pq *pq, FILE *dst, unsigned int block_len); +/* RTP */ +int pq_queue_rtp_input(struct pq *pq, int rtp_fd, unsigned int block_len); +int pq_queue_rtp_output(struct pq *pq, int rtp_fd, unsigned int block_len); + + /* Format */ struct format_desc; int pq_queue_fmt_convert(struct pq *pq, const struct format_desc *fmt, int to_from_n); |