Question: do not disturb while iphone is locked?
Answer: Go to Settings > Do Not Disturb.
Do one of the following: Silence iPhone any time Do Not Disturb is on: Tap Always. Silence iPhone only when it's locked: Tap While iPhone is locked.