Treatment for muscle cramps?

Earlier I did over exercise more than I could and I ended up with a muscle cramp on my leg. Ny ides to treat them, I mean like home remedies? Cold patches what else? I mean I could still walk but it is a bit uncomfortable. I dont have a lot of pain though but I can feel the muscle still strained.
Updates
+1 y
I did stretch before the aerobics classes and while I feel the pain was going to grow I stopped doing exercise and at the end of the class I stretech again but still I have that mild discomfort on the leg calf. I was told to put soem ice or cold there for some minuteS, also. and stretch the calf.
Treatment for muscle cramps?
Post Opinion