view utils/Makefile @ 199:e6c7ced3c031

mgw: accept zero-length RTP payload as BFI Mainline OsmoBTS now has an option (rtp continuous-streaming) that causes it to emit an RTP packet every 20 ms without gaps, sending a BFI marker in the form of zero-length RTP payload when it has nothing else to send. These codec-independent BFI markers don't indicate TAF, but this provision is a good start. Accept this BFI packet format in themwi-mgw.
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 29 Mar 2023 20:23:43 -0800
parents 857d78c58f56
children 67289fac8a44
line wrap: on
line source

CC=	gcc
CFLAGS=	-O2
PROGS=	sip-out-test sip-rx-test sip-udp-dump themwi-check-own \
	themwi-dump-numdb themwi-short-dial themwi-update-numdb \
	themwi-update-outrt
NOINST=	rtp-alloc-test
LIBNUMDB=../libnumdb/libnumdb.a
LIBRTPA=../librtpalloc/librtpalloc.a
LIBSIP=	../libsip/libsip.a
LIBUTIL=../libutil/libutil.a
INSTBIN=/usr/local/bin

all:	${PROGS} ${NOINST}

rtp-alloc-test:	rtp-alloc-test.o ${LIBRTPA} ${LIBUTIL}
	${CC} ${CFLAGS} -o $@ $@.o ${LIBRTPA} ${LIBUTIL}

sip-out-test:	sip-out-test.c
	${CC} ${CFLAGS} -o $@ $@.c

sip-rx-test:	sip-rx-test.o ${LIBSIP}
	${CC} ${CFLAGS} -o $@ $@.o ${LIBSIP}

sip-udp-dump:	sip-udp-dump.c
	${CC} ${CFLAGS} -o $@ $@.c

themwi-check-own:	themwi-check-own.o ${LIBNUMDB} ${LIBUTIL}
	${CC} ${CFLAGS} -o $@ $@.o ${LIBNUMDB} ${LIBUTIL}

themwi-dump-numdb:	themwi-dump-numdb.c
	${CC} ${CFLAGS} -o $@ $@.c

themwi-short-dial:	themwi-short-dial.o ${LIBNUMDB} ${LIBUTIL}
	${CC} ${CFLAGS} -o $@ $@.o ${LIBNUMDB} ${LIBUTIL}

themwi-update-numdb:	themwi-update-numdb.o ${LIBUTIL}
	${CC} ${CFLAGS} -o $@ $@.o ${LIBUTIL}

themwi-update-outrt:	themwi-update-outrt.o ${LIBUTIL}
	${CC} ${CFLAGS} -o $@ $@.o ${LIBUTIL}

install:
	install -c -o bin -g bin -m 755 ${PROGS} ${INSTBIN}

clean:
	rm -f *.o ${PROGS} ${NOINST} errs