Dev
Dev

Reputation: 161

Why record_session command in Freeswitch capture only audio of one leg instead of entire call?

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

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

Answers (0)

Related Questions