Voice overlap while using Asterisk manager API

Hi all,

I am using Asterisk-1.2.13 and asterisk manager APIs to call and record the conversation. While recording using monitor Asterisk Manager API two audio files are created (inbound and outbound audio stream). When the stop monitor Manager API is used the two files are merged into a single file when the Mix parameter is given as 1. But the final merged file is not properly mixed. There is a voice overlap when compared to the original conversation. Is it possible to mix on-the-fly synchronously using manager API (similar to the working of MixMonitor application command)?

Using the manager command action you can run a CLI command mixmonitor:

mixmonitor <start|stop> <chan_name> [args]