mgcp_network.c: Set proper CRC Header for ACK Initialization

Discovered while debugging wireshark CRC calculation and implementing
new IuUP code in libosmocore.

Change-Id: Ic8350d1f9a9e5dcefeb787462d267bfac08d778f
This commit is contained in:
Pau Espin 2021-12-16 16:11:06 +01:00
parent bc3f3b40fe
commit ebb05c1f90
1 changed files with 1 additions and 0 deletions

View File

@ -1225,6 +1225,7 @@ int mgcp_send(struct mgcp_endpoint *endp, int is_rtp, struct osmo_sockaddr *addr
if (data[0] == 0xe0) {
data[0] = 0xe4;
data[1] = 0x00;
data[2] = 0x09; /* Patch CRC Header to adapt to new header above */
rtp_state->patched_first_rtp_payload = true;
LOGPENDP(endp, DRTP, LOGL_DEBUG,
"Patching over first two bytes"