Hi, i use asterisk-ng with i4l devices. It works fine except the Music on hold application. Calling the PBX on a ttyI device the sound pulse with a frequency of approx 500 msec. Calling the PBX via IAX the sound is better but not so good as the gsm files. When asterisk boots i get: WARNING[1024]: File res_musiconhold.c, Line 466 (moh_register): unable to open pseudo channel for timing... Sound may be choppy. Asterisk tries to open /dev/zap/pseudo but i have no zap devices so it has to fail. Stopping asterisk i get: Ouch ... error while writing audio data: Broken pipe. I use a debian system on a P166MMX and a 32kbps, 11kHz mp3 file. Even a faster hardware (AMD500) and a fresh compiled mpg123 makes no difference. Maybe someone on the list can give me a hint. Thank you Jens
Hi, music on hold needs a zaptel device for the timing. if you dont have any zaptel hardware you can use ztdummy (which pulls the timing from the usb controller. regards kapejod -- Klaus-Peter Junghanns CEO,CTO Junghanns.NET Internet-Services & Software-Development GmbH Breite Strasse 13 - 12167 Berlin - Germany fon: +49 30 79705392 fax: +49 30 79705391 mobile: +49 160 7503372 email: kpj at junghanns.net Am Die, 2003-02-18 um 23.36 schrieb Jens-E. Hansen:> Hi, > > i use asterisk-ng with i4l devices. It works fine except the Music on > hold application. Calling the PBX on a ttyI device the sound pulse with > a frequency of approx 500 msec. Calling the PBX via IAX the sound is > better but not so good as the gsm files. > > When asterisk boots i get: WARNING[1024]: File res_musiconhold.c, Line > 466 (moh_register): unable to open pseudo channel for timing... Sound > may be choppy. > > Asterisk tries to open /dev/zap/pseudo but i have no zap devices so it > has to fail. > > Stopping asterisk i get: Ouch ... error while writing audio data: Broken > pipe. > > I use a debian system on a P166MMX and a 32kbps, 11kHz mp3 file. > Even a faster hardware (AMD500) and a fresh compiled mpg123 makes no > difference. > > Maybe someone on the list can give me a hint. > > Thank you > Jens > > > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users at lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users
Stefano Finetti Lynx Automotive srl
2003-Feb-19 06:20 UTC
[Asterisk-Users] MusicOnHold pulsing sound
"Jens-E. Hansen" Wrote:> > When asterisk boots i get: WARNING[1024]: File res_musiconhold.c, Line > 466 (moh_register): unable to open pseudo channel for timing... Sound > may be choppy. > > Asterisk tries to open /dev/zap/pseudo but i have no zap devices so it > has to fail.I've the same error you have. In my /dev dir I've also the /zap subdir with pseudo device inside. (I currently DON'T have any zaptel hardware installed, but i've compiled it in order to have it ready if I install the hardware later, now i'm just testing asterisk) I've tried to compile ztdummy but it breaks on compiling. This is the output for #make ztdummy [root at asterisk zaptel]# make ztdummy cc ztdummy.o -o ztdummy /usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../crt1.o: In function `_start': /usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../crt1.o(.text+0x18): undefined reference to `main' ztdummy.o: In function `init_module': ztdummy.o(.text+0x6): undefined reference to `uhci_devices' ztdummy.o(.text+0x26): undefined reference to `printk_R1b7d4074' ztdummy.o(.text+0x46): undefined reference to `kmalloc_R93d4cfe6' ztdummy.o(.text+0x5f): undefined reference to `printk_R1b7d4074' ztdummy.o(.text+0x8c): undefined reference to `sprintf_R1d26aa98' ztdummy.o(.text+0xa0): undefined reference to `sprintf_R1d26aa98' ztdummy.o(.text+0xb8): undefined reference to `sprintf_R1d26aa98' ztdummy.o(.text+0x100): undefined reference to `zt_register' ztdummy.o(.text+0x114): undefined reference to `printk_R1b7d4074' ztdummy.o(.text+0x120): undefined reference to `kfree_R037a0cba' ztdummy.o(.text+0x142): undefined reference to `free_irq_Rf20dabd8' ztdummy.o(.text+0x15e): undefined reference to `request_irq_R0c60f2e0' ztdummy.o(.text+0x174): undefined reference to `printk_R1b7d4074' ztdummy.o(.text+0x180): undefined reference to `kfree_R037a0cba' ztdummy.o(.text+0x1a2): undefined reference to `uhci_interrupt' ztdummy.o(.text+0x1a8): undefined reference to `request_irq_R0c60f2e0' ztdummy.o(.text+0x1c3): undefined reference to `alloc_td' ztdummy.o(.text+0x1d7): undefined reference to `fill_td' ztdummy.o(.text+0x1ee): undefined reference to `insert_td_horizontal' ztdummy.o(.text+0x20e): undefined reference to `printk_R1b7d4074' ztdummy.o(.text+0x222): undefined reference to `printk_R1b7d4074' ztdummy.o: In function `cleanup_module': ztdummy.o(.text+0x246): undefined reference to `zt_unregister' ztdummy.o(.text+0x25a): undefined reference to `free_irq_Rf20dabd8' ztdummy.o(.text+0x266): undefined reference to `kfree_R037a0cba' ztdummy.o(.text+0x27c): undefined reference to `unlink_td' ztdummy.o(.text+0x28f): undefined reference to `delete_desc' ztdummy.o(.text+0x2ad): undefined reference to `printk_R1b7d4074' ztdummy.o: In function `ztdummy_interrupt': ztdummy.o(.text+0x366): undefined reference to `zt_receive' ztdummy.o(.text+0x372): undefined reference to `zt_transmit' ztdummy.o(.text+0x3a1): undefined reference to `printk_R1b7d4074' collect2: ld returned 1 exit status make: *** [ztdummy] Error 1 Any suggestion? I've read the archive finding out there is a patch for the kernel 2.4.20, but i'm still on 2.4.18 so... Bye -- Stefano Finetti ---- System Consultant BlueBox Project Coordinator Lynx Automotive srl email: ssfinetti at lynxautomotive.it tel: +39 199 79 79 30 fax: +39 06 233 227 934 Linux Registered User #271978 ----