mirror of
				https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
				synced 2025-11-04 05:53:26 +00:00 
			
		
		
		
	mgcp/test: Don't reset conn_mode between messages
Currently, the conn_mode field is reset after it has been checked. This patch disables this behaviour and only adds a mark (bit) to detect modifications. Sponsored-by: On-Waves ehf
This commit is contained in:
		
				
					committed by
					
						
						Holger Hans Peter Freyther
					
				
			
			
				
	
			
			
			
						parent
						
							e35fd13697
						
					
				
				
					commit
					ead0529e07
				
			@@ -416,9 +416,7 @@ static void test_messages(void)
 | 
			
		||||
			endp->net_end.packet_duration_ms = -1;
 | 
			
		||||
			endp->local_options.pkt_period_min = 0;
 | 
			
		||||
			endp->local_options.pkt_period_max = 0;
 | 
			
		||||
			endp->conn_mode = MGCP_CONN_NONE | CONN_UNMODIFIED;
 | 
			
		||||
			endp->net_end.output_enabled = 0;
 | 
			
		||||
			endp->bts_end.output_enabled = 0;
 | 
			
		||||
			endp->conn_mode |= CONN_UNMODIFIED;
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -21,6 +21,7 @@ Detected packet duration: 40
 | 
			
		||||
Requested packetetization period: 20-20
 | 
			
		||||
Connection mode: 1, BTS output enabled, NET output disabled
 | 
			
		||||
Testing MDCX3
 | 
			
		||||
Dummy packets: 1
 | 
			
		||||
Packet duration not set
 | 
			
		||||
Requested packetization period not set
 | 
			
		||||
Connection mode not set
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user