Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

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

[Freeswitch-users] mod_shout delay in trunk


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





PostPosted: Fri Feb 06, 2009 2:01 pm    Post subject: [Freeswitch-users] mod_shout delay in trunk Reply with quote

Hi,

With the 1.0.2 release i was able to to stream a call using mod_shout to an icecast server with only a 1 or two second delay to clients. With the current trunk that delay is now 8 to 10 seconds. I thought it might have been a change to mod_shout.c. I tried tweaking a few outbound buffer sizes with no luck so I just copied the 1.0.2 version of mod_shout.c over, compiled and reinstalled the module, restarted fs and still the delay is 8 to 10 seconds. I'm a little stumped. I currently have both versions installed (trunk and 1.0.2) for testing. Both are streaming to the same icecast server.

My current svn revision is 11669, the calls are coming in via sip using g.711 ulaw and it looks like lame/mod_shout is streaming it as a 16kbs, 8khz mono mp3 stream. I'm using a flash/flex applet I wrote to consume the icecast stream, although I have used totem to listen to the stream as well.

Any thoughts
Back to top
brian at freeswitch.org
Guest





PostPosted: Fri Feb 06, 2009 2:14 pm    Post subject: [Freeswitch-users] mod_shout delay in trunk Reply with quote

Yes this will be normal due to buffering. Have you tested svn trunk?

/b

On Feb 6, 2009, at 12:59 PM, Dan wrote:
Quote:
Hi,

With the 1.0.2 release i was able to to stream a call using mod_shout to an icecast server with only a 1 or two second delay to clients. With the current trunk that delay is now 8 to 10 seconds. I thought it might have been a change to mod_shout.c. I tried tweaking a few outbound buffer sizes with no luck so I just copied the 1.0.2 version of mod_shout.c over, compiled and reinstalled the module, restarted fs and still the delay is 8 to 10 seconds. I'm a little stumped. I currently have both versions installed (trunk and 1.0.2) for testing. Both are streaming to the same icecast server.

My current svn revision is 11669, the calls are coming in via sip using g.711 ulaw and it looks like lame/mod_shout is streaming it as a 16kbs, 8khz mono mp3 stream. I'm using a flash/flex applet I wrote to consume the icecast stream, although I have used totem to listen to the stream as well.

Any thoughts
Back to top
freeswitch-users at di...
Guest





PostPosted: Fri Feb 06, 2009 2:44 pm    Post subject: [Freeswitch-users] mod_shout delay in trunk Reply with quote

I have, do you know what would have changed between 1.0.2 and trunk that would cause the buffer to change? Also if its not in mod_shout.c (which I copied from 1.0.2 to trunk for testing with no luck), where else would fs be buffering? One thing I have noticed is that in 1.0.2 as soon as the dial plan hits my record statement I see mod_shout logging that it has connected to the icecast server, in trunk it takes about 5 seconds to see the same log mesage. Below is my current svn info
Path: .
URL: http://svn.freeswitch.org/svn/freeswitch/trunk
Repository Root: http://svn.freeswitch.org/svn
Repository UUID: d0543943-73ff-0310-b7d9-9358b9ac24b2
Revision: 11669
Node Kind: directory
Schedule: normal
Last Changed Author: brian
Last Changed Rev: 11669
Last Changed Date: 2009-02-06 11:29:51 -0700 (Fri, 06 Feb 2009)

----- Original Message -----
From: "Brian West" <brian@freeswitch.org>
To: freeswitch-users@lists.freeswitch.org
Sent: Friday, February 6, 2009 12:11:54 PM GMT -07:00 US/Canada Mountain
Subject: Re: [Freeswitch-users] mod_shout delay in trunk

Yes this will be normal due to buffering. Have you tested svn trunk?

/b

On Feb 6, 2009, at 12:59 PM, Dan wrote:
Quote:
Hi,

With the 1.0.2 release i was able to to stream a call using mod_shout to an icecast server with only a 1 or two second delay to clients. With the current trunk that delay is now 8 to 10 seconds. I thought it might have been a change to mod_shout.c. I tried tweaking a few outbound buffer sizes with no luck so I just copied the 1.0.2 version of mod_shout.c over, compiled and reinstalled the module, restarted fs and still the delay is 8 to 10 seconds. I'm a little stumped. I currently have both versions installed (trunk and 1.0.2) for testing. Both are streaming to the same icecast server.

My current svn revision is 11669, the calls are coming in via sip using g.711 ulaw and it looks like lame/mod_shout is streaming it as a 16kbs, 8khz mono mp3 stream. I'm using a flash/flex applet I wrote to consume the icecast stream, although I have used totem to listen to the stream as well.

Any thoughts




_______________________________________________ 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
brian at freeswitch.org
Guest





PostPosted: Fri Feb 06, 2009 2:51 pm    Post subject: [Freeswitch-users] mod_shout delay in trunk Reply with quote

Let me clarify.. yes this is normal file buffering was added so we wouldn't thrash your hard drive with tiny bits of data when recording calls so now it buffers and writes larger chunks to disk. This is why you have this delay which is 100% normal.... is realtime a critical thing? It is shout cast so you know it doesn't have to be realtime.. in fact some clients will buffer a little bit anyway and add to it.

/b

On Feb 6, 2009, at 1:43 PM, freeswitch-users@digitaldan.com (freeswitch-users@digitaldan.com) wrote:
Quote:
I have, do you know what would have changed between 1.0.2 and trunk that would cause the buffer to change? Also if its not in mod_shout.c (which I copied from 1.0.2 to trunk for testing with no luck), where else would fs be buffering? One thing I have noticed is that in 1.0.2 as soon as the dial plan hits my record statement I see mod_shout logging that it has connected to the icecast server, in trunk it takes about 5 seconds to see the same log mesage. Below is my current svn info
Path: .
Back to top
freeswitch-users at di...
Guest





PostPosted: Fri Feb 06, 2009 3:03 pm    Post subject: [Freeswitch-users] mod_shout delay in trunk Reply with quote

For me it is. For what I'm using it for I can tolerate around a second or two delay. I have the icecast server setup to only buffer 1K for their on-connect burst as well as my flash/flex player to only buffer 1k (yes I might as well not buffer at all, which I may end up doing). In 1.0.2 this worked very well. Is this buffer configurable? If not, where is it being set?

Thanks
Dan-
----- Original Message -----
From: "Brian West" <brian@freeswitch.org>
To: freeswitch-users@lists.freeswitch.org
Sent: Friday, February 6, 2009 12:47:53 PM GMT -07:00 US/Canada Mountain
Subject: Re: [Freeswitch-users] mod_shout delay in trunk

Let me clarify.. yes this is normal file buffering was added so we wouldn't thrash your hard drive with tiny bits of data when recording calls so now it buffers and writes larger chunks to disk. This is why you have this delay which is 100% normal.... is realtime a critical thing? It is shout cast so you know it doesn't have to be realtime.. in fact some clients will buffer a little bit anyway and add to it.

/b

On Feb 6, 2009, at 1:43 PM, freeswitch-users@digitaldan.com (freeswitch-users@digitaldan.com) wrote:
Quote:
I have, do you know what would have changed between 1.0.2 and trunk that would cause the buffer to change? Also if its not in mod_shout.c (which I copied from 1.0.2 to trunk for testing with no luck), where else would fs be buffering? One thing I have noticed is that in 1.0.2 as soon as the dial plan hits my record statement I see mod_shout logging that it has connected to the icecast server, in trunk it takes about 5 seconds to see the same log mesage. Below is my current svn info
Path: .




_______________________________________________ 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: Fri Feb 06, 2009 3:09 pm    Post subject: [Freeswitch-users] mod_shout delay in trunk Reply with quote

edit switch_ivr_play_say.c line 423

comment the line out and recompile.
Tell me if it helps you and i will consider making it configurable.


On Fri, Feb 6, 2009 at 2:01 PM, <freeswitch-users@digitaldan.com (freeswitch-users@digitaldan.com)> wrote:
Quote:
For me it is. For what I'm using it for I can tolerate around a second or two delay. I have the icecast server setup to only buffer 1K for their on-connect burst as well as my flash/flex player to only buffer 1k (yes I might as well not buffer at all, which I may end up doing). In 1.0.2 this worked very well. Is this buffer configurable? If not, where is it being set?

Thanks
Dan-
----- Original Message -----
From: "Brian West" <brian@freeswitch.org (brian@freeswitch.org)>
To: freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)

Sent: Friday, February 6, 2009 12:47:53 PM GMT -07:00 US/Canada Mountain
Subject: Re: [Freeswitch-users] mod_shout delay in trunk



Let me clarify.. yes this is normal file buffering was added so we wouldn't thrash your hard drive with tiny bits of data when recording calls so now it buffers and writes larger chunks to disk. This is why you have this delay which is 100% normal.... is realtime a critical thing? It is shout cast so you know it doesn't have to be realtime.. in fact some clients will buffer a little bit anyway and add to it.

/b

On Feb 6, 2009, at 1:43 PM, freeswitch-users@digitaldan.com (freeswitch-users@digitaldan.com) wrote:

Quote:
I have, do you know what would have changed between 1.0.2 and trunk that would cause the buffer to change? Also if its not in mod_shout.c (which I copied from 1.0.2 to trunk for testing with no luck), where else would fs be buffering? One thing I have noticed is that in 1.0.2 as soon as the dial plan hits my record statement I see mod_shout logging that it has connected to the icecast server, in trunk it takes about 5 seconds to see the same log mesage. Below is my current svn info
Path: .






_______________________________________________ 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
freeswitch-users at di...
Guest





PostPosted: Fri Feb 06, 2009 3:39 pm    Post subject: [Freeswitch-users] mod_shout delay in trunk Reply with quote

That worked great!

I wanted to say just how awesome Freeswitch is, I have been doing voip related development with SIP since 2000 and this is by far the most well designed piece of voip software I have used or developed on. I currently have a homegrown sip server built on the NIST sip stack with Sun's JMF libraries for RTP processing. 95% of the code and complexity is handling the SIP and RTP sessions, the other 5% is the final application logic and what is most important to me. By letting freeswitch do whats its good at (call routing, sip and media handling) it allows me to focus on what I'm good at (what should we do with those streams, like record them). I have been bragging about this project to anybody who will listen!

Dan-
----- Original Message -----
From: "Anthony Minessale" <anthony.minessale@gmail.com>
To: freeswitch-users@lists.freeswitch.org
Sent: Friday, February 6, 2009 1:07:44 PM GMT -07:00 US/Canada Mountain
Subject: Re: [Freeswitch-users] mod_shout delay in trunk

edit switch_ivr_play_say.c line 423

comment the line out and recompile.
Tell me if it helps you and i will consider making it configurable.


On Fri, Feb 6, 2009 at 2:01 PM, <freeswitch-users@digitaldan.com (freeswitch-users@digitaldan.com)> wrote:
Quote:
For me it is. For what I'm using it for I can tolerate around a second or two delay. I have the icecast server setup to only buffer 1K for their on-connect burst as well as my flash/flex player to only buffer 1k (yes I might as well not buffer at all, which I may end up doing). In 1.0.2 this worked very well. Is this buffer configurable? If not, where is it being set?

Thanks
Dan-
----- Original Message -----
From: "Brian West" <brian@freeswitch.org (brian@freeswitch.org)>
To: freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)

Sent: Friday, February 6, 2009 12:47:53 PM GMT -07:00 US/Canada Mountain
Subject: Re: [Freeswitch-users] mod_shout delay in trunk



Let me clarify.. yes this is normal file buffering was added so we wouldn't thrash your hard drive with tiny bits of data when recording calls so now it buffers and writes larger chunks to disk. This is why you have this delay which is 100% normal.... is realtime a critical thing? It is shout cast so you know it doesn't have to be realtime.. in fact some clients will buffer a little bit anyway and add to it.

/b

On Feb 6, 2009, at 1:43 PM, freeswitch-users@digitaldan.com (freeswitch-users@digitaldan.com) wrote:

Quote:
I have, do you know what would have changed between 1.0.2 and trunk that would cause the buffer to change? Also if its not in mod_shout.c (which I copied from 1.0.2 to trunk for testing with no luck), where else would fs be buffering? One thing I have noticed is that in 1.0.2 as soon as the dial plan hits my record statement I see mod_shout logging that it has connected to the icecast server, in trunk it takes about 5 seconds to see the same log mesage. Below is my current svn info
Path: .






_______________________________________________ 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

_______________________________________________ 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: Fri Feb 06, 2009 3:51 pm    Post subject: [Freeswitch-users] mod_shout delay in trunk Reply with quote

Thanks,

We appreciate the positive feedback!

if you revert the change I suggested and update i added a new variable

enable_file_write_buffering=false

set this variable on the channel before you start recording it with the set application or in the dialstring in {}
on outbound calls and it should skip the buffering.

Could you test it for me and confirm it works?

Thank you


On Fri, Feb 6, 2009 at 2:36 PM, <freeswitch-users@digitaldan.com (freeswitch-users@digitaldan.com)> wrote:
Quote:
That worked great!

I wanted to say just how awesome Freeswitch is, I have been doing voip related development with SIP since 2000 and this is by far the most well designed piece of voip software I have used or developed on. I currently have a homegrown sip server built on the NIST sip stack with Sun's JMF libraries for RTP processing. 95% of the code and complexity is handling the SIP and RTP sessions, the other 5% is the final application logic and what is most important to me. By letting freeswitch do whats its good at (call routing, sip and media handling) it allows me to focus on what I'm good at (what should we do with those streams, like record them). I have been bragging about this project to anybody who will listen!

Dan-
----- Original Message -----
From: "Anthony Minessale" <anthony.minessale@gmail.com (anthony.minessale@gmail.com)>
To: freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)


Sent: Friday, February 6, 2009 1:07:44 PM GMT -07:00 US/Canada Mountain
Subject: Re: [Freeswitch-users] mod_shout delay in trunk

edit switch_ivr_play_say.c line 423

comment the line out and recompile.
Tell me if it helps you and i will consider making it configurable.


On Fri, Feb 6, 2009 at 2:01 PM, <freeswitch-users@digitaldan.com (freeswitch-users@digitaldan.com)> wrote:
Quote:
For me it is. For what I'm using it for I can tolerate around a second or two delay. I have the icecast server setup to only buffer 1K for their on-connect burst as well as my flash/flex player to only buffer 1k (yes I might as well not buffer at all, which I may end up doing). In 1.0.2 this worked very well. Is this buffer configurable? If not, where is it being set?

Thanks
Dan-
----- Original Message -----
From: "Brian West" <brian@freeswitch.org (brian@freeswitch.org)>
To: freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)

Sent: Friday, February 6, 2009 12:47:53 PM GMT -07:00 US/Canada Mountain
Subject: Re: [Freeswitch-users] mod_shout delay in trunk



Let me clarify.. yes this is normal file buffering was added so we wouldn't thrash your hard drive with tiny bits of data when recording calls so now it buffers and writes larger chunks to disk. This is why you have this delay which is 100% normal.... is realtime a critical thing? It is shout cast so you know it doesn't have to be realtime.. in fact some clients will buffer a little bit anyway and add to it.

/b

On Feb 6, 2009, at 1:43 PM, freeswitch-users@digitaldan.com (freeswitch-users@digitaldan.com) wrote:

Quote:
I have, do you know what would have changed between 1.0.2 and trunk that would cause the buffer to change? Also if its not in mod_shout.c (which I copied from 1.0.2 to trunk for testing with no luck), where else would fs be buffering? One thing I have noticed is that in 1.0.2 as soon as the dial plan hits my record statement I see mod_shout logging that it has connected to the icecast server, in trunk it takes about 5 seconds to see the same log mesage. Below is my current svn info
Path: .






_______________________________________________ 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

_______________________________________________ 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
freeswitch-users at di...
Guest





PostPosted: Fri Feb 06, 2009 4:17 pm    Post subject: [Freeswitch-users] mod_shout delay in trunk Reply with quote

On line 424 I think it needs to be changed from

if (!vval || !switch_true(vval)) {
to
if (!vval || switch_true(vval)) {

Other wise it works, thanks!

----- Original Message -----
From: "Anthony Minessale" <anthony.minessale@gmail.com>
To: freeswitch-users@lists.freeswitch.org
Sent: Friday, February 6, 2009 1:48:31 PM GMT -07:00 US/Canada Mountain
Subject: Re: [Freeswitch-users] mod_shout delay in trunk

Thanks,

We appreciate the positive feedback!

if you revert the change I suggested and update i added a new variable

enable_file_write_buffering=false

set this variable on the channel before you start recording it with the set application or in the dialstring in {}
on outbound calls and it should skip the buffering.

Could you test it for me and confirm it works?

Thank you


On Fri, Feb 6, 2009 at 2:36 PM, <freeswitch-users@digitaldan.com (freeswitch-users@digitaldan.com)> wrote:
Quote:
That worked great!

I wanted to say just how awesome Freeswitch is, I have been doing voip related development with SIP since 2000 and this is by far the most well designed piece of voip software I have used or developed on. I currently have a homegrown sip server built on the NIST sip stack with Sun's JMF libraries for RTP processing. 95% of the code and complexity is handling the SIP and RTP sessions, the other 5% is the final application logic and what is most important to me. By letting freeswitch do whats its good at (call routing, sip and media handling) it allows me to focus on what I'm good at (what should we do with those streams, like record them). I have been bragging about this project to anybody who will listen!

Dan-
----- Original Message -----
From: "Anthony Minessale" <anthony.minessale@gmail.com (anthony.minessale@gmail.com)>
To: freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)


Sent: Friday, February 6, 2009 1:07:44 PM GMT -07:00 US/Canada Mountain
Subject: Re: [Freeswitch-users] mod_shout delay in trunk

edit switch_ivr_play_say.c line 423

comment the line out and recompile.
Tell me if it helps you and i will consider making it configurable.


On Fri, Feb 6, 2009 at 2:01 PM, <freeswitch-users@digitaldan.com (freeswitch-users@digitaldan.com)> wrote:
Quote:
For me it is. For what I'm using it for I can tolerate around a second or two delay. I have the icecast server setup to only buffer 1K for their on-connect burst as well as my flash/flex player to only buffer 1k (yes I might as well not buffer at all, which I may end up doing). In 1.0.2 this worked very well. Is this buffer configurable? If not, where is it being set?

Thanks
Dan-
----- Original Message -----
From: "Brian West" <brian@freeswitch.org (brian@freeswitch.org)>
To: freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)

Sent: Friday, February 6, 2009 12:47:53 PM GMT -07:00 US/Canada Mountain
Subject: Re: [Freeswitch-users] mod_shout delay in trunk



Let me clarify.. yes this is normal file buffering was added so we wouldn't thrash your hard drive with tiny bits of data when recording calls so now it buffers and writes larger chunks to disk. This is why you have this delay which is 100% normal.... is realtime a critical thing? It is shout cast so you know it doesn't have to be realtime.. in fact some clients will buffer a little bit anyway and add to it.

/b

On Feb 6, 2009, at 1:43 PM, freeswitch-users@digitaldan.com (freeswitch-users@digitaldan.com) wrote:

Quote:
I have, do you know what would have changed between 1.0.2 and trunk that would cause the buffer to change? Also if its not in mod_shout.c (which I copied from 1.0.2 to trunk for testing with no luck), where else would fs be buffering? One thing I have noticed is that in 1.0.2 as soon as the dial plan hits my record statement I see mod_shout logging that it has connected to the icecast server, in trunk it takes about 5 seconds to see the same log mesage. Below is my current svn info
Path: .






_______________________________________________ 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

_______________________________________________ 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

_______________________________________________ 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
jalsot at gmail.com
Guest





PostPosted: Fri Feb 06, 2009 4:37 pm    Post subject: [Freeswitch-users] mod_shout delay in trunk Reply with quote

Hello,

could this option be used to lower I/O load - to rather write more bytes
at once rather than one by one - on file recording (record_session)?

Regards,
Tamas

Anthony Minessale írta:
Quote:
Thanks,

We appreciate the positive feedback!

if you revert the change I suggested and update i added a new variable

enable_file_write_buffering=false

set this variable on the channel before you start recording it with
the set application or in the dialstring in {}
on outbound calls and it should skip the buffering.

Could you test it for me and confirm it works?

Thank you


On Fri, Feb 6, 2009 at 2:36 PM, <freeswitch-users@digitaldan.com
<mailto:freeswitch-users@digitaldan.com>> wrote:

That worked great!

I wanted to say just how awesome Freeswitch is, I have been doing
voip related development with SIP since 2000 and this is by far
the most well designed piece of voip software I have used or
developed on. I currently have a homegrown sip server built on
the NIST sip stack with Sun's JMF libraries for RTP processing.
95% of the code and complexity is handling the SIP and RTP
sessions, the other 5% is the final application logic and what is
most important to me. By letting freeswitch do whats its good at
(call routing, sip and media handling) it allows me to focus on
what I'm good at (what should we do with those streams, like
record them). I have been bragging about this project to anybody
who will listen!

Dan-

----- Original Message -----
From: "Anthony Minessale" <anthony.minessale@gmail.com
<mailto:anthony.minessale@gmail.com>>
To: freeswitch-users@lists.freeswitch.org
<mailto:freeswitch-users@lists.freeswitch.org>
Sent: Friday, February 6, 2009 1:07:44 PM GMT -07:00 US/Canada
Mountain
Subject: Re: [Freeswitch-users] mod_shout delay in trunk

edit switch_ivr_play_say.c line 423

comment the line out and recompile.
Tell me if it helps you and i will consider making it configurable.


On Fri, Feb 6, 2009 at 2:01 PM, <freeswitch-users@digitaldan.com
<mailto:freeswitch-users@digitaldan.com>> wrote:

For me it is. For what I'm using it for I can tolerate around
a second or two delay. I have the icecast server setup to
only buffer 1K for their on-connect burst as well as my
flash/flex player to only buffer 1k (yes I might as well not
buffer at all, which I may end up doing). In 1.0.2 this
worked very well. Is this buffer configurable? If not, where
is it being set?

Thanks
Dan-

----- Original Message -----
From: "Brian West" <brian@freeswitch.org
<mailto:brian@freeswitch.org>>
To: freeswitch-users@lists.freeswitch.org
<mailto:freeswitch-users@lists.freeswitch.org>
Sent: Friday, February 6, 2009 12:47:53 PM GMT -07:00
US/Canada Mountain
Subject: Re: [Freeswitch-users] mod_shout delay in trunk

Let me clarify.. yes this is normal file buffering was added
so we wouldn't thrash your hard drive with tiny bits of data
when recording calls so now it buffers and writes larger
chunks to disk. This is why you have this delay which is 100%
normal.... is realtime a critical thing? It is shout cast so
you know it doesn't have to be realtime.. in fact some clients
will buffer a little bit anyway and add to it.

/b

On Feb 6, 2009, at 1:43 PM, freeswitch-users@digitaldan.com
<mailto:freeswitch-users@digitaldan.com> wrote:

I have, do you know what would have changed between 1.0.2
and trunk that would cause the buffer to change? Also if
its not in mod_shout.c (which I copied from 1.0.2 to trunk
for testing with no luck), where else would fs be
buffering? One thing I have noticed is that in 1.0.2 as
soon as the dial plan hits my record statement I see
mod_shout logging that it has connected to the icecast
server, in trunk it takes about 5 seconds to see the same
log mesage. Below is my current svn info
Path: .



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

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
<mailto:sip%3A888@conference.freeswitch.org>
iax:guest@conference.freeswitch.org/888
<http://iax:guest@conference.freeswitch.org/888>
googletalk:conf+888@conference.freeswitch.org
<mailto:googletalk%3Aconf%2B888@conference.freeswitch.org>
pstn:213-799-1400

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

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
<mailto:sip%3A888@conference.freeswitch.org>
iax:guest@conference.freeswitch.org/888
<http://iax:guest@conference.freeswitch.org/888>
googletalk:conf+888@conference.freeswitch.org
<mailto:googletalk%3Aconf%2B888@conference.freeswitch.org>
pstn:213-799-1400
------------------------------------------------------------------------

_______________________________________________
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
msc at freeswitch.org
Guest





PostPosted: Fri Feb 06, 2009 4:39 pm    Post subject: [Freeswitch-users] mod_shout delay in trunk Reply with quote

Quote:
if you revert the change I suggested and update i added a new variable

enable_file_write_buffering=false

set this variable on the channel before you start recording it with the set
application or in the dialstring in {}
on outbound calls and it should skip the buffering.

Could you test it for me and confirm it works?

Thank you

Also, as payment for services rendered could you please add this
variable and description to the wiki?
http://wiki.freeswitch.org/wiki/Channel_Variables

Thanks!
-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
freeswitch-users at di...
Guest





PostPosted: Fri Feb 06, 2009 4:55 pm    Post subject: [Freeswitch-users] mod_shout delay in trunk Reply with quote

Done!
----- Original Message -----
From: "Michael Collins" <msc@freeswitch.org>
To: freeswitch-users@lists.freeswitch.org
Sent: Friday, February 6, 2009 2:36:39 PM GMT -07:00 US/Canada Mountain
Subject: Re: [Freeswitch-users] mod_shout delay in trunk

Quote:
if you revert the change I suggested and update i added a new variable

enable_file_write_buffering=false

set this variable on the channel before you start recording it with the set
application or in the dialstring in {}
on outbound calls and it should skip the buffering.

Could you test it for me and confirm it works?

Thank you

Also, as payment for services rendered could you please add this
variable and description to the wiki?
http://wiki.freeswitch.org/wiki/Channel_Variables

Thanks!
-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
msc at freeswitch.org
Guest





PostPosted: Fri Feb 06, 2009 5:07 pm    Post subject: [Freeswitch-users] mod_shout delay in trunk Reply with quote

Quote:
Done!

Many thanks!

_______________________________________________
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 07, 2009 4:28 pm    Post subject: [Freeswitch-users] mod_shout delay in trunk Reply with quote

tamas,

the opposite. The default is to not do one by one and setting the var to false makes it more i/o intensive but it would
provide more real time recording when recording to streams.

BTW the reversed logic is fixed in tree

On Fri, Feb 6, 2009 at 3:36 PM, Tamas <jalsot@gmail.com (jalsot@gmail.com)> wrote:
Quote:
Hello,

could this option be used to lower I/O load - to rather write more bytes
at once rather than one by one - on file recording (record_session)?

Regards,
Tamas



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