Anyone has experience of using httapi record?
HI! 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. It did not generate the recording file and I do not know if anything wrong. Thanks! * Xiaoping I am using freeswitch-application-httapi-1.6.8-1.el7.centos.x86_64 The document the webapp sends over to freeswitch looks like: On the console: 2017-09-12 17:22:01.000062 [DEBUG] switch_channel.c:3770 (sofia/external/5022089400@10.2.11.207) Callstate Change EARLY -> ACTIVE EXECUTE sofia/external/5022089400@10.2.11.207 set_audio_level(read 2) 2017-09-12 17:22:01.000062 [DEBUG] switch_core_media_bug.c:828 Attaching BUG to sofia/external/5022089400@10.2.11.207 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}) 2017-09-12 17:22:01.140851 [CRIT] mod_httapi.c:1153 Debugging Return Data: <document type="text/freeswitch-httapi"> <work> <playback file="http://10.2.11.207:8690//CA/servlet/CA/ASRTestApp/Default/en_US/AgainNumNotI..." action="http://10.2.11.207:8690/VoiceApp/servlet/VoiceAppServlet;jsessionid=F47B8127..." /> <playback file="http://10.2.11.207:8690//CA/servlet/CA/ASRTestApp/Default/en_US/WhatBusiness..." action="http://10.2.11.207:8690/VoiceApp/servlet/VoiceAppServlet;jsessionid=F47B8127..." /> <execute application="flush_dtmf"/> <record action="http://10.2.11.207:8690/VoiceApp/servlet/VoiceAppServlet;jsessionid=F47B8127..." name="playback-user-input" file="/var/lib/freeswitch/storage/temp/recording_0.wav" limit="30" terminators="" digit-timeout="10000"> </record> </work> </document> 2017-09-12 17:22:01.140851 [DEBUG] mod_httapi.c:1222 Process Tag: [playback] 2017-09-12 17:22:01.140851 [DEBUG] sofia.c:6858 Channel sofia/external/5022089400@10.2.11.207 entering state [completed][200] 2017-09-12 17:22:01.140851 [DEBUG] switch_ivr_play_say.c:1467 Codec Activated L16@8000hz 1 channels 20ms 2017-09-12 17:22:01.168443 [DEBUG] switch_rtp.c:6707 Correct audio ip/port confirmed. 2017-09-12 17:22:01.168443 [DEBUG] switch_core_io.c:448 Setting BUG Codec PCMU:0 2017-09-12 17:22:01.220055 [DEBUG] sofia.c:6858 Channel sofia/external/5022089400@10.2.11.207 entering state [ready][200] 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/AgainNumNotI... 2017-09-12 17:22:04.700049 [DEBUG] mod_httapi.c:1222 Process Tag: [playback] 2017-09-12 17:22:04.700049 [DEBUG] switch_ivr_play_say.c:1467 Codec Activated L16@8000hz 1 channels 20ms 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/WhatBusiness... 2017-09-12 17:22:07.660037 [DEBUG] mod_httapi.c:1222 Process Tag: [execute] EXECUTE sofia/external/5022089400@10.2.11.207 flush_dtmf() 2017-09-12 17:22:07.660037 [DEBUG] mod_httapi.c:1222 Process Tag: [record] 2017-09-12 17:22:07.660037 [DEBUG] switch_ivr_play_say.c:673 Raw Codec Activated 2017-09-12 17:22:07.660037 [DEBUG] switch_core_codec.c:221 sofia/external/5022089400@10.2.11.207 Push codec L16:100 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. 2017-09-12 17:22:13.480059 [CRIT] mod_httapi.c:1153 Debugging Return Data: <document type="text/freeswitch-httapi"> <work> <hangup action="http://10.2.11.207:8690/VoiceApp/servlet/VoiceAppServlet;jsessionid=F47B8127..." cause="Normal" /> </work> </document> 2017-09-12 17:22:13.480059 [DEBUG] mod_httapi.c:1222 Process Tag: [hangup] 2017-09-12 17:22:13.480059 [NOTICE] mod_httapi.c:880 Hangup sofia/external/5022089400@10.2.11.207 [CS_EXECUTE] [NORMAL_CLEARING]
participants (1)
-
Lin, Xiaoping