We have a stasis application that we use for managing a simple connection with a single outbound and inbound channel connected to a bridge. We pretty much use ARI for everything.
The issue we are having is creating a 2 track stereo file from the channel recording files. We play prompts to the inbound and outbound side. It is mandatory that we capture prompts in the recordings. We create a snoop channel on each in/out bound channel. The issue comes into play with the spy direction.
If we use the spy direction as IN for each channel, then we don’t hear the prompts. If we specify BOTH, when the channels are bridged later on, we get the prompts and audio from the opposite channel in the channel recordings. The prompts are played to the channels and not the bridge.
Essentially we need a single recording file for each channel that has both the IN and OUT (Prompts only). We can create the stereo file using ffmpeg or sox, or whatever easily. Just added it for context.
We can definitely design something within the stasis app to make this work but wondered if anyone knew of an easier way.
Edit: If we could modify the snoop channels to change the spy direction after they are created and later in the process then that would solve the issue. My understanding is that this is currently a limitation in asterisk for whatever reason within the spy module.