Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] js session.streamFile() interrupt slowness


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
stevecrozz at gmail.com
Guest





PostPosted: Fri Feb 20, 2009 12:35 am    Post subject: [Freeswitch-users] js session.streamFile() interrupt slownes Reply with quote

I have a few scripts that use the javascript
session.streamFile('somefile.wav', onDtmf); where onDtmf is a function
that returns false to interrupt the streaming file. There is a short
delay between the time when I press a key and the time the file stops
playing. Is there anything I can adjust that would affect that? It's
only maybe 2-3 seconds, but it "feels" too long to me.

--Stephen

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
msc at freeswitch.org
Guest





PostPosted: Fri Feb 20, 2009 11:50 am    Post subject: [Freeswitch-users] js session.streamFile() interrupt slownes Reply with quote

On Thu, Feb 19, 2009 at 9:27 PM, Stephen Crosby <stevecrozz@gmail.com> wrote:
Quote:
I have a few scripts that use the javascript
session.streamFile('somefile.wav', onDtmf); where onDtmf is a function
that returns false to interrupt the streaming file. There is a short
delay between the time when I press a key and the time the file stops
playing. Is there anything I can adjust that would affect that? It's
only maybe 2-3 seconds, but it "feels" too long to me.

--Stephen

Could you pastebin your entire script plus the relevant dialplan
entry? Also, could you tell us which operating system and FS revision?
-MC

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
stevecrozz at gmail.com
Guest





PostPosted: Sat Feb 21, 2009 2:42 pm    Post subject: [Freeswitch-users] js session.streamFile() interrupt slownes Reply with quote

Verry sorry for the list spam, this is the link to the corrected script:
http://pastebin.freeswitch.org/7389

--Stephen

On Sat, Feb 21, 2009 at 11:33 AM, Stephen Crosby <stevecrozz@gmail.com> wrote:
Quote:
There was a small error in that last script I sent, please test using
this version: http://pastebin.freeswitch.org/7388

Thanks.

On Sat, Feb 21, 2009 at 11:31 AM, Stephen Crosby <stevecrozz@gmail.com> wrote:
Quote:
Sure, I've stripped down the script somewhat to something smaller that
still produces this effect and you can see it at:
http://pastebin.freeswitch.org/7388

The file sound 'VR1' continues to play for a short time after I
interrupt it with a DTMF event. It does interrupt, but it sounds a
little awkward because of the delay. I was probably wrong in my
estimate of the delay which seems to be about a full second, not two
or three. I'm hoping I can adjust it somehow to feel more immediate.
Any ideas?

--Stephen

On Fri, Feb 20, 2009 at 8:36 AM, Michael Collins <msc@freeswitch.org> wrote:
Quote:
On Thu, Feb 19, 2009 at 9:27 PM, Stephen Crosby <stevecrozz@gmail.com> wrote:
Quote:
I have a few scripts that use the javascript
session.streamFile('somefile.wav', onDtmf); where onDtmf is a function
that returns false to interrupt the streaming file. There is a short
delay between the time when I press a key and the time the file stops
playing. Is there anything I can adjust that would affect that? It's
only maybe 2-3 seconds, but it "feels" too long to me.

--Stephen

Could you pastebin your entire script plus the relevant dialplan
entry? Also, could you tell us which operating system and FS revision?
-MC

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
stevecrozz at gmail.com
Guest





PostPosted: Sat Feb 21, 2009 2:44 pm    Post subject: [Freeswitch-users] js session.streamFile() interrupt slownes Reply with quote

There was a small error in that last script I sent, please test using
this version: http://pastebin.freeswitch.org/7388

Thanks.

On Sat, Feb 21, 2009 at 11:31 AM, Stephen Crosby <stevecrozz@gmail.com> wrote:
Quote:
Sure, I've stripped down the script somewhat to something smaller that
still produces this effect and you can see it at:
http://pastebin.freeswitch.org/7388

The file sound 'VR1' continues to play for a short time after I
interrupt it with a DTMF event. It does interrupt, but it sounds a
little awkward because of the delay. I was probably wrong in my
estimate of the delay which seems to be about a full second, not two
or three. I'm hoping I can adjust it somehow to feel more immediate.
Any ideas?

--Stephen

On Fri, Feb 20, 2009 at 8:36 AM, Michael Collins <msc@freeswitch.org> wrote:
Quote:
On Thu, Feb 19, 2009 at 9:27 PM, Stephen Crosby <stevecrozz@gmail.com> wrote:
Quote:
I have a few scripts that use the javascript
session.streamFile('somefile.wav', onDtmf); where onDtmf is a function
that returns false to interrupt the streaming file. There is a short
delay between the time when I press a key and the time the file stops
playing. Is there anything I can adjust that would affect that? It's
only maybe 2-3 seconds, but it "feels" too long to me.

--Stephen

Could you pastebin your entire script plus the relevant dialplan
entry? Also, could you tell us which operating system and FS revision?
-MC

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org



_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
stevecrozz at gmail.com
Guest





PostPosted: Sat Feb 21, 2009 2:44 pm    Post subject: [Freeswitch-users] js session.streamFile() interrupt slownes Reply with quote

Sure, I've stripped down the script somewhat to something smaller that
still produces this effect and you can see it at:
http://pastebin.freeswitch.org/7388

The file sound 'VR1' continues to play for a short time after I
interrupt it with a DTMF event. It does interrupt, but it sounds a
little awkward because of the delay. I was probably wrong in my
estimate of the delay which seems to be about a full second, not two
or three. I'm hoping I can adjust it somehow to feel more immediate.
Any ideas?

--Stephen

On Fri, Feb 20, 2009 at 8:36 AM, Michael Collins <msc@freeswitch.org> wrote:
Quote:
On Thu, Feb 19, 2009 at 9:27 PM, Stephen Crosby <stevecrozz@gmail.com> wrote:
Quote:
I have a few scripts that use the javascript
session.streamFile('somefile.wav', onDtmf); where onDtmf is a function
that returns false to interrupt the streaming file. There is a short
delay between the time when I press a key and the time the file stops
playing. Is there anything I can adjust that would affect that? It's
only maybe 2-3 seconds, but it "feels" too long to me.

--Stephen

Could you pastebin your entire script plus the relevant dialplan
entry? Also, could you tell us which operating system and FS revision?
-MC

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
anthony.minessale at g...
Guest





PostPosted: Sat Feb 21, 2009 6:37 pm    Post subject: [Freeswitch-users] js session.streamFile() interrupt slownes Reply with quote

Try this one

http://pastebin.freeswitch.org/7391

I just tested this on latest trunk and it stopped instantly.


On Sat, Feb 21, 2009 at 1:35 PM, Stephen Crosby <stevecrozz@gmail.com (stevecrozz@gmail.com)> wrote:
Quote:
Verry sorry for the list spam, this is the link to the corrected script:
http://pastebin.freeswitch.org/7389

--Stephen


On Sat, Feb 21, 2009 at 11:33 AM, Stephen Crosby <stevecrozz@gmail.com (stevecrozz@gmail.com)> wrote:
Quote:
There was a small error in that last script I sent, please test using
this version: http://pastebin.freeswitch.org/7388

Thanks.

On Sat, Feb 21, 2009 at 11:31 AM, Stephen Crosby <stevecrozz@gmail.com (stevecrozz@gmail.com)> wrote:
Quote:
Sure, I've stripped down the script somewhat to something smaller that
still produces this effect and you can see it at:
http://pastebin.freeswitch.org/7388

The file sound 'VR1' continues to play for a short time after I
interrupt it with a DTMF event. It does interrupt, but it sounds a
little awkward because of the delay. I was probably wrong in my
estimate of the delay which seems to be about a full second, not two
or three. I'm hoping I can adjust it somehow to feel more immediate.
Any ideas?

--Stephen

On Fri, Feb 20, 2009 at 8:36 AM, Michael Collins <msc@freeswitch.org (msc@freeswitch.org)> wrote:
Quote:
On Thu, Feb 19, 2009 at 9:27 PM, Stephen Crosby <stevecrozz@gmail.com (stevecrozz@gmail.com)> wrote:
Quote:
I have a few scripts that use the javascript
session.streamFile('somefile.wav', onDtmf); where onDtmf is a function
that returns false to interrupt the streaming file. There is a short
delay between the time when I press a key and the time the file stops
playing. Is there anything I can adjust that would affect that? It's
only maybe 2-3 seconds, but it "feels" too long to me.

--Stephen

Could you pastebin your entire script plus the relevant dialplan
entry? Also, could you tell us which operating system and FS revision?
-MC

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
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:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services