CDR with pins set/ Call duration

Is there any way to make a report using pin set unless ext?

Is there any way to limit the time of a call, for example a call to a movil can not be more longer thar 5 minutes.