if (first_session.ready()) {

                        console_log("notice","Session state=[" +
first_session.state + "]  \n");

                        

                        consoleLog("NOTICE", "ready: Start DTMF\n");

                        

                        first_session.execute("start_dtmf");

                        first_session.answer( );

                        

                        Disposition = "ANS";

                        

                        first_session.sleep(1500);

                        console_log("notice", "Playing message: " +
recording + "\n");

                        first_session.streamFile(recording, on_event);

                                                

            if (first_session.ready()) {

                        consoleLog("err", "ready: Waiting for input\n");

                        first_session.streamFile("4.wav",on_event,
"dtmf");

                        consoleLog("err", "ready: Timeout on input\n");

                        first_session.execute("stop_tone_detect");

                        

//disp_call()

                        first_session.hangup()

                        first_session.execute("sleep", "2000");

                        consoleLog("NOTICE", "EXITING\n");

                        exit();  

            }

    }

 

________________________________

From: [email protected]
[mailto:[email protected]] On Behalf Of
Anthony Minessale
Sent: 17 February 2009 18:34
To: [email protected]
Subject: Re: [Freeswitch-users] Big delays in playing audio files

 

we would need to see your script.



On Tue, Feb 17, 2009 at 12:23 PM, Nik Middleton
<[email protected]> wrote:

Having spent the last week developing a small js app, I ran some tests
today. With just 5 calls going on, I'm seeing huge delays from when the
call is answered to when the audio file is played.  Sometimes it doesn't
even play at all!!

 

Example 3 calls and the matching playbacks

 

2009-02-17 15:41:04 [NOTICE] voice.js:1 console_log() ready: Start DTMF

2009-02-17 15:41:08 [NOTICE] voice.js:1 console_log() ready: Start DTMF

2009-02-17 15:41:22 [NOTICE] voice.js:1 console_log() ready: Start DTMF

 

2009-02-17 15:41:26 [NOTICE] voice.js:1 console_log() Playing message:
message.wav

2009-02-17 15:41:26 [NOTICE] voice.js:1 console_log() Playing message:
message.wav

2009-02-17 15:41:26 [NOTICE] voice.js:1 console_log() Playing message:
message.wav

 

That's 22 seconds for the first one!!

 

Anyone any ideas as to what's going on here?

 

Regards

 

 


_______________________________________________
Freeswitch-users mailing list
[email protected]
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




-- 
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:[email protected]
<mailto:msn%[email protected]> 
GTALK/JABBER/PAYPAL:[email protected]
<mailto:paypal%[email protected]> 
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:[email protected]
<mailto:sip%[email protected]> 
iax:[email protected]/888
googletalk:[email protected]
<mailto:googletalk%3aconf%[email protected]> 
pstn:213-799-1400

_______________________________________________
Freeswitch-users mailing list
[email protected]
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

Reply via email to