Why did you not just keep it in your pocket if it was switched off?
I think you would not be disqualified because your phone did not ring but don't take my word for it as I am not an examiner.
It does depend on how the exam board choose to deal with you because eventhough your phone did not ring you are not supposed to have it on you.