From f67d1126aba76337b9b7d9100464c05bd28732a6 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Fri, 17 Jul 2015 21:20:43 +0200 Subject: osmux: discard non voice osmux message We only support voice osmux messages by now. Discard unsupported types. --- src/osmux.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/osmux.c b/src/osmux.c index eb2c683..a3eccaa 100644 --- a/src/osmux.c +++ b/src/osmux.c @@ -65,6 +65,11 @@ struct osmux_hdr *osmux_xfrm_output_pull(struct msgb *msg) osmuxh = (struct osmux_hdr *)msg->data; + if (osmuxh->ft != OSMUX_FT_VOICE_AMR) { + LOGP(DLMIB, LOGL_ERROR, "Discarding unsupported Osmux FT %d\n", + osmuxh->ft); + return NULL; + } if (!osmo_amr_ft_valid(osmuxh->amr_ft)) { LOGP(DLMIB, LOGL_ERROR, "Discarding bad AMR FT %d\n", osmuxh->amr_ft); -- cgit v1.2.3