aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@soleta.eu>2015-07-17 21:20:43 +0200
committerPablo Neira Ayuso <pablo@soleta.eu>2015-07-17 22:03:31 +0200
commitf67d1126aba76337b9b7d9100464c05bd28732a6 (patch)
treed6d6e3c3f0acfdd3abf9290dfa284b40732d730f
parentc55d867508c8ddb93a822c018b5ce5a9a72006aa (diff)
osmux: discard non voice osmux message
We only support voice osmux messages by now. Discard unsupported types.
-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);