aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmsc/sdp_msg.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libmsc/sdp_msg.c')
-rw-r--r--src/libmsc/sdp_msg.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libmsc/sdp_msg.c b/src/libmsc/sdp_msg.c
index eda6ac9cc..e96235a5c 100644
--- a/src/libmsc/sdp_msg.c
+++ b/src/libmsc/sdp_msg.c
@@ -30,6 +30,11 @@
#include <osmocom/msc/debug.h>
#include <osmocom/msc/sdp_msg.h>
+bool sdp_audio_codec_is_set(const struct sdp_audio_codec *a)
+{
+ return a && a->subtype_name[0];
+}
+
/* Compare name, rate and fmtp, returning typical cmp result: 0 on match, and -1 / 1 on mismatch.
* If cmp_fmtp is false, do *not* compare the fmtp string; if true, compare fmtp 1:1 as strings.
* If cmp_payload_type is false, do *not* compare the payload_type number.