mgcp: Disable output enabled on initialisation

Currently RTP output_enabled is set to 1 on initialisation, which
does not semantically match the initial value of conn_mode
(MGCP_CONN_NONE).

This patch changes this initial value to 0.

Sponsored-by: On-Waves ehf
This commit is contained in:
Jacob Erlbeck 2014-01-16 16:50:39 +01:00 committed by Holger Hans Peter Freyther
parent 94bc1e0b5e
commit 8857c90e36
2 changed files with 3 additions and 3 deletions

View File

@ -1258,7 +1258,7 @@ static void mgcp_rtp_end_reset(struct mgcp_rtp_end *end)
end->frames_per_packet = 0; /* unknown */
end->packet_duration_ms = DEFAULT_RTP_AUDIO_PACKET_DURATION_MS;
end->rate = DEFAULT_RTP_AUDIO_DEFAULT_RATE;
end->output_enabled = 1;
end->output_enabled = 0;
}
static void mgcp_rtp_end_init(struct mgcp_rtp_end *end)

View File

@ -51,7 +51,7 @@ Connection mode: 2, BTS output disabled, NET output enabled
Testing DLCX
Detected packet duration: 20
Requested packetization period not set
Connection mode: 0, BTS output enabled, NET output enabled
Connection mode: 0, BTS output disabled, NET output disabled
Testing CRCX_ZYN
Dummy packets: 1
Packet duration not set
@ -67,7 +67,7 @@ Testing RQNT2
Testing DLCX
Detected packet duration: 20
Requested packetization period not set
Connection mode: 0, BTS output enabled, NET output enabled
Connection mode: 0, BTS output disabled, NET output disabled
Testing CRCX
Re-transmitting CRCX
Testing RQNT1