PIN code for outgoing calls

I want to give each user on my asterisk based IP-PBX a pin code to make its calls to the PSTN. That is to restrict the outgoing calls by user code and not by extension. How can I do this?

Thanks in advance


use authenticate() uin your dialplan. … thenticate

Thank you very much. It works.