[Freeswitch-users] Cannot get automatic call recording working.
Piotr Starzyk
pstarzyk at general-devices.com
Mon Apr 11 23:54:26 MSD 2016
I’m running FreeSWITCH in console mode on a Windows 7 machine, using
unmodified demo setup. I’m having a hard time getting automatic call
recording to work. I’m using the following instructions to record a call
(by modifying Local_Extension dialplan):
https://freeswitch.org/confluence/display/FREESWITCH/mod_dptools%3A+record_session
*Record Calls To Extensions*
To record all phone calls between extensions do the following. Make a
directory under freeswitch/recordings/archive/. Then edit Local_Extension
in dialplan in conf/dialplan/default.xml
<extension name="Local_Extension">
<condition field="destination_number" expression="^(10[01][0-8])$">
Then add the following actions.
<action application="set" data="RECORD_TITLE=Recording
${destination_number} ${caller_id_number} ${strftime(%Y-%m-%d %H:%M)}"/>
<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="record_session"
data="$${base_dir}/recordings/archive/${strftime(%Y-%m-%d-%H-%M-%S)}_${destination_number}_${caller_id_number}.wav"/>
But when I place a call, no files are getting created in the recordings or
archive folder. I tried calling both ways, still nothing. I am running in
admin mode, and have firewalls disabled.
When looking through the logs, the only two lines relevant to the recording
are the following:
892ef279-18c7-4d8d-8795-fa1c366b68c7 EXECUTE sofia/internal/1000 at 10.10.10.77
bind_meta_app(2 b s record_session::C:/Program
Files/FreeSWITCH/recordings/1000.2016-04-11-15-16-58.wav)
892ef279-18c7-4d8d-8795-fa1c366b68c7 2016-04-11 15:16:58.521344 [INFO]
switch_ivr_async.c:4152 Bound B-Leg: *2 record_session::C:/Program
Files/FreeSWITCH/recordings/1000.2016-04-11-15-16-58.wav
>From FreeSWITCH cookbook, I found out they allow manual recording by
pressing *2 on receiving end. When I tested that, it did work, and the wav
file was created in the recordings directory, so the recording module seems
to be working. But for some reason, I still can’t get the automatic
session recording to work. What am I doing wrong?
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20160411/7acad967/attachment-0001.html
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list