My Yaesu FT-857D transmits the audio coming from the MIC input instead of the rear line in when PTT is triggered via CAT command.

When PTT is toggled with the rear PTT pin, it works as it should. I had to find a solution for this inconvenience, so I wrote ptt2dtr which translates PTT CAT commands into serial port DTR line changes.