Also, i noticed that the issue is not restricted to automatic redials... it also causes my music to stop or start playing randomly whenever i have an earphone plugged into the phone. I'm using the HTC music app so i'm not sure if using another music app fixes this problem?
I have been researching about this problem and at first i thought it might be an issue with my phone in particular or the custom ROM that i am using (it's the latest ARHD which is pretty stable among all ROMs) but then i discovered that this is an HTC hardware issue which has plagued most of their phones. The problem has not been fixed with the M7, which is very sad since the M7 turned things around for HTC. It happens whenever the earphone jack gets nudged or receives a tiny shock which is enough to cause the wiring to short and act crazy!
I found a software solution although i am not sure if this will fix it.
Headset Button Controller
What are the optimal settings to use in that app to prevent this problem? Has anyone tried it?
This problem is incredibly annoying. Can someone please suggest a reliable and permanent solution? I don't want to get rid of my M7... but i will have to, if this problem cannot be fixed correctly and permanently.
There is apparently a free (and better?) app called Headset Blocker
But the problem with that app is the restricted support for Android 1.5 - 3.2 so it will not support Jelly Bean nor Kitkat.