I can relate to how hard it can be for you.
I remember when I was younger, I would have to avoid those situations I couldn't control myself in, and removing the means, to make it harder for me to call/contact that person. For example, hide my phone book, not step into DH's apartment(when he was my BF, I wanted to be proper, but had a really difficult time keeping my hands off him). So mild success using external means to control myself.
Then like you, distract myself as much as possible, through work, school, exercise...more currently, I've found various meditations to help, for different issues, like an open-heart meditation, inner space meditation, yada yada. I've heard of Kundalini(I think that's it?) yoga or meditation to channel excess sexual energy to do other stuff...I think, sorry no help.
But I wish you well.