This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
Harald Welte gerrit-no-reply at lists.osmocom.orgReview at https://gerrit.osmocom.org/5145 Add a new osmo_rtp_set_source_desc() function to set the RTCP SDES items This allows the users of libosmotrau to set the content of the SDES items to something more useful than their compile-time defaults. Change-Id: Ice794f9e0c6caeea1c67520c12efbfa375d1fb82 Related: OS#2701 --- M TODO-RELEASE M include/osmocom/trau/osmo_ortp.h M src/trau/osmo_ortp.c 3 files changed, 14 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/libosmo-abis refs/changes/45/5145/1 diff --git a/TODO-RELEASE b/TODO-RELEASE index d0852fc..b02e1eb 100644 --- a/TODO-RELEASE +++ b/TODO-RELEASE @@ -7,3 +7,4 @@ # If any interfaces have been added since the last public release: c:r:a + 1. # If any interfaces have been removed or changed since the last public release: c:r:0. #library what description / commit summary line +libosmotrau addition New osmo_rtp_set_source_desc() wrapper around libortp diff --git a/include/osmocom/trau/osmo_ortp.h b/include/osmocom/trau/osmo_ortp.h index 578b1cb..5fb2960 100644 --- a/include/osmocom/trau/osmo_ortp.h +++ b/include/osmocom/trau/osmo_ortp.h @@ -100,5 +100,8 @@ uint32_t *recv_packets, uint32_t *recv_octets, uint32_t *recv_lost, uint32_t *last_jitter); +void osmo_rtp_set_source_desc(struct osmo_rtp_socket *rs, const char *cname, + const char *name, const char *email, const char *phone, + const char *loc, const char *tool, const char *note); #endif /* _OSMO_ORTP_H */ diff --git a/src/trau/osmo_ortp.c b/src/trau/osmo_ortp.c index fab020d..739e0c9 100644 --- a/src/trau/osmo_ortp.c +++ b/src/trau/osmo_ortp.c @@ -497,6 +497,9 @@ if (!mblk) return -ENOMEM; + LOGP(DLMIB, LOGL_DEBUG, "%s(rs=%p, len=%u, marker=%d, duration=%u, ts=%u\n", + __func__, rs, payload_len, marker, duration, rs->tx_timestamp); + rtp_set_markbit(mblk, marker); rc = rtp_session_sendm_with_ts(rs->sess, mblk, rs->tx_timestamp); @@ -655,3 +658,10 @@ if (jitter) *last_jitter = jitter->jitter; } + +void osmo_rtp_set_source_desc(struct osmo_rtp_socket *rs, const char *cname, + const char *name, const char *email, const char *phone, + const char *loc, const char *tool, const char *note) +{ + rtp_session_set_source_description(rs->sess, cname, name, email, phone, loc, tool, note); +} -- To view, visit https://gerrit.osmocom.org/5145 To unsubscribe, visit https://gerrit.osmocom.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ice794f9e0c6caeea1c67520c12efbfa375d1fb82 Gerrit-PatchSet: 1 Gerrit-Project: libosmo-abis Gerrit-Branch: master Gerrit-Owner: Harald Welte <laforge at gnumonks.org>