mgcp_network.c: Fix byte alignment of CRC Header for ACK Initialization
The Header CRC field is 6 bits, not 8, and spans bits 7-2.
Fixes: ebb05c1f90
Change-Id: I9a8179813d451948bfa02443894fdd2313dfc4a0
This commit is contained in:
parent
b4a067c9fb
commit
e308202285
|
@ -1225,7 +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 */
|
||||
data[2] = (0x09 << 2); /* 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"
|
||||
|
|
Loading…
Reference in New Issue