path: root/tests/io
diff options
authorVadim Yanitskiy <>2018-07-09 20:09:50 +0700
committerVadim Yanitskiy <>2018-07-09 22:16:45 +0700
commit89c1082b3d500e20346da8149e3a668b25495f11 (patch)
treecde53e9ead7bd480873933f27c2dd65207ab7c17 /tests/io
parent62717b6375dfcc39cdb3f70f9ca7127074009c73 (diff)
Make RTP payload type configurable
For a long time the RTP payload type was hard-coded for outgoing frames. The problem is that according to RFC 3551 only GSM FR has a static payload type value (see table 4, value 3). For other codecs the payload type may be negotiated between the both sides dynamically (i.e. in range 96-127). Let's allow a binary/API user to configure this manually. Change-Id: Ia07ed4e13b4a70c8bb4181564a8190861fd269da Closes: OS#2482
Diffstat (limited to 'tests/io')
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/io/pq_rtp_test.c b/tests/io/pq_rtp_test.c
index 2c1bd41..76f59d2 100644
--- a/tests/io/pq_rtp_test.c
+++ b/tests/io/pq_rtp_test.c
@@ -173,7 +173,7 @@ static int init_gen_queue(struct osmo_gapk_pq *pq,
/* Init an RTP sink */
- rc = osmo_gapk_pq_queue_rtp_output(pq, state->rtp_dst_fd, payload_len);
+ rc = osmo_gapk_pq_queue_rtp_output(pq, state->rtp_dst_fd, payload_len, 0x00);
if (rc) {
printf("Could not init an RTP sink\n");
return rc;
@@ -210,7 +210,7 @@ static int init_chk_queue(struct osmo_gapk_pq *pq,
/* Init an RTP source on any available port */
- rc = osmo_gapk_pq_queue_rtp_input(pq, state->rtp_src_fd, payload_len);
+ rc = osmo_gapk_pq_queue_rtp_input(pq, state->rtp_src_fd, payload_len, 0x00);
if (rc) {
printf("Could not init an RTP sink\n");
return rc;