Password locking with limited dialing access to particular extension

Dear Team,

My requirement is very specific.

I want the password locking with limited dialing access to particular extension.

I have configured the password locking and limited access with custom context, but both is not working at the same time because they are having different context.

How I can configure 2 contexts that work with single extension