Sounds like the connection is somehow bad at the trans end. Is the inner cable perhaps too short or does it not engage the gear fully at the trans end? Have you tried taking the cable off at the speedo and making sure the cable is turning when it is engaged with the trans?