Ответ:

The conjunction 'when' correctly connects the two clauses, indicating that Charlotte rang while the speaker was sleeping.

Answer: C when