Calcium phosphate stones form in the saliva glands. They prevent the entry of the saliva into the mouth. While eating, the glands swell up and become painful.