aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmo-bts/rtp_input_preen.h
blob: 822ee4a48ebe1e49022121c4ca6593d19e184f27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
 * RTP input validation function: makes the accept-or-drop decision,
 * and for some codecs signals additional required actions such as
 * dropping one header octet.
 */

#pragma once

#include <stdint.h>
#include <osmo-bts/lchan.h>

enum pl_input_decision {
	PL_DECISION_DROP,
	PL_DECISION_ACCEPT,
	PL_DECISION_STRIP_HDR_OCTET,
};

enum pl_input_decision
rtp_payload_input_preen(struct gsm_lchan *lchan, const uint8_t *rtp_pl,
			unsigned rtp_pl_len);