Skip to content

The recording function of FreeSWITCH-1.10.12 seems unable to be enabled properly. #2955

@V-Assassin

Description

@V-Assassin

Based on the content of the website https://developer.signalwire.com/freeswitch/FreeSWITCH-Explained/Modules/mod-dptools/6587110/, I have added the following configuration to the file below:
conf/dilplan/default.xml:

<action application="set" data="RECORD_COPYRIGHT=(c) 2011"/>
<action application="set" data="RECORD_SOFTWARE=FreeSWITCH"/>
<action application="set" data="RECORD_ARTIST=FreeSWITCH"/>
<action application="set" data="RECORD_COMMENT=FreeSWITCH"/>
<action application="set" data="RECORD_DATE=${strftime(%Y-%m-%d %H:%M)}"/>
<action application="set" data="RECORD_STEREO=true"/>
<action application="set" data="media_bug_answer_req=true"/>
<action application="export" data="execute_on_answer=record_session E:/recordings/recordings/${strftime(%Y%m%d%H%M%S)}_${caller_id_number}.wav"/>

conf/vars.xml:
<X-PRE-PROCESS cmd="set" data="recordings_dir=E:/recordings"/>

conf/sip_profiles/inernal.xml:

<param name="record-path" value="$${recordings_dir}"/>
<param name="record-template" value="${caller_id_number}.${destination_number}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav"/>

The log output is as follows:
EXECUTE [depth=0] sofia/internal/1004@192.168.3.39 sleep(100)
EXECUTE [depth=0] sofia/internal/1004@192.168.3.39 hash(insert/192.168.3.39-spymap/1004/cb5a6e55-1fa0-4b73-a5df-23aaeb43d1c7)
EXECUTE [depth=0] sofia/internal/1004@192.168.3.39 hash(insert/192.168.3.39-last_dial/1004/1001)
EXECUTE [depth=0] sofia/internal/1004@192.168.3.39 hash(insert/192.168.3.39-last_dial/global/cb5a6e55-1fa0-4b73-a5df-23aaeb43d1c7)
EXECUTE [depth=0] sofia/internal/1004@192.168.3.39 export(RFC2822_DATE=Fri, 21 Nov 2025 15:39:15 +0800)
EXECUTE [depth=0] sofia/internal/1004@192.168.3.39 export(dialed_extension=1001)
EXECUTE [depth=0] sofia/internal/1004@192.168.3.39 bind_meta_app(1 b s execute_extension::dx XML features)
2025-11-21 15:39:15.973912 88.88% [INFO] switch_ivr_async.c:4782 Bound B-Leg: *1 execute_extension::dx XML features
EXECUTE [depth=0] sofia/internal/1004@192.168.3.39 bind_meta_app(2 b s record_session::E:/recordings/1004.2025-11-21-15-39-15.wav)

However, the target directory did not generate any audio files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions