aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2022-07-19 12:16:02 +0200
committerlaforge <laforge@osmocom.org>2022-12-23 14:54:26 +0000
commit01431080a3579d7c3863c6c3e4cb43a9a80cf147 (patch)
treed90098e87263801db3612860725a37b0278b6a14 /include
parent038e3d6426dbee877312c87a24c79188119142b2 (diff)
sdp_msg.c: parse send/recv mode
Diffstat (limited to 'include')
-rw-r--r--include/osmocom/msc/sdp_msg.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/osmocom/msc/sdp_msg.h b/include/osmocom/msc/sdp_msg.h
index cf1e56055..1b905b7ef 100644
--- a/include/osmocom/msc/sdp_msg.h
+++ b/include/osmocom/msc/sdp_msg.h
@@ -9,6 +9,14 @@ static inline const char *sdp_msg_payload_type_name(unsigned int payload_type)
{ return get_value_string(sdp_msg_payload_type_names, payload_type); }
int sdp_subtype_name_to_payload_type(const char *subtype_name);
+enum sdp_mode_e {
+ SDP_MODE_UNSET = 0,
+ SDP_MODE_SENDONLY = 1,
+ SDP_MODE_RECVONLY = 2,
+ SDP_MODE_SENDRECV = 3,
+ SDP_MODE_INACTIVE = 4,
+};
+
struct sdp_audio_codec {
/* Payload type number, like 3 for GSM-FR. */
unsigned int payload_type;
@@ -26,6 +34,7 @@ struct sdp_audio_codecs {
struct sdp_msg {
struct osmo_sockaddr_str rtp;
unsigned int ptime;
+ enum sdp_mode_e mode;
struct sdp_audio_codecs audio_codecs;
};