You need a gateway profile pointing to your Recording Server. In sip_profiles/external.xml :
<action application="set" data="sip_h_X-Recording-AgentID=1001"/> <action application="set" data="sip_h_X-Recording-Cause=compliance"/> The SRS can parse these headers to index the recording. FreeSWITCH can also receive SIPREC streams. When configured as an SRS, it simply accepts incoming SIP INVITEs from SRCs and writes the received RTP streams to disk. freeswitch siprec
In sip_profiles/internal.xml (or a dedicated recording profile), ensure you accept incoming calls. Then, use a dialplan that writes the media to a file: You need a gateway profile pointing to your Recording Server