I&#39;m not sure where to check, but there&#39;s entries like this in freeswitch.log.2011-02-21-23-40-11.1<br><br><div style="margin-left: 40px; font-family: courier new,monospace;">2011-02-21 17:22:53.157390 [NOTICE] mod_logfile.c:158 New log started.<br>
2011-02-21 17:22:53.157390 [NOTICE] switch_cpp.cpp:1181 Played the message at least once and checked for VM, we should be exiting the loop.<br>2011-02-21 17:22:53.157390 [NOTICE] switch_cpp.cpp:1181 ************* SETTING SESSION VARIABLES ***************<br>
2011-02-21 17:22:53.157390 [NOTICE] switch_cpp.cpp:1181 Session Variable[profile_id]: 1<br>2011-02-21 17:22:53.157390 [NOTICE] switch_cpp.cpp:1181 ************* DONE SETTING SESSION VARIABLES ***********<br>2011-02-21 17:22:53.377395 [NOTICE] switch_cpp.cpp:1181 Playing file: /usr/local/freeswitch/recordings/messages/16c0f890_c35e33c0_777973.wav<br>
2011-02-21 17:22:53.377395 [DEBUG] switch_ivr_play_say.c:1186 Codec Activated L16@8000hz 1 channels 20ms<br>2011-02-21 17:23:03.717511 [DEBUG] switch_ivr_play_say.c:1515 done playing file<br>2011-02-21 17:23:03.717511 [NOTICE] switch_cpp.cpp:1181 !!!!! Finished playing the file !!!!!<br>
2011-02-21 17:23:03.717511 [INFO] switch_cpp.cpp:1181 Was VM detected? no<br>2011-02-21 17:23:03.717511 [NOTICE] switch_cpp.cpp:1181 Played the message at least once and checked for VM, we should be exiting the loop.<br>2011-02-21 17:23:03.717511 [NOTICE] switch_cpp.cpp:1181 ************* SETTING SESSION VARIABLES ***************<br>
2011-02-21 17:23:03.717511 [NOTICE] switch_cpp.cpp:1181 Session Variable[profile_id]: 1<br>2011-02-21 17:23:03.717511 [NOTICE] switch_cpp.cpp:1181 ************* DONE SETTING SESSION VARIABLES ***********<br>2011-02-21 17:23:03.937661 [NOTICE] switch_cpp.cpp:1181 Playing file: /usr/local/freeswitch/recordings/messages/16c0f890_c35e33c0_777973.wav<br>
2011-02-21 17:23:03.937661 [DEBUG] switch_ivr_play_say.c:1186 Codec Activated L16@8000hz 1 channels 20ms<br>2011-02-21 17:23:08.237260 [DEBUG] switch_ivr_play_say.c:1515 done playing file<br>2011-02-21 17:23:08.237260 [NOTICE] switch_cpp.cpp:1181 !!!!! Finished playing the file !!!!!<br>
2011-02-21 17:23:08.237260 [INFO] switch_cpp.cpp:1181 Was VM detected? no<br>2011-02-21 17:23:08.237260 [NOTICE] switch_cpp.cpp:1181 Played the message at least once and checked for VM, we should be exiting the loop.<br>2011-02-21 17:23:08.237260 [NOTICE] switch_cpp.cpp:1181 ************* SETTING SESSION VARIABLES ***************<br>
2011-02-21 17:23:08.237260 [NOTICE] switch_cpp.cpp:1181 Session Variable[profile_id]: 1<br>2011-02-21 17:23:08.237260 [NOTICE] switch_cpp.cpp:1181 ************* DONE SETTING SESSION VARIABLES ***********<br>2011-02-21 17:23:08.437885 [NOTICE] switch_cpp.cpp:1181 Playing file: /usr/local/freeswitch/recordings/messages/16c0f890_c35e33c0_777973.wav<br>
2011-02-21 17:23:08.437885 [DEBUG] switch_ivr_play_say.c:1186 Codec Activated L16@8000hz 1 channels 20ms<br>2011-02-21 17:23:08.857270 [DEBUG] switch_ivr_play_say.c:1515 done playing file<br>2011-02-21 17:23:08.857270 [NOTICE] switch_cpp.cpp:1181 !!!!! Finished playing the file !!!!!<br>
2011-02-21 17:23:08.857270 [INFO] switch_cpp.cpp:1181 Was VM detected? no<br>2011-02-21 17:23:08.857270 [NOTICE] switch_cpp.cpp:1181 Played the message at least once and checked for VM, we should be exiting the loop.<br>2011-02-21 17:23:08.857270 [NOTICE] switch_cpp.cpp:1181 ************* SETTING SESSION VARIABLES ***************<br>
2011-02-21 17:23:08.857270 [NOTICE] switch_cpp.cpp:1181 Session Variable[profile_id]: 1<br>2011-02-21 17:23:08.857270 [NOTICE] switch_cpp.cpp:1181 ************* DONE SETTING SESSION VARIABLES ***********<br>2011-02-21 17:23:09.077014 [NOTICE] switch_cpp.cpp:1181 Playing file: /usr/local/freeswitch/recordings/messages/16c0f890_c35e33c0_777973.wav<br>
2011-02-21 17:23:09.077014 [DEBUG] switch_ivr_play_say.c:1186 Codec Activated L16@8000hz 1 channels 20ms<br>2011-02-21 17:23:19.417631 [DEBUG] switch_ivr_play_say.c:1515 done playing file<br>2011-02-21 17:23:19.417631 [NOTICE] switch_cpp.cpp:1181 !!!!! Finished playing the file !!!!!<br>
2011-02-21 17:23:19.417631 [INFO] switch_cpp.cpp:1181 Was VM detected? no<br>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.<br></div>
<br>I also have the Freeswitch log from the date too, but I&#39;m not sure what I should post here that would be useful.<br><br><br><br><div class="gmail_quote">On Tue, Feb 22, 2011 at 8:20 PM, Anthony Minessale <span dir="ltr">&lt;<a href="mailto:anthony.minessale@gmail.com" target="_blank">anthony.minessale@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
do you have any console logs of it failing or any error messages etc?<br>
<div><div></div><div><br>
<br>
On Tue, Feb 22, 2011 at 1:22 AM, Michael De Lorenzo<br>
&lt;<a href="mailto:delorenzodesign@gmail.com" target="_blank">delorenzodesign@gmail.com</a>&gt; wrote:<br>
&gt; Hello,<br>
&gt;<br>
&gt; I have a Freeswitch installation that is intended to make many calls<br>
&gt; (thousands) and playback a single wav file.  The calls are successfully<br>
&gt; processed (the recipient&#39;s phone rings), but the call almost immediately<br>
&gt; disconnects, after about 1s.  Everything seems to work fine if I&#39;m only<br>
&gt; pushing one or two calls through the Freeswitch instance, but as soon as I<br>
&gt; turn up the call rate (I&#39;m still only doing about 50 concurrent sessions)<br>
&gt; the playback begins to fail.<br>
&gt;<br>
&gt; I&#39;ve watched the calls go out from the console and nothing looks out of the<br>
&gt; ordinary, except that the calls are disconnected with NORMAL CLEARING prior<br>
&gt; to completion.<br>
&gt;<br>
&gt; Here&#39;s the Lua script I&#39;m using...<br>
&gt;<br>
&gt; profile_id = argv[1];<br>
&gt; account_code = argv[2];<br>
&gt; client_id = argv[3];<br>
&gt; caller_id_name = argv[4];<br>
&gt; caller_id = argv[5];<br>
&gt; dial_id = argv[6];<br>
&gt; number_to_call = argv[7];<br>
&gt; message_to_play = argv[8];<br>
&gt; max_retries = argv[9];<br>
&gt; retry_interval = argv[10];<br>
&gt;<br>
&gt; local human_detected = false<br>
&gt; local voicemail_detected = false;<br>
&gt; local message_played = false;<br>
&gt;<br>
&gt; recordings_directory = &quot;/usr/local/freeswitch/recordings/messages/&quot;;<br>
&gt;<br>
&gt; function setDialVariables(set_as_session_variables)<br>
&gt;     local s = &quot;profile_id=&quot; .. profile_id;<br>
&gt;     s = s .. &quot;,account_code=&quot; .. account_code;<br>
&gt;     s = s .. &quot;,client_id=&quot; .. client_id;<br>
&gt;     s = s .. &quot;,caller_id_name=&quot; .. caller_id_name;<br>
&gt;     s = s .. &quot;,caller_id=&quot; .. caller_id;<br>
&gt;     s = s .. &quot;,dial_id=&quot; .. dial_id;<br>
&gt;     s = s .. &quot;,number_to_call=&quot; .. number_to_call;<br>
&gt;     s = s .. &quot;,message_to_play=&quot; .. message_to_play;<br>
&gt;<br>
&gt;     freeswitch.consoleLog(&quot;notice&quot;, s .. &quot;\n&quot;);<br>
&gt;<br>
&gt;     return s<br>
&gt; end<br>
&gt;<br>
&gt; function printSessionVariables()<br>
&gt;     freeswitch.consoleLog(&quot;notice&quot;, &quot;******* PRINTING SESSION VARIABLES<br>
&gt; **********\n&quot;);<br>
&gt;     -- ommitted<br>
&gt;     freeswitch.consoleLog(&quot;notice&quot;,<br>
&gt; &quot;**********************************************\n&quot;);<br>
&gt; end<br>
&gt;<br>
&gt; function onInput(s, type, obj, arg)<br>
&gt;     if(type == &quot;event&quot; and voicemail_detected == false) then<br>
&gt;         freeswitch.consoleLog(&quot;debug&quot;,&quot;************ VOICE MAIL/ANSWERING<br>
&gt; MACHINE DETECTED *************\n&quot;);<br>
&gt;         voicemail_detected = true;<br>
&gt;         return &quot;break&quot;;<br>
&gt;     end<br>
&gt;     return true;<br>
&gt; end<br>
&gt;<br>
&gt; function playbackMessage(sleepTime)<br>
&gt;     message_played = false;<br>
&gt;     session:sleep(sleepTime);<br>
&gt;     -- play a file<br>
&gt;     message_file = recordings_directory .. message_to_play;<br>
&gt;     freeswitch.consoleLog(&quot;notice&quot;, &quot;Playing file: &quot; .. message_file ..<br>
&gt; &quot;\n&quot;);<br>
&gt;     session:streamFile(message_file);<br>
&gt;     freeswitch.consoleLog(&quot;notice&quot;, &quot;!!!!! Finished playing the file<br>
&gt; !!!!!\n&quot;);<br>
&gt;     message_played = true;<br>
&gt; end<br>
&gt;<br>
&gt; session = freeswitch.Session(&quot;{&quot; .. setDialVariables(false) ..<br>
&gt; &quot;,ignore_early_media=true,origination_caller_id_name=&quot; .. caller_id_name ..<br>
&gt; &quot;,origination_caller_id_number=+1&quot; .. caller_id .. &quot;}sofia/gateway/gateway_&quot;<br>
&gt; .. profile_id .. &quot;/&quot; .. number_to_call);<br>
&gt;<br>
&gt; while(session:ready()) do<br>
&gt;    setDialVariables(true)<br>
&gt;    session:answer();<br>
&gt;<br>
&gt;    -- session:execute(&quot;continue_on_fail&quot;,&quot;true&quot;);<br>
&gt;    session:setInputCallback(&quot;onInput&quot;,&quot;true&quot;);<br>
&gt;    session:execute(&quot;avmd&quot;,&quot;start&quot;);<br>
&gt;<br>
&gt;    playbackMessage(200);<br>
&gt;<br>
&gt;    vm_status = voicemail_detected == true and &quot;yes&quot; or &quot;no&quot;<br>
&gt;    freeswitch.consoleLog(&quot;info&quot;, &quot;Was VM detected? &quot; .. vm_status .. &quot;\n&quot;);<br>
&gt;    if(voicemail_detected) then<br>
&gt;       return &quot;break&quot;;<br>
&gt;    end<br>
&gt;<br>
&gt;    freeswitch.consoleLog(&quot;notice&quot;, &quot;Played the message at least once and<br>
&gt; checked for VM, we should be exiting the loop.\n&quot;)<br>
&gt; end<br>
&gt;<br>
&gt; if (voicemail_detected) then<br>
&gt;     freeswitch.consoleLog(&quot;info&quot;, &quot;Playback for voicemail.\n&quot;);<br>
&gt;     session:execute(&quot;avmd&quot;,&quot;stop&quot;);<br>
&gt;     playbackMessage(5000);<br>
&gt; end<br>
&gt;<br>
&gt; freeswitch.consoleLog(&quot;info&quot;, &quot;All finished, hanging up the session.\n&quot;);<br>
&gt; session:hangup();<br>
&gt;<br>
&gt; Any help would be greatly appreciated.<br>
&gt;<br>
&gt; Thank you,<br>
&gt;<br>
&gt; Michael<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
&gt;<br>
<br>
<br>
<br>
--<br>
Anthony Minessale II<br>
<br>
FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>
ClueCon <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br>
Twitter: <a href="http://twitter.com/FreeSWITCH_wire" target="_blank">http://twitter.com/FreeSWITCH_wire</a><br>
<br>
AIM: anthm<br>
<a href="mailto:MSN%3Aanthony_minessale@hotmail.com" target="_blank">MSN:anthony_minessale@hotmail.com</a><br>
GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com" target="_blank">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch<br>
<br>
FreeSWITCH Developer Conference<br>
<a href="mailto:sip%3A888@conference.freeswitch.org" target="_blank">sip:888@conference.freeswitch.org</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org" target="_blank">googletalk:conf+888@conference.freeswitch.org</a><br>
pstn:+19193869900<br>
</blockquote></div><br>