Reputation: 161
I'm using record_session
command to record a call but when checking the saved record, I only hear audio from one leg, not all legs. Here's my config (follow from official guide):
== dial plan ==
<extension name="simple test">
<condition field="destination_number" expression="^(1234)$">
<action application="set" data="sound_prefix=$${sounds_dir}/en/us/callie"/>
<!-- <action application="set" data="RECORD_STEREO_SWAP=true"/> -->
<action application="set" data="RECORD_STEREO=true"/>
<action application="record_session" data="/opt/calls/${strftime(%Y%m%d)}/record_${uuid}.mp3"/>
<action application="answer" />
<action application="sleep" data="5000" />
<action application="playback" data="voicemail/vm-goodbye.wav" />
<action application="sleep" data="15000" />
<action application="hangup" />
</condition>
</extension>
I made phone call from a soft-phone (Linphone) and there was no error log in Freeswitch console
RECORD_STEREO_SWAP=true
, the saved record contains only audio of voicemail/vm-goodbye.wav
(the FS log)RECORD_STEREO_SWAP=true
the saved record contains only audio of my speech (the FS log)What I want is that the saved record should contain both audio channels of voicemail and my speech.
Pls help me on this. Thank all of you!
Upvotes: 0
Views: 977