Eggs are usually laid in a packet called an ootheca. The ootheca is formed in the female and as it exits it is stamped into shape by the ovipositor valves (rather like a snackwich maker gives toasted bread those troughs and ridges), and hardens on being exposed to air. The shape of the ootheca is often species specific.