Following on from this post I wired up a way to record audio on an iphone (the important design points quoted here):
The iPhone as well as other mobiles will apply a DC voltage about 1.5-2.5V to the microphone. The objective of this is twofold: it serves the iPhone as a way to measure the external DC impedance of the microphone and also powers the preamplifier built into many miniature electret microphones.
and
Thx to this thread i found the solution in the missing impedance on the line signal path. When plugging in the headphone jack, I could see the Iphone was providing 2.8 V for about 1 s to detect the impedance of the microphone. I added a 2.1 kOhm resistor between mic+ and ground and now the Iphone switches to external input and does not switch back.
As you can see from the image, I had a go at this and had initial success. Using the resistor to trigger the iphone to prompt "Headset or Speakers". The variable resistor was to adjust for a range of input levels. I was able to record audio on my iPhone successfully on several occassions. I didn't use the device for about 4 months, and now it doesn't work. I get the prompt "Headset or Speakers" but the iphone then just records on its own internal microphone regardless. I haven't been able to figure it out. The lavellier microphone works correctly as expected (shown in image)

