mirror of
				https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
				synced 2025-11-04 05:53:26 +00:00 
			
		
		
		
	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:
		@@ -1225,6 +1225,7 @@ int mgcp_send(struct mgcp_endpoint *endp, int is_rtp, struct osmo_sockaddr *addr
 | 
				
			|||||||
				if (data[0] == 0xe0) {
 | 
									if (data[0] == 0xe0) {
 | 
				
			||||||
					data[0] = 0xe4;
 | 
										data[0] = 0xe4;
 | 
				
			||||||
					data[1] = 0x00;
 | 
										data[1] = 0x00;
 | 
				
			||||||
 | 
										data[2] = 0x09; /* Patch CRC Header to adapt to new header above */
 | 
				
			||||||
					rtp_state->patched_first_rtp_payload = true;
 | 
										rtp_state->patched_first_rtp_payload = true;
 | 
				
			||||||
					LOGPENDP(endp, DRTP, LOGL_DEBUG,
 | 
										LOGPENDP(endp, DRTP, LOGL_DEBUG,
 | 
				
			||||||
						 "Patching over first two bytes"
 | 
											 "Patching over first two bytes"
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user