aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/osmux.c5
1 files changed, 5 insertions, 0 deletions
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);