<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:DengXian;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"\@DengXian";
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:1892840289;
mso-list-type:hybrid;
mso-list-template-ids:-316480314 735759434 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l0:level1
{mso-level-start-at:2017;
mso-level-number-format:bullet;
mso-level-text:-;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:"Calibri",sans-serif;
mso-fareast-font-family:DengXian;
mso-bidi-font-family:"Times New Roman";}
@list l0:level2
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:"Courier New";}
@list l0:level3
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:Wingdings;}
@list l0:level4
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:Symbol;}
@list l0:level5
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:"Courier New";}
@list l0:level6
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:Wingdings;}
@list l0:level7
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:Symbol;}
@list l0:level8
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:"Courier New";}
@list l0:level9
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:Wingdings;}
ol
{margin-bottom:0in;}
ul
{margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">HI! <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Anyone has experience with using freeswitch record? I am using it in my web app. It seems not working and I did not get any error message in the log.<o:p></o:p></p>
<p class="MsoNormal">It did not generate the recording file and I do not know if anything wrong.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks!<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<ul style="margin-top:0in" type="disc">
<li class="MsoListParagraph" style="margin-left:0in;mso-list:l0 level1 lfo1">Xiaoping<o:p></o:p></li></ul>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I am using freeswitch-application-httapi-1.6.8-1.el7.centos.x86_64<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The document the webapp sends over to freeswitch looks like:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">On the console:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">2017-09-12 17:22:01.000062 [DEBUG] switch_channel.c:3770 (sofia/external/5022089400@10.2.11.207) Callstate Change EARLY -> ACTIVE<o:p></o:p></p>
<p class="MsoNormal">EXECUTE sofia/external/5022089400@10.2.11.207 set_audio_level(read 2)<o:p></o:p></p>
<p class="MsoNormal">2017-09-12 17:22:01.000062 [DEBUG] switch_core_media_bug.c:828 Attaching BUG to sofia/external/5022089400@10.2.11.207<o:p></o:p></p>
<p class="MsoNormal">EXECUTE sofia/external/5022089400@10.2.11.207 httapi({method=POST,url=http://10.2.11.207:8690/VoiceApp/servlet/VoiceAppServlet?Context=ASRTestApp&Debug=true})<o:p></o:p></p>
<p class="MsoNormal">2017-09-12 17:22:01.140851 [CRIT] mod_httapi.c:1153 Debugging Return Data:<o:p></o:p></p>
<p class="MsoNormal"><span style="background:yellow;mso-highlight:yellow"><document type="text/freeswitch-httapi"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="background:yellow;mso-highlight:yellow"> <work> <playback file="http://10.2.11.207:8690//CA/servlet/CA/ASRTestApp/Default/en_US/AgainNumNotInService.wav"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="background:yellow;mso-highlight:yellow"> action="http://10.2.11.207:8690/VoiceApp/servlet/VoiceAppServlet;jsessionid=F47B8127C932FE6E78FCFAB486A15474?Debug=true&item=0"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="background:yellow;mso-highlight:yellow">/> <playback file="http://10.2.11.207:8690//CA/servlet/CA/ASRTestApp/Default/en_US/WhatBusinessLookingOne.wav"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="background:yellow;mso-highlight:yellow"> action="http://10.2.11.207:8690/VoiceApp/servlet/VoiceAppServlet;jsessionid=F47B8127C932FE6E78FCFAB486A15474?Debug=true&item=1&PLAY_DONE"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="background:yellow;mso-highlight:yellow">/> <execute application="flush_dtmf"/><o:p></o:p></span></p>
<p class="MsoNormal"><span style="background:yellow;mso-highlight:yellow"><record action="http://10.2.11.207:8690/VoiceApp/servlet/VoiceAppServlet;jsessionid=F47B8127C932FE6E78FCFAB486A15474?Debug=true"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="background:yellow;mso-highlight:yellow"> name="playback-user-input"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="background:yellow;mso-highlight:yellow"> file="/var/lib/freeswitch/storage/temp/recording_0.wav"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="background:yellow;mso-highlight:yellow"> limit="30"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="background:yellow;mso-highlight:yellow"> terminators=""<o:p></o:p></span></p>
<p class="MsoNormal"><span style="background:yellow;mso-highlight:yellow"> digit-timeout="10000"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="background:yellow;mso-highlight:yellow"> </record><o:p></o:p></span></p>
<p class="MsoNormal"><span style="background:yellow;mso-highlight:yellow"> </work><o:p></o:p></span></p>
<p class="MsoNormal"><span style="background:yellow;mso-highlight:yellow"></document></span><o:p></o:p></p>
<p class="MsoNormal">2017-09-12 17:22:01.140851 [DEBUG] mod_httapi.c:1222 Process Tag: [playback]<o:p></o:p></p>
<p class="MsoNormal">2017-09-12 17:22:01.140851 [DEBUG] sofia.c:6858 Channel sofia/external/5022089400@10.2.11.207 entering state [completed][200]<o:p></o:p></p>
<p class="MsoNormal">2017-09-12 17:22:01.140851 [DEBUG] switch_ivr_play_say.c:1467 Codec Activated L16@8000hz 1 channels 20ms<o:p></o:p></p>
<p class="MsoNormal">2017-09-12 17:22:01.168443 [DEBUG] switch_rtp.c:6707 Correct audio ip/port confirmed.<o:p></o:p></p>
<p class="MsoNormal">2017-09-12 17:22:01.168443 [DEBUG] switch_core_io.c:448 Setting BUG Codec PCMU:0<o:p></o:p></p>
<p class="MsoNormal">2017-09-12 17:22:01.220055 [DEBUG] sofia.c:6858 Channel sofia/external/5022089400@10.2.11.207 entering state [ready][200]<o:p></o:p></p>
<p class="MsoNormal">2017-09-12 17:22:04.700049 [DEBUG] switch_ivr_play_say.c:1910 done playing file http://10.2.11.207:8690//CA/servlet/CA/ASRTestApp/Default/en_US/AgainNumNotInService.wav<o:p></o:p></p>
<p class="MsoNormal">2017-09-12 17:22:04.700049 [DEBUG] mod_httapi.c:1222 Process Tag: [playback]<o:p></o:p></p>
<p class="MsoNormal">2017-09-12 17:22:04.700049 [DEBUG] switch_ivr_play_say.c:1467 Codec Activated L16@8000hz 1 channels 20ms<o:p></o:p></p>
<p class="MsoNormal">2017-09-12 17:22:07.660037 [DEBUG] switch_ivr_play_say.c:1910 done playing file http://10.2.11.207:8690//CA/servlet/CA/ASRTestApp/Default/en_US/WhatBusinessLookingOne.wav<o:p></o:p></p>
<p class="MsoNormal">2017-09-12 17:22:07.660037 [DEBUG] mod_httapi.c:1222 Process Tag: [execute]<o:p></o:p></p>
<p class="MsoNormal">EXECUTE sofia/external/5022089400@10.2.11.207 flush_dtmf()<o:p></o:p></p>
<p class="MsoNormal">2017-09-12 17:22:07.660037 [DEBUG] mod_httapi.c:1222 Process Tag: [record]<o:p></o:p></p>
<p class="MsoNormal">2017-09-12 17:22:07.660037 [DEBUG] switch_ivr_play_say.c:673 Raw Codec Activated<o:p></o:p></p>
<p class="MsoNormal">2017-09-12 17:22:07.660037 [DEBUG] switch_core_codec.c:221 sofia/external/5022089400@10.2.11.207 Push codec L16:100<o:p></o:p></p>
<p class="MsoNormal">2017-09-12 17:22:13.480059 [DEBUG] switch_core_codec.c:246 sofia/external/5022089400@10.2.11.207 Restore previous codec PCMU:0.<o:p></o:p></p>
<p class="MsoNormal">2017-09-12 17:22:13.480059 [CRIT] mod_httapi.c:1153 Debugging Return Data:<o:p></o:p></p>
<p class="MsoNormal"><document type="text/freeswitch-httapi"><o:p></o:p></p>
<p class="MsoNormal"> <work> <hangup action="http://10.2.11.207:8690/VoiceApp/servlet/VoiceAppServlet;jsessionid=F47B8127C932FE6E78FCFAB486A15474?Debug=true" cause="Normal" /><o:p></o:p></p>
<p class="MsoNormal"> </work><o:p></o:p></p>
<p class="MsoNormal"></document><o:p></o:p></p>
<p class="MsoNormal">2017-09-12 17:22:13.480059 [DEBUG] mod_httapi.c:1222 Process Tag: [hangup]<o:p></o:p></p>
<p class="MsoNormal">2017-09-12 17:22:13.480059 [NOTICE] mod_httapi.c:880 Hangup sofia/external/5022089400@10.2.11.207 [CS_EXECUTE] [NORMAL_CLEARING]<o:p></o:p></p>
</div>
</body>
</html>