Cannot get automatic call recording working.
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_s... *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@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.
Capture the complete log output of a test call and drop it into pastebin.freeswitch.org. The output will definitely tell you exactly what the dialplan is doing, so if it is attempting to initiate the record_session app then you'll see any errors that may have resulted. -MSC On Mon, Apr 11, 2016 at 12:54 PM, Piotr Starzyk < pstarzyk@general-devices.com> wrote:
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_s...
*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@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.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
I found the problem - it was my fault. Before making changes to the default.xml dialplan file, I made a copy of it in the same folder and called it: default – before recording.xml Then I made changes to default xml. Turns out FreeSWITCH was parsing the backup file I made, instead of the actual file, so none of my changes were taking effect. Once I moved the backup file out of the dialplan folder, the recording started working as expected. *From:* freeswitch-users-bounces@lists.freeswitch.org [mailto: freeswitch-users-bounces@lists.freeswitch.org] *On Behalf Of *Michael Collins *Sent:* Tuesday, April 12, 2016 5:18 PM *To:* FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> *Subject:* Re: [Freeswitch-users] Cannot get automatic call recording working. Capture the complete log output of a test call and drop it into pastebin.freeswitch.org. The output will definitely tell you exactly what the dialplan is doing, so if it is attempting to initiate the record_session app then you'll see any errors that may have resulted. -MSC On Mon, Apr 11, 2016 at 12:54 PM, Piotr Starzyk < pstarzyk@general-devices.com> wrote: 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_s... *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@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. _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (2)
-
Michael Collins
-
Piotr Starzyk