So.. there is NO backstory WHATsoever to this OP..
This teacher decided randomly to conduct some sort of phone based witch-hunt on your daughter, who has a flawless record, has given this or any other teacher, zero reason to suspect she might bend the rules on occasion?
Or... as is more likely, she has given him/other teachers cause to suspect she's breaking rules, and he's keeping an eye out for that, and she's got wind of it and is pissed off and has created a huge drama out of bugger all?
HOW did he wake them.
A/ Did he knock loudly, yell it was him, give them a minute then stick his head round the door, shout 'gerrup you 'orrible lot' and put the light on and leave...
B/ Knock loudly, but enter quickly, put on the light and stand there telling them to get up but not buggering off so they could do so comfortably.
C/ Or did he knock softly and sneak in immediately and stand there in the dark, breathing heavily with one hand furtively down his pants waiting for them to wake up?
Because A is fine. B is thoughtless and C is illegal.
Which was it.
Bet you don't come back to the thread to clarify.
FWIW i think anything beyond A with another teacher in the corridor, seeing that he didn't actually enter the room/was only in there a moment, is bloody stupid for his own sake.