Paul: I recently had that very problem. Not much fun when you've about 2inches of cable at the back fo a box to work with.

Ended up using the trial and error until I found a dial tone approach!