diff --git a/daemon/.gitignore b/daemon/.gitignore index fc91c5159..d92e6dbff 100644 --- a/daemon/.gitignore +++ b/daemon/.gitignore @@ -17,3 +17,4 @@ streambuf.c ssllib.c dtmflib.c *-test +dtmf_rx_fillin.h diff --git a/daemon/Makefile b/daemon/Makefile index 35adf4a2a..91b7edc7a 100644 --- a/daemon/Makefile +++ b/daemon/Makefile @@ -139,4 +139,8 @@ MANS= $(PODS:.pod=.8) include ../lib/common.Makefile +ifeq ($(with_transcoding),yes) +.depend: dtmf_rx_fillin.h +endif + include .depend diff --git a/daemon/codec.c b/daemon/codec.c index e6d7c6b3f..c88c90c0b 100644 --- a/daemon/codec.c +++ b/daemon/codec.c @@ -17,6 +17,7 @@ #include "dtmf.h" #include "resample.h" #include "dtmflib.h" +#include "dtmf_rx_fillin.h" diff --git a/lib/common.Makefile b/lib/common.Makefile index 86c9707ff..d9454fd7d 100644 --- a/lib/common.Makefile +++ b/lib/common.Makefile @@ -11,7 +11,7 @@ debug: dep: .depend -BUILD_TEST_ALTS = fix_frame_channel_layout.h +BUILD_TEST_ALTS = fix_frame_channel_layout.h dtmf_rx_fillin.h clean: rm -f $(OBJS) $(TARGET) $(LIBSRCS) $(DAEMONSRCS) $(MANS) $(ADD_CLEAN) .depend core core.* diff --git a/lib/dtmf_rx_fillin-01.h b/lib/dtmf_rx_fillin-01.h new file mode 100644 index 000000000..ce062b0e1 --- /dev/null +++ b/lib/dtmf_rx_fillin-01.h @@ -0,0 +1,7 @@ +#include +#include +#include +#include +#include +#include +#include diff --git a/lib/dtmf_rx_fillin-02.h b/lib/dtmf_rx_fillin-02.h new file mode 100644 index 000000000..0d5528b64 --- /dev/null +++ b/lib/dtmf_rx_fillin-02.h @@ -0,0 +1,12 @@ +#include +#include +#include +#include +#include +#include +#include +#include "compat.h" + +INLINE void dtmf_rx_fillin(dtmf_rx_state_t *dsp, int n) { + // stub +} diff --git a/lib/dtmf_rx_fillin-test.c b/lib/dtmf_rx_fillin-test.c new file mode 100644 index 000000000..28ddda527 --- /dev/null +++ b/lib/dtmf_rx_fillin-test.c @@ -0,0 +1,6 @@ +#include "dtmf_rx_fillin.h" +int main(void) { + dtmf_rx_state_t *dsp = NULL; + dtmf_rx_fillin(dsp, 0); + return 0; +} diff --git a/t/.gitignore b/t/.gitignore index bf2a12647..bcf4c6fdc 100644 --- a/t/.gitignore +++ b/t/.gitignore @@ -51,3 +51,4 @@ media_player.c dtmflib.c test-dtmf-detect *-test +dtmf_rx_fillin.h diff --git a/t/Makefile b/t/Makefile index effb90920..2b39a551e 100644 --- a/t/Makefile +++ b/t/Makefile @@ -133,3 +133,7 @@ const_str_hash-test.strhash: const_str_hash-test.strhash.o $(COMMONOBJS) tests-preload.so: tests-preload.c $(CC) -g -D_GNU_SOURCE -std=c99 -o $@ -Wall -shared -fPIC $< + +ifeq ($(with_transcoding),yes) +.depend: dtmf_rx_fillin.h +endif