I think that the "do not disturb" function allows calls o come through but just doesn't notify you about the calls if your screen is locked.
In order to block calls from coming through, you can go to "call settings" then "supplementary services" and then "call barring" and then click on "all...