diff options
author | Harald Welte <laforge@gnumonks.org> | 2017-12-03 10:00:16 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-12-03 11:03:50 +0100 |
commit | d1dd22c38e86f123c8f9a93c2789deafdfcb9265 (patch) | |
tree | ca285d80148a4da054cdeb4b68da2e3901da27a3 | |
parent | 2d4888dd08f5f340019ace5050a64a85dec57400 (diff) |
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
-rw-r--r-- | TODO-RELEASE | 1 | ||||
-rw-r--r-- | include/osmocom/trau/osmo_ortp.h | 3 | ||||
-rw-r--r-- | src/trau/osmo_ortp.c | 7 |
3 files changed, 11 insertions, 0 deletions
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 @@ void osmo_rtp_socket_stats(struct osmo_rtp_socket *rs, 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..8ea05e4 100644 --- a/src/trau/osmo_ortp.c +++ b/src/trau/osmo_ortp.c @@ -655,3 +655,10 @@ void osmo_rtp_socket_stats(struct osmo_rtp_socket *rs, 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); +} |