chornedsnorkack and three miles,
In the Airbus we have three position for the cockpit door operation switch. OPEN, leaves the door open or unlocks the door for someone to enter, Neutral- if emergency code is used from outside after a predetermined time the cockpit door will unlock and LOCK, no action done outside will unlock the door. Of course when someone buzzes from outside I look in the camera to see who it is before I open the door.
dartagnan,
If pilots have fallen asleep than the CC can call us using the interphone. The darn thing is so loud in A320 it will wake up anyone. Now if they are unconscience it is a different story

Oh and each company has different policy. Our company policy is that the CC must check with flight crew every 20 minutes. Which means that I cannot take longer than 20 minutes of power naps.