Woman uses smart phone trick to call police during sexual attack