<div dir="ltr">Capture the complete log output of a test call and drop it into <a href="http://pastebin.freeswitch.org">pastebin.freeswitch.org</a>. 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&#39;ll see any errors that may have resulted.<div><br></div><div>-MSC</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 11, 2016 at 12:54 PM, Piotr Starzyk <span dir="ltr">&lt;<a href="mailto:pstarzyk@general-devices.com" target="_blank">pstarzyk@general-devices.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="#0563C1" vlink="#954F72"><div><p class="MsoNormal">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):</p><p class="MsoNormal"> </p><p class="MsoNormal"><a href="https://freeswitch.org/confluence/display/FREESWITCH/mod_dptools%3A+record_session" target="_blank">https://freeswitch.org/confluence/display/FREESWITCH/mod_dptools%3A+record_session</a></p><p class="MsoNormal" style="margin-left:1.0in"><b><span style="font-size:18.0pt;font-family:&quot;Times New Roman&quot;,serif">Record Calls To Extensions</span></b></p><p class="MsoNormal" style="margin-left:1.0in"><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,serif;color:black">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</span><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,serif"></span></p><table border="0" cellspacing="0" cellpadding="0" style="margin-left:1.0in"><tbody><tr><td style="padding:0in 0in 0in 0in"><p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">&lt;extension</span><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,serif"> </span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">name=&quot;Local_Extension&quot;&gt;</span><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,serif"></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">    &lt;condition</span><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,serif"> </span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">field=&quot;destination_number&quot;</span><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,serif"> </span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">expression=&quot;^(10[01][0-8])$&quot;&gt;</span><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,serif"></span></p></td></tr></tbody></table><p class="MsoNormal" style="margin-left:1.0in"><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,serif;color:black">Then add the following actions.</span><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,serif"></span></p><table border="0" cellspacing="0" cellpadding="0" style="margin-left:1.0in"><tbody><tr><td style="padding:0in 0in 0in 0in"><p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">&lt;action</span><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,serif"> </span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">application=&quot;set&quot;</span><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,serif"> </span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">data=&quot;RECORD_TITLE=Recording ${destination_number} ${caller_id_number} ${strftime(%Y-%m-%d %H:%M)}&quot;/&gt;</span><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,serif"></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">&lt;action</span><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,serif"> </span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">application=&quot;set&quot;</span><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,serif"> </span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">data=&quot;RECORD_COPYRIGHT=(c) 2011&quot;/&gt;</span><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,serif"></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">&lt;action</span><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,serif"> </span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">application=&quot;set&quot;</span><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,serif"> </span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">data=&quot;RECORD_SOFTWARE=FreeSWITCH&quot;/&gt;</span><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,serif"></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">&lt;action</span><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,serif"> </span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">application=&quot;set&quot;</span><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,serif"> </span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">data=&quot;RECORD_ARTIST=FreeSWITCH&quot;/&gt;</span><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,serif"></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">&lt;action</span><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,serif"> </span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">application=&quot;set&quot;</span><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,serif"> </span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">data=&quot;RECORD_COMMENT=FreeSWITCH&quot;/&gt;</span><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,serif"></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">&lt;action</span><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,serif"> </span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">application=&quot;set&quot;</span><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,serif"> </span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">data=&quot;RECORD_DATE=${strftime(%Y-%m-%d %H:%M)}&quot;/&gt;</span><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,serif"></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">&lt;action</span><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,serif"> </span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">application=&quot;set&quot;</span><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,serif"> </span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">data=&quot;RECORD_STEREO=true&quot;/&gt;</span><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,serif"></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">&lt;action</span><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,serif"> </span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">application=&quot;record_session&quot;</span><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,serif"> </span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">data=&quot;$${base_dir}/recordings/archive/${strftime(%Y-%m-%d-%H-%M-%S)}_${destination_number}_${caller_id_number}.wav&quot;/&gt;</span><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,serif"></span></p></td></tr></tbody></table><p class="MsoNormal"> </p><p class="MsoNormal"> </p><p class="MsoNormal">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.</p><p class="MsoNormal"> </p><p class="MsoNormal">When looking through the logs, the only two lines relevant to the recording are the following:</p><p class="MsoNormal"> </p><p class="MsoNormal" style="background:#1e1e1e"><span style="font-size:10.0pt;font-family:Consolas;color:gainsboro">892ef279-18c7-4d8d-8795-fa1c366b68c7 EXECUTE sofia/internal/<a href="mailto:1000@10.10.10.77" target="_blank">1000@10.10.10.77</a> bind_meta_app(2 b s record_session::C:/Program Files/FreeSWITCH/recordings/1000.2016-04-11-15-16-58.wav)</span></p><p class="MsoNormal" style="background:#1e1e1e"><span style="font-size:10.0pt;font-family:Consolas;color:gainsboro">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</span></p><p class="MsoNormal"> </p><p class="MsoNormal">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?</p><p class="MsoNormal"> </p><p class="MsoNormal"> </p><p class="MsoNormal">Thanks.</p><p class="MsoNormal"> </p><p class="MsoNormal"> </p><p class="MsoNormal"> </p><p class="MsoNormal"> </p><p class="MsoNormal"> </p></div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>