All of the above advice is great but if it doesn't work and I start to get a cramp I put pressure on my upper lip, either by pressing with my finger or biting (gently). This has relieved leg, toe, hand, and finger cramps for me in about 30 seconds.
Regards
Bottomgun Bill