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:
Jacob Erlbeck 2014-01-16 16:50:41 +01:00 committed by Holger Hans Peter Freyther
parent e35fd13697
commit ead0529e07
2 changed files with 2 additions and 3 deletions

View File

@ -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;
}

View File

@ -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