Re: [Freeswitch-users] Choppy sound with PCMU

2009-12-07 Thread eaf
him, MikeJ, and bkw for several years, and they almost always have very good ideas as to troubleshoot a problem in FreeSWITCH. It's extremely frustrating to try to help people out who won't try the provided suggestions first. And note directly to eaf - bogomips is quite possibly the least

Re: [Freeswitch-users] Choppy sound with PCMU

2009-12-07 Thread eaf
As for the asterisk comparison, not sure how to answer you, that's your decision. On Mon, Dec 7, 2009 at 9:28 AM, eaf erandr-j...@usa.net wrote: Here is what I found... I tried high-priority scheduling as per your suggestion, reniced the program explicitly, rewrote timer thread to sleep on cond

Re: [Freeswitch-users] Choppy sound with PCMU

2009-12-03 Thread eaf
thread do queue_pop() instead of queue_trypop() intermixed with 1ms sleeps? This looping is such a waste... eaf wrote: As I see it, switch_cond_next() currently is just a do_sleep(1000). Yes, it could be mapped to a 1ms timer, but #define DISABLE_1MS_COND overrides that. Yeah

Re: [Freeswitch-users] Choppy sound with PCMU

2009-12-03 Thread eaf
In this case an incoming call rang to both FS and Asterisk, Asterisk picked up, but the surge of activity made FS timer thread miss a beat or two. eaf wrote: Oh, it's not just one timer thread... Why, why is sql_thread keeps on checking for messages every millisecond? Couldn't there be some signalling

Re: [Freeswitch-users] Choppy sound with PCMU

2009-12-03 Thread eaf
it Why don't you tell us the whole story about what OS/platform you are using here rather that form conjectures about what is wrong with our code that thousands of people are happy with. On Thu, Dec 3, 2009 at 8:55 AM, eaf erandr-j...@usa.net wrote: Btw, I have these popping up in my

Re: [Freeswitch-users] Choppy sound with PCMU

2009-12-03 Thread eaf
a little and how to get rid of periodic CRIT messages about Virtual Machine Migration. Anthony Minessale-2 wrote: What about the things I spent time suggesting in my last email? Did you try them because I was actually curious if they made any impact. On Thu, Dec 3, 2009 at 11:29 AM, eaf

Re: [Freeswitch-users] Choppy sound with PCMU

2009-12-03 Thread eaf
Oh, you mean giving FS higher priority? Yeah, as a last resort I'll do that. At the moment, I hope it won't be necessary as I can make those hyper threads behave, and will see how that goes first. I see where your implementation could be coming from. There is a queue of SQL queries in sofia.c

[Freeswitch-users] Best way to run originate calls through dial plan

2009-12-02 Thread eaf
What would be the best way of making originate() run call through a dial plan (compared to directly going to a specified VOIP gateway). Would it be loopbacks, i.e. smth like this? /opt/freeswitch/bin/fs_cli -x originate

Re: [Freeswitch-users] Best way to run originate calls through dial plan

2009-12-02 Thread eaf
2, 2009 at 6:47 AM, eaf erandr-j...@usa.net wrote: What would be the best way of making originate() run call through a dial plan (compared to directly going to a specified VOIP gateway). Would it be loopbacks, i.e. smth like this? /opt/freeswitch/bin/fs_cli -x originate

Re: [Freeswitch-users] Choppy sound with PCMU

2009-12-02 Thread eaf
Can I reduce resolution of that timer thread 10 times? I mean, I glanced through the code, and see that among others (are there others?) RTP and IVR set up their timers that are subsequently managed by this thread. RTP timers should be eliminated by that setting you've suggested. IVR timers are

Re: [Freeswitch-users] Choppy sound with PCMU

2009-12-02 Thread eaf
? Every minute or so? Did I misconfigure it? eaf wrote: Say, what if that thread is made to suspend on a condition variable in case if there are no timers registered in TIMER_MATRIX? Then, if some other thread comes up and adds its timer into the matrix, it could wake up the timer thread

Re: [Freeswitch-users] Choppy sound with PCMU

2009-12-02 Thread eaf
OK, I'm slow. It's music-on-hold, and it's playing non-stop like that timer thread. Even when there are no calls. Why? eaf wrote: Oh, looks like the timers are also used for streaming local data in read_stream_thread(). Due to this there is always one timer active with 20ms interval

Re: [Freeswitch-users] Choppy sound with PCMU

2009-12-02 Thread eaf
, at 7:31 PM, eaf erandr-j...@usa.net wrote: Can I reduce resolution of that timer thread 10 times? I mean, I glanced through the code, and see that among others (are there others?) RTP and IVR set up their timers that are subsequently managed by this thread. RTP timers should

[Freeswitch-users] Choppy sound with PCMU

2009-12-01 Thread eaf
Hi, I'm trying to migrate from Asterisk to FreeSWITCH (really like the way how it can be programmed), but ran into one issue with sound quality that I just cannot workaround by myself. I would describe the sound problem as being choppy. From time to time small portions of the other party's voice

Re: [Freeswitch-users] Choppy sound with PCMU

2009-12-01 Thread eaf
I should also add, after browsing through some topics here, that my SIP provider sends 172-byte RTP frames, which is in accordance with ptime:20 that it gives to FreeSWITCH. eaf wrote: Hi, I'm trying to migrate from Asterisk to FreeSWITCH (really like the way how it can be programmed