Benjamin Jacob
2008-Apr-25 06:23 UTC
[asterisk-users] Playback / Background / Read choppy, but musiconhold fine, even with ztdummy
Hello ppl, One on my clients' machine had Asterisk 1.4.4. installed. The complained of choppy Playback of gsm files. So scouring the internet gave me the solution of installing ztdummy and loading it as a module. Did it (using zaptel-1.4.1) , but to no effect. Re-compiled asterisk and re-installed. Sill no effect. Do I have to specify any parameter in the Asterisk compilation to look at ztdummy/rtc? As far as I remember (am coming back to Asterisk after quite some time now), you don't really need to set anything over there for any zaptel specific compilation? And yes, all the files are gsm files and the codec used for the calls is ulaw. I even tried converting those gsm files to wav using sox and then playing them, but the behaviour is the same. Any ideas anyone.. something I am missing ?? TiA, - Ben. --------------------------------- Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080424/29b73638/attachment.htm
Benjamin Jacob
2008-Apr-25 12:40 UTC
[asterisk-users] Playback / Background / Read choppy, but musiconhold fine, even with ztdummy
Are my messages getting through? This is urgent!! Any pointers? Benjamin Jacob <ben4asterisk at yahoo.com> wrote: Date: Thu, 24 Apr 2008 23:23:08 -0700 (PDT) From: Benjamin Jacob <ben4asterisk at yahoo.com> Subject: Playback / Background / Read choppy, but musiconhold fine, even with ztdummy To: asterisk-users at lists.digium.com Hello ppl, One on my clients' machine had Asterisk 1.4.4. installed. The complained of choppy Playback of gsm files. So scouring the internet gave me the solution of installing ztdummy and loading it as a module. Did it (using zaptel-1.4.1) , but to no effect. Re-compiled asterisk and re-installed. Sill no effect. Do I have to specify any parameter in the Asterisk compilation to look at ztdummy/rtc? As far as I remember (am coming back to Asterisk after quite some time now), you don't really need to set anything over there for any zaptel specific compilation? And yes, all the files are gsm files and the codec used for the calls is ulaw. I even tried converting those gsm files to wav using sox and then playing them, but the behaviour is the same. Any ideas anyone.. something I am missing ?? TiA, - Ben. --------------------------------- Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. --------------------------------- Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080425/83ebae0e/attachment.htm
Tony Mountifield
2008-Apr-25 13:35 UTC
[asterisk-users] Playback / Background / Read choppy, but musiconhold fine, even with ztdummy
In article <841715.98554.qm at web46405.mail.sp1.yahoo.com>, Benjamin Jacob <ben4asterisk at yahoo.com> wrote:> > One on my clients' machine had Asterisk 1.4.4. installed. The complained of choppy Playback > of gsm files. > So scouring the internet gave me the solution of installing ztdummy and loading it as a module. > Did it (using zaptel-1.4.1) , but to no effect. Re-compiled asterisk and re-installed. Sill > no effect. > > Do I have to specify any parameter in the Asterisk compilation to look at ztdummy/rtc? As > far as I remember (am coming back to Asterisk after quite some time now), you don't really > need to set anything over there for any zaptel specific compilation? > > And yes, all the files are gsm files and the codec used for the calls is ulaw. > > I even tried converting those gsm files to wav using sox and then playing them, but the > behaviour is the same. > > Any ideas anyone.. something I am missing ??Firstly, check whether Asterisk has chan_zap loaded and access to zaptel: *CLI> zap show channels Chan Extension Context Language MusicOnHold pseudo default *CLI> If you don't get pseudo shown, then you are not getting the benefit of ztdummy. However, the probably main cause of choppy sound is poor timing from the SIP client (I'm assuming SIP), because Asterisk by default uses the incoming stream to generate timing for the outbound stream. There are two main things to try: 1. Make sure that the SIP clients are NOT using silence suppression (may be referred to as VAD, bandwidth saving, or something similar). 2. If ztdummy is running ok, edit /etc/asterisk/asterisk.conf and enable the line "internal_timing=yes". That should make it play out based on internal zaptel timing instead of timing off the incoming stream, I think. Cheers Tony -- Tony Mountifield Work: tony at softins.co.uk - http://www.softins.co.uk Play: tony at mountifield.org - http://tony.mountifield.org