Introduce MGCP_CodecPort on top of UDP port
diff --git a/mgw/MGCP_CodecPort.ttcn b/mgw/MGCP_CodecPort.ttcn
new file mode 100644
index 0000000..22f71cf
--- /dev/null
+++ b/mgw/MGCP_CodecPort.ttcn
@@ -0,0 +1,45 @@
+module MGCP_CodecPort {
+
+	import from IPL4asp_PortType all;
+	import from IPL4asp_Types all;
+	import from MGCP_Types all;
+
+	type record MGCP_RecvFrom {
+		ConnectionId	connId,
+		HostName	remName,
+		PortNumber	remPort,
+		HostName	locName,
+		PortNumber	locPort,
+		MgcpMessage	msg
+	}
+
+	type record MGCP_Send {
+		ConnectionId	connId,
+		MgcpMessage	msg
+	}
+
+	private function IPL4_to_MGCP_RecvFrom(in ASP_RecvFrom pin, out MGCP_RecvFrom pout) {
+		pout.connId := pin.connId;
+		pout.remName := pin.remName;
+		pout.remPort := pin.remPort;
+		pout.locName := pin.locName;
+		pout.locPort := pin.locPort;
+		pout.msg := dec_MgcpMessage(oct2char(pin.msg));
+	} with { extension "prototype(fast)" };
+
+	private function MGCP_to_IPL4_Send(in MGCP_Send pin, out ASP_Send pout) {
+		pout.connId := pin.connId;
+		pout.proto := { udp := {} };
+		pout.msg := char2oct(enc_MgcpMessage(pin.msg));
+	} with { extension "prototype(fast)" };
+
+	type port MGCP_CODEC_PT message {
+		out	MGCP_Send;
+		in	MGCP_RecvFrom,
+			ASP_Event;
+	} with { extension "user IPL4asp_PT
+		out(MGCP_Send -> ASP_Send:function(MGCP_to_IPL4_Send))
+		in(ASP_RecvFrom -> MGCP_RecvFrom: function(IPL4_to_MGCP_RecvFrom);
+		   ASP_Event -> ASP_Event: simple)"
+	}
+}