diff options
author | Oliver Smith <osmith@sysmocom.de> | 2020-04-27 16:58:02 +0200 |
---|---|---|
committer | Oliver Smith <osmith@sysmocom.de> | 2020-04-30 10:05:39 +0200 |
commit | 2d24cd48c98ab20c39196eebb722db7c820341e6 (patch) | |
tree | c0cf7694728d003841fa273094a81246efb97835 /rtpsource/internal.h | |
parent | fb046ebc9ef7ed90d3674d1bc4ce9559aa596316 (diff) |
rtpsource: CTRL call rtp_create: add codec arg
Instead of hardcoding FR in rtpsource, add an argument to set the codec
from mncc_mt_loadgen.py via CTRL call rtp_create. Hardcode FR in
mncc_mt_loadgen.py for now, a follow up patch will make it configurable
there, too.
Related: SYS#4924
Change-Id: If75e902b451d7e202a03e93afcd55bd24f517813
Diffstat (limited to 'rtpsource/internal.h')
-rw-r--r-- | rtpsource/internal.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/rtpsource/internal.h b/rtpsource/internal.h index a4501a2..35f12d0 100644 --- a/rtpsource/internal.h +++ b/rtpsource/internal.h @@ -4,6 +4,8 @@ #include <osmocom/trau/osmo_ortp.h> #include <osmocom/ctrl/control_if.h> +enum codec_type; + enum { DMAIN, }; @@ -36,7 +38,7 @@ extern struct rtpsource_state *g_rss; struct rtp_connection *find_connection_by_cname(struct rtpsource_state *rss, const char *cname); -struct rtp_connection *create_connection(struct rtpsource_state *rss, const char *cname); +struct rtp_connection *create_connection(struct rtpsource_state *rss, const char *cname, enum codec_type codec); int connect_connection(struct rtp_connection *conn, const char *remote_host, uint16_t remote_port, uint8_t pt); |