Hangup Called party leg after specific time

My scenario is to hangup called party leg after a specific time while calling party would listen current call recording.

Please guide how we can achieve it ?

You can use Mixmonitor application to start and stop call recording and when stream with current saved file using dial g option and for defining specific time to disconnect the call you can use L option for Dial.
exten => _X.,1,MixMonitor(${UNIQUEID}.wav,bi(mixmvar))

exten => _X.,n,Dial(SIP/123,gL(x:y:z))

exten => _X.,n,StopMixMonitor(${mixmvar})

exten =>_X.,n,Playback(yourlocation/${UNIQUEID}.wav)

exten => _X.,n,Hangup

Note x,y,z option in L option is used for disconnection of the call.

Thanks a lot sir. It works

Oh, Great! You are welcome Dear