aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/msc
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2022-01-13 18:28:44 +0100
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2022-07-25 14:25:07 +0200
commitc9e0ca3d1f8a56a742771b1d9e483ae6f2f38276 (patch)
tree6c46ef474e1c5226f53aeb6e52ea69d2975bcd44 /include/osmocom/msc
parent99ab7c57dabde2bb6936eac9c8eabf2d4a11fc5d (diff)
sdp_msg: add sdp_audio_codecs_cmp(), add compare flags
A problem with SDP fmtp handling is visible in this patch: when cmp_fmtp is true, we compare fmtp strings 1:1, which is not how things should be done. The intention is to fix fmtp handling in a later patch. At least there now is a flag to bypass fmtp comparison altogether. Related: SYS#5066 Change-Id: I18d33e189674229501afec950aa1c732386455a2
Diffstat (limited to 'include/osmocom/msc')
-rw-r--r--include/osmocom/msc/sdp_msg.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/osmocom/msc/sdp_msg.h b/include/osmocom/msc/sdp_msg.h
index 44a8a309c..537713c76 100644
--- a/include/osmocom/msc/sdp_msg.h
+++ b/include/osmocom/msc/sdp_msg.h
@@ -36,7 +36,10 @@ struct sdp_msg {
const char *sdp_msg_line_end(const char *src);
-int sdp_audio_codec_cmp(const struct sdp_audio_codec *a, const struct sdp_audio_codec *b);
+int sdp_audio_codec_cmp(const struct sdp_audio_codec *a, const struct sdp_audio_codec *b,
+ bool cmp_fmtp, bool cmp_payload_type);
+int sdp_audio_codecs_cmp(const struct sdp_audio_codecs *a, const struct sdp_audio_codecs *b,
+ bool cmp_fmtp, bool cmp_payload_type);
struct sdp_audio_codec *sdp_audio_codec_add(struct sdp_audio_codecs *ac, unsigned int payload_type,
const char *subtype_name, unsigned int rate, const char *fmtp);