MGCP_Test: add control interface to MGW testsuite

The testsuite for osmo-mgw does not use the control interface yet.

Change-Id: I7324802bf6e692ce8b7d9b269dd2385a7d3d0d77
diff --git a/mgw/MGCP_Test.ttcn b/mgw/MGCP_Test.ttcn
index b0891f5..b5b91f0 100644
--- a/mgw/MGCP_Test.ttcn
+++ b/mgw/MGCP_Test.ttcn
@@ -34,6 +34,9 @@
 	import from StatsD_CodecPort all;
 	import from StatsD_CodecPort_CtrlFunct all;
 	import from StatsD_Checker all;
+	import from Osmocom_CTRL_Functions all;
+	import from Osmocom_CTRL_Types all;
+	import from Osmocom_CTRL_Adapter all;
 
 	const charstring c_mgw_domain := "mgw";
 	const charstring c_mgw_ep_rtpbridge := "rtpbridge/";
@@ -41,7 +44,7 @@
 	/* any variables declared in the component will be available to
 	 * all functions that 'run on' the named component, similar to
 	 * class members in C++ */
-	type component dummy_CT extends StatsD_ConnHdlr {
+	type component dummy_CT extends StatsD_ConnHdlr, CTRL_Adapter_CT {
 		port MGCP_CODEC_PT MGCP;
 		var boolean initialized := false;
 		var ConnectionId g_mgcp_conn_id := -1;
@@ -78,6 +81,7 @@
 		PortNumber mp_local_rtp_port_base := 10000;
 		PortNumber mp_local_osmux_port := 1985;
 		PortNumber mp_mgw_statsd_port := 8125;
+		PortNumber mp_mgw_ctrl_port := 4267;
 	}
 
 	private function f_vty_enable_osmux(boolean osmux_on) runs on dummy_CT {
@@ -155,6 +159,8 @@
 			f_statsd_reset();
 		}
 
+		f_ipa_ctrl_start_client(mp_remote_ipv4, mp_mgw_ctrl_port);
+
 		if (isvalue(ep)) {
 			/* do a DLCX on all connections of the EP */
 			f_dlcx_ignore(valueof(ep));