Fredrik Emil Jensen
2005-Dec-16 05:29 UTC
[Asterisk-Users] ztdummy / timer problem with kernel 2.6.14
I got a problem with musiconhold / meetme which I cannot get to work correctly. I just install a fresh installation off Fedora core 4 and did a yum update on the system before I downloaded asterisk 1.2.1. First I compiled zaptel with make clean, make linux26, make install, make config, and then I configured libpri with make clean, make, make install. I restarted the system and sees that zaptel is bringing up ztdummy. Doing a lsmod I can see this:> ztdummy 7816 0 zaptel 193540 12 ztdummy crc_ccitt 6209 1 zaptel So the modules have been added into the system correctly. I then compiled and install asterisk with, make clean, make, make mpg123, make install, make samples. And then I added test user in sip.conf, added a new exten => 605,1,MusicOnHold I edited the zaptel.conf to remove the ; in front of musiconhold default, then I started asterisk with safe_asterisk, logged in with my sip client. Now when I dial exten 605, I see this in asterisk console: -- Executing Answer("SIP/590-6f28", "") in new stack -- Executing MusicOnHold("SIP/590-6f28", "") in new stack -- Started music on hold, class 'default', on channel 'SIP/590-6f28' I can also see that mpg123 has started, ps aux |grep -i mpg123 Now the problem is that the music is playing for 1 sec, stops up for a couple sec then starts again, stops up and starting etc, doing a moh reload it play for about 2 sec and stops, starts, stops etc. I cannot understand what I have done wrong during the installation. When I do a zttest I get this results:> Results after 49 passes --- Best: 99.963379 -- Worst: 99.926758 -- Average: 99.948681 I have also tried on the same server to use Slackware 10.2, reinstall, and created a kernel 2.6.14, remove the usb drivers to make sure that zaptel not using that, did many different things with this but still the same problem (also results with zttest). I have also tried with madplay, shoutcast streams, but still the same problem, and to top this off I also had the same problem with many different distro on different virtual hosts on a Vmware enterprise server (I know that vmware is the problem with vmware tools and rtc), but anyway this very strange/irritating for me that this doesn't work. Do I have need to by a digium card to get the timer problem work correctly with asterisk? Is there something that I have missed during the installation or is it my hardware that is not good enough? The hardware is an IBM 306 with 3.6 xeon, 1GB ram and raid 1, 2x 80 GB sata disk. Is there anyone that can help me, has the same problem and a solution for me to try out!! Regards, Fredrik Jensen
Tomislav Parcina
2005-Dec-16 07:23 UTC
[Asterisk-Users] Re: ztdummy / timer problem with kernel 2.6.14
In article <A6E86FBF13E4EF4FB4C5FCB7EC114F980611F3@netpower- srv02.netpower.lan>, fredrik@netpower.no says...> I just install a fresh installation off Fedora core 4 and did a yum > update on the system before I downloaded asterisk 1.2.1. First I > compiled zaptel with make clean, make linux26,You don't need "make linux26" anymore, you can use "make".> strange/irritating for me that this doesn't work. Do I have need to by a > digium card to get the timer problem work correctly with asterisk?I don't know how to solve your problem, but with Kernel 2.6 (it has timing mehanism) you don't need Digium hardver to make MOH work. Hope this helps. -- Tomislav Parcina ime.prezime@email.t-com.hr
Fredrik Emil Jensen
2005-Dec-19 08:18 UTC
[Asterisk-Users] Re: ztdummy / timer problem with kernel 2.6.14
Well, I formated the system installed slackware 10.2 compiled a new kernel with 2.4.31, modprobe usb-uhci, install zaptel, no problem, modprobe ztdummy, modprobe zaptel. Got this in lsmod ztdummy 1656 0 (unused) zaptel 219520 14 [ztdummy] usb-uhci 21936 0 [ztdummy] Then I installed asterisk, enable musiconhold on an extension. Dialed in, still the same problem, but this time the music was playing for some more seconds, and stops, starts etc. Doing a moh reload then music will play right away, but stops up after 5 - 10 sec. The strange part is that streaming work fine now, using exten 606,1,MP3Player(webaddress), but not moh with mpg123 to a local mp3 file! Doing a zttest I get this results. --- Results after 23 passes --- Best: 99.975586 -- Worst: 99.975586 -- Average: 99.975586 Much better results then what I got on 2.6.14 Results after 49 passes --- Best: 99.963379 -- Worst: 99.926758 -- Average: 99.948681 Does anyone know why I got this type of results? Regards, Fredrik Jensen -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Tomislav Parcina Sent: 16. desember 2005 15:23 To: asterisk-users@lists.digium.com Subject: [Asterisk-Users] Re: ztdummy / timer problem with kernel 2.6.14 In article <A6E86FBF13E4EF4FB4C5FCB7EC114F980611F3@netpower- srv02.netpower.lan>, fredrik@netpower.no says...> I just install a fresh installation off Fedora core 4 and did a yum > update on the system before I downloaded asterisk 1.2.1. First I > compiled zaptel with make clean, make linux26,You don't need "make linux26" anymore, you can use "make".> strange/irritating for me that this doesn't work. Do I have need to bya> digium card to get the timer problem work correctly with asterisk?I don't know how to solve your problem, but with Kernel 2.6 (it has timing mehanism) you don't need Digium hardver to make MOH work. Hope this helps. -- Tomislav Parcina ime.prezime@email.t-com.hr _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users