On Wed, Feb 23, 2011 at 7:50 PM, Michael De Lorenzo
<delorenzodesign@gmail.com> wrote:
Is there some place where I can get more detailed log information on this? I thought that streamFile was a blocking operation (the next statement wouldn't be executed until playback was completed), is that not the case?
In all my usage of streamFile it has been blocking. I would write a very simple Lua script that plays a file that is at least several seconds long and then put log output before and after the streamFile method is called.
Is there a difference in terms of performance with Freeswitch for Lua versus SpiderMonkey?
Lua is definitely cleaner, lighter, and faster. There may be more docs on using JavaScript but that's only because it was adopted early on in the development of FS and there were more people familiar with it. Lua is definitely the scripting language of choice when you are calling a script from the dialplan.
-MC
Am I misreading the log?2011-02-21 17:23:09.077014 [NOTICE] switch_cpp.cpp:1181 Playing file: /usr/local/freeswitch/
recordings/messages/16c0f890_c35e33c0_777973.wav
2011-02-21 17:23:09.077014 [DEBUG] switch_ivr_play_say.c:1186 Codec Activated L16@8000hz 1 channels 20ms
2011-02-21 17:23:19.417631 [DEBUG] switch_ivr_play_say.c:1515 done playing file
2011-02-21 17:23:19.417631 [NOTICE] switch_cpp.cpp:1181 !!!!! Finished playing the file !!!!!
2011-02-21 17:23:19.417631 [INFO] switch_cpp.cpp:1181 Was VM detected? no
2011-02-21
17:23:19.417631 [NOTICE] switch_cpp.cpp:1181 Played the message at
least once and checked for VM, we should be exiting the loop
The messages like "finished playing" are log commands that are only available in the script after it's answered.