I solved this by using 4 different buttons on my foot controller for the 4 different functions. Each button, when pressed, always sends the same MIDI message:
1: [REC] CC60, val 127
2: [PLAY] CC61: val 127
3: [OVERDUB] CC60, val 0
4: [STOP] CC 61, val 0
Ciao
Fabrizio