I used different functions to record the audio, like Record(), Monitor(), MixMonitor().
While using Record() we can specify number of millisecond to record the audio. But in record there is no option to record the audio after the channel is placed in bridge and of that we have Monitor() and MixMonitor().
We have -b option in Monitor() which record unless a call is bridged to another channel.
But there is no any option to stop the record after specific amount of time.
yeah we have stopmonitor() but also which is not helpful.
So my overall desire is Record the call after bridging and stop the recording after 2 seconds and save those 2 seconds.