mirror of
				https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
				synced 2025-11-03 21:43:32 +00:00 
			
		
		
		
	mgcp: Fix the reversed net/bts... which has not cause any issue..
This commit is contained in:
		@@ -238,7 +238,7 @@ static int rtp_data_cb(struct bsc_fd *fd, unsigned int what)
 | 
				
			|||||||
	if (dest == DEST_NETWORK) {
 | 
						if (dest == DEST_NETWORK) {
 | 
				
			||||||
		if (proto == PROTO_RTP)
 | 
							if (proto == PROTO_RTP)
 | 
				
			||||||
			patch_and_count(endp, &endp->bts_state,
 | 
								patch_and_count(endp, &endp->bts_state,
 | 
				
			||||||
					endp->net_payload_type,
 | 
										endp->bts_payload_type,
 | 
				
			||||||
					&addr, buf, rc);
 | 
										&addr, buf, rc);
 | 
				
			||||||
		return udp_send(fd->fd, &endp->remote,
 | 
							return udp_send(fd->fd, &endp->remote,
 | 
				
			||||||
			     proto == PROTO_RTP ? endp->net_rtp : endp->net_rtcp,
 | 
								     proto == PROTO_RTP ? endp->net_rtp : endp->net_rtcp,
 | 
				
			||||||
@@ -246,7 +246,7 @@ static int rtp_data_cb(struct bsc_fd *fd, unsigned int what)
 | 
				
			|||||||
	} else {
 | 
						} else {
 | 
				
			||||||
		if (proto == PROTO_RTP)
 | 
							if (proto == PROTO_RTP)
 | 
				
			||||||
			patch_and_count(endp, &endp->net_state,
 | 
								patch_and_count(endp, &endp->net_state,
 | 
				
			||||||
					endp->bts_payload_type,
 | 
										endp->net_payload_type,
 | 
				
			||||||
					&addr, buf, rc);
 | 
										&addr, buf, rc);
 | 
				
			||||||
		return udp_send(fd->fd, &endp->bts,
 | 
							return udp_send(fd->fd, &endp->bts,
 | 
				
			||||||
			     proto == PROTO_RTP ? endp->bts_rtp : endp->bts_rtcp,
 | 
								     proto == PROTO_RTP ? endp->bts_rtp : endp->bts_rtcp,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user