mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-11-02 04:53:24 +00:00
Add new noinst-library libosmo-sdp.la. It will be used by - osmo-mgw - libosmo-mgcp-client - callers of libosmo-mgcp-client may use SDP message parsing (osmo-msc) The API will, with upcoming patches: - parse and compose SDP fmtp strings - manage SDP codecs and codec lists (like 'AMR:octet-align=1#112') - parse and compose entire SDP messages In this patch: parse and compose SDP fmtp strings. Add libosmo-sdp build fu. Add sdp/fmtp.h and sdp/sdp_strings.h. Add tests/sdp/sdp_fmtp_test.c. Change-Id: I6128852f4d249e90319f43d6cd6ed0a9a2ed0430
15 lines
546 B
Plaintext
15 lines
546 B
Plaintext
|
|
--- test_get_val()
|
|
osmo_sdp_fmtp_get_val('foo=123;bar=success;baz=456', 'foo') rc=true val='123' ok
|
|
osmo_sdp_fmtp_get_val('foo=123;bar=success;baz=456', 'bar') rc=true val='success' ok
|
|
osmo_sdp_fmtp_get_val('foo=123;bar=success;baz=456', 'baz') rc=true val='456' ok
|
|
|
|
--- test_get_val() DONE
|
|
|
|
--- test_get_int()
|
|
osmo_sdp_fmtp_get_int('foo=123;bar=success;baz=456', 'foo') rc=123 ok
|
|
osmo_sdp_fmtp_get_int('foo=123;bar=success;baz=456', 'bar') rc=-1 ok
|
|
osmo_sdp_fmtp_get_int('foo=123;bar=success;baz=456', 'baz') rc=456 ok
|
|
|
|
--- test_get_int() DONE
|