Projects
osmocom:master
osmo-msc
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 18
View file
osmo-msc.spec
Changed
@@ -19,13 +19,13 @@ %define with_iu 1 Name: osmo-msc Requires: osmocom-master -Version: 1.9.0.50.038e3 +Version: 1.9.0.51.014310 Release: 0 Summary: Osmocom's MSC for 2G and 3G circuit-switched mobile networks License: AGPL-3.0-or-later AND GPL-2.0-only Group: Productivity/Telephony/Servers URL: https://osmocom.org/projects/osmomsc -Source: osmo-msc_1.9.0.50.038e3.tar.xz +Source: osmo-msc_1.9.0.51.014310.tar.xz Source1: rpmlintrc BuildRequires: autoconf BuildRequires: automake
View file
commit_01431080a3579d7c3863c6c3e4cb43a9a80cf147.txt
Added
View file
commit_038e3d6426dbee877312c87a24c79188119142b2.txt
Deleted
View file
osmo-msc_1.9.0.50.038e3.dsc -> osmo-msc_1.9.0.51.014310.dsc
Changed
@@ -2,7 +2,7 @@ Source: osmo-msc Binary: osmo-msc, osmo-msc-dbg, osmo-msc-doc Architecture: any all -Version: 1.9.0.50.038e3 +Version: 1.9.0.51.014310 Maintainer: Osmocom team <openbsc@lists.osmocom.org> Homepage: https://osmocom.org/projects/osmomsc Standards-Version: 3.9.8 @@ -14,8 +14,8 @@ osmo-msc-dbg deb debug extra arch=any osmo-msc-doc deb doc optional arch=all Checksums-Sha1: - 9e577cd2d945bfc4ac423036013500e95759d44f 337772 osmo-msc_1.9.0.50.038e3.tar.xz + 86fff9720550fcfa2a345875255aa9360b485555 337944 osmo-msc_1.9.0.51.014310.tar.xz Checksums-Sha256: - 85bdae74dfc4141db8cf47314c36e4715d841927d5fe7c541109fb3f32edcc94 337772 osmo-msc_1.9.0.50.038e3.tar.xz + a40363f535e9221ab61274cbc2ec2f2e0bc1d69caf6d1bf15bca46733638618b 337944 osmo-msc_1.9.0.51.014310.tar.xz Files: - 86af768821d3340170cd8ece1a71cd57 337772 osmo-msc_1.9.0.50.038e3.tar.xz + 55b65c6da78c0e0b6f963b3eee514fea 337944 osmo-msc_1.9.0.51.014310.tar.xz
View file
osmo-msc_1.9.0.50.038e3.tar.xz/.tarball-version -> osmo-msc_1.9.0.51.014310.tar.xz/.tarball-version
Changed
@@ -1 +1 @@ -1.9.0.50-038e3 +1.9.0.51-014310
View file
osmo-msc_1.9.0.50.038e3.tar.xz/debian/changelog -> osmo-msc_1.9.0.51.014310.tar.xz/debian/changelog
Changed
@@ -1,8 +1,8 @@ -osmo-msc (1.9.0.50.038e3) unstable; urgency=medium +osmo-msc (1.9.0.51.014310) unstable; urgency=medium * Automatically generated changelog entry for building the Osmocom master feed - -- Osmocom OBS scripts <info@osmocom.org> Thu, 22 Dec 2022 09:43:01 +0000 + -- Osmocom OBS scripts <info@osmocom.org> Fri, 23 Dec 2022 15:01:02 +0000 osmo-msc (1.9.0) unstable; urgency=medium
View file
osmo-msc_1.9.0.50.038e3.tar.xz/include/osmocom/msc/sdp_msg.h -> osmo-msc_1.9.0.51.014310.tar.xz/include/osmocom/msc/sdp_msg.h
Changed
@@ -9,6 +9,14 @@ { 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_msg { struct osmo_sockaddr_str rtp; unsigned int ptime; + enum sdp_mode_e mode; struct sdp_audio_codecs audio_codecs; };
View file
osmo-msc_1.9.0.50.038e3.tar.xz/src/libmsc/sdp_msg.c -> osmo-msc_1.9.0.51.014310.tar.xz/src/libmsc/sdp_msg.c
Changed
@@ -227,6 +227,14 @@ return 0; } +static const char * const sdp_mode_str = { + SDP_MODE_UNSET = "-", + SDP_MODE_SENDONLY = "sendonly", + SDP_MODE_RECVONLY = "recvonly", + SDP_MODE_SENDRECV = "sendrecv", + SDP_MODE_INACTIVE = "inactive", +}; + /* Convert struct sdp_msg to the actual SDP protocol representation */ int sdp_msg_to_sdp_str_buf(char *dst, size_t dst_size, const struct sdp_msg *sdp) { @@ -271,6 +279,9 @@ OSMO_STRBUF_PRINTF(sb, "a=ptime:%d\r\n", sdp->ptime > 0? sdp->ptime : 20); + if (sdp->mode != SDP_MODE_UNSET && sdp->mode < ARRAY_SIZE(sdp_mode_str)) + OSMO_STRBUF_PRINTF(sb, "a=%s\r\n", sdp_mode_strsdp->mode); + return sb.chars_needed; } @@ -296,9 +307,6 @@ #define A_FMTP "fmtp:" #define A_PTIME "ptime:" #define A_RTCP "rtcp:" -#define A_SENDRECV "sendrecv" -#define A_SENDONLY "sendonly" -#define A_RECVONLY "recvonly" if (osmo_str_startswith(src, A_RTPMAP)) { /* "a=rtpmap:3 GSM/8000" */ @@ -355,19 +363,24 @@ /* TODO? */ } - else if (osmo_str_startswith(src, A_SENDRECV)) { + else if (osmo_str_startswith(src, sdp_mode_strSDP_MODE_SENDRECV)) { /* "a=sendrecv" */ - /* TODO? */ + sdp->mode = SDP_MODE_SENDRECV; } - else if (osmo_str_startswith(src, A_SENDONLY)) { + else if (osmo_str_startswith(src, sdp_mode_strSDP_MODE_SENDONLY)) { /* "a=sendonly" */ - /* TODO? */ + sdp->mode = SDP_MODE_SENDONLY; } - else if (osmo_str_startswith(src, A_RECVONLY)) { + else if (osmo_str_startswith(src, sdp_mode_strSDP_MODE_RECVONLY)) { /* "a=recvonly" */ - /* TODO? */ + sdp->mode = SDP_MODE_RECVONLY; + } + + else if (osmo_str_startswith(src, sdp_mode_strSDP_MODE_INACTIVE)) { + /* "a=inactive" */ + sdp->mode = SDP_MODE_INACTIVE; } return 0;
View file
osmo-msc_1.9.0.50.038e3.tar.xz/tests/sdp_msg/sdp_msg_test.c -> osmo-msc_1.9.0.51.014310.tar.xz/tests/sdp_msg/sdp_msg_test.c
Changed
@@ -61,6 +61,7 @@ "a=rtpmap:101 telephone-event/8000\r\n" "a=fmtp:101 0-15\r\n" "a=ptime:20\r\n" + "a=sendrecv\r\n" , }, { @@ -116,6 +117,7 @@ "a=rtpmap:101 telephone-event/8000\r\n" "a=fmtp:101 0-15\r\n" "a=ptime:20\r\n" + "a=sendrecv\r\n" , }, };
View file
osmo-msc_1.9.0.50.038e3.tar.xz/tests/sdp_msg/sdp_msg_test.ok -> osmo-msc_1.9.0.51.014310.tar.xz/tests/sdp_msg/sdp_msg_test.ok
Changed
@@ -42,6 +42,7 @@ sdp_msg_to_sdp_str_buf: a=rtpmap:101 telephone-event/8000\r\n sdp_msg_to_sdp_str_buf: a=fmtp:101 0-15\r\n sdp_msg_to_sdp_str_buf: a=ptime:20\r\n +sdp_msg_to_sdp_str_buf: a=sendrecv\r\n 0 ok 1 @@ -95,6 +96,7 @@ sdp_msg_to_sdp_str_buf: a=rtpmap:101 telephone-event/8000\r\n sdp_msg_to_sdp_str_buf: a=fmtp:101 0-15\r\n sdp_msg_to_sdp_str_buf: a=ptime:20\r\n +sdp_msg_to_sdp_str_buf: a=sendrecv\r\n 2 ok
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.