rtp: Use dynamic Payload Type 96

Change-Id: I6ca83c274200d8fc0fb3d8914e970b05df91f6ea
This commit is contained in:
Pau Espin 2021-12-15 17:19:12 +01:00
parent 7550ba3d05
commit 381c4cccc5
1 changed files with 8 additions and 0 deletions

View File

@ -193,6 +193,14 @@ int rtp_conn_setup(struct rtp_conn *conn, const struct osmo_sockaddr *rem_addr)
LOGUE(ue, DRTP, LOGL_ERROR, "Failed to set RTP socket parameters: %s\n", strerror(-rc));
goto free_ret;
}
/* TS 25.414 Section 5.1.3.3.1.6: A dynamic Payload Type (IETF RFC 1890
* [23]) shall be used. Values in the Range between 96 and 127 shall be
* used. The value shall be ignored in the receiving entity. */
rc = osmo_rtp_socket_set_pt(rs, 96);
if (rc < 0) {
LOGUE(ue, DRTP, LOGL_ERROR, "Failed to set RTP socket Payload-Type 96\n");
/* Continue, the other side is anyway ignoring it... */
}
rs->priv = conn;
rs->rx_cb = &rtp_rx_cb;