How to control calls in asterisk?

how can the asterisk be configured so that a given extension when consuming certain number of minutes can not make calls for certain exit routes? could you help me…

An extension, in Asterisk normally has only one exit route; do you really mean a calling device?

You would need to maintain cumulative durations in a database, and use the L option, on Dial to cut calls short, if close to the limit.

Before you dial you will need to query the CDR , based on the results you will take an action , it is task very simple using a AGI