aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmo-bts/rtp_input_preen.h
blob: 744ae2a9be38b7f2ab3e2a001f67a35eeebc253c (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, bool *rfc5993_sid_flag);