This works in iPhone headphones and even third party headphones that have a mic and remote with volume control buttons. For example, if you have an incoming phone call you can press the center button once to answer the call and then once again to hangup. Long press the middle button to send the call to voicemail.
This is all described in a CNET video here.
Posted by Jon Lutz