There is a service parameter on cucm to disconnect calls after certain time but it affects all calls, internal as well as external. You may be able to achieve it through custom TCL scripts though, please check the following post for similar info
https://supportforums.cisco.com/discussion/10791111/how-set-timer-force-disconnected-outgoing-incoming-call-pri
Manish