Hi,
you cannot lock and unlock in the cisco IOS voice architecture. You can configure so that if you prepend a code, the call will wok, eg:
destination-pattern #67991#011[1-9].....T
prefix 011
Where #67991# is the "secrect prefix" for international calls.
Hope this helps, please rate post if it does!