On Wed February 22 2006 12:33, cibi wrote:
> Maurizio Marini schrieb:
> > On Wed February 22 2006 11:28, Bielicki Michael wrote:
> >> I would additionaly also convert the mp3 files into alaw files.  
> >> reduces the cpu power required to handle moh to a minimum :)
> > what tool do u use to do it?
> > sox?
> 
> See http://5sn.net/asterisk/rawplayer/
> There is also a script file for it
> 
> (found at http://voip-info.org/wiki/index.php?page=Asterisk+mpg123+faking+it )
> 
> >uncommenting ztdummy into Makefile of zaptel 1.2 maybe fix it; maybe ticket 
> >closed
> vISDN doesn't require Zaptel, so not everyone might have it.
> 
> bye,
> Carsten
Thnx Carsten :)
i created 
mkdir -p /var/lib/asterisk/mohmp3/default/native
cd /var/lib/asterisk/mohmp3/default/native

copied there 3 standard mp3 
/var/lib/asterisk/mohmp3/default/native# cp ../../*.mp3 .

now i have:
debian:/var/lib/asterisk/mohmp3/default/native# ls -la
total 6876
drwxr-xr-x 2 root root    4096 2006-02-22 12:52 .
drwxr-xr-x 3 root root    4096 2006-02-22 12:49 ..
-rwxr-xr-x 1 root root 1939812 2006-02-22 12:50 fpm-calm-river.mp3
-r--r--r-- 1 root root 2582496 2006-02-22 12:50 fpm-sunshine.mp3
-r--r--r-- 1 root root 2217563 2006-02-22 12:50 fpm-world-mix.mp3

now i run mpg123 with pipe to sox
mpg123 -s --mono -r 8000 -f 4096 -b 10000 fpm-world-mix.mp3 | sox -t raw -r 
8000 -s -w -c 1 - -r 8000 -c 1 -w fpm-world-mix.gsm
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2 and 3.
Version 0.59r (1999/Jun/15). Written and copyrights by Michael Hipp.
Uses code from various people. See 'README' for more!
THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT YOUR OWN RISK!

Playing MPEG stream from fpm-world-mix.mp3 ...
MPEG 1.0 layer III, 128 kbit/s, 44100 Hz joint-stereo
Warning, flexibel rate not heavily tested!

[2:18] Decoding of fpm-world-mix.mp3 finished.



as u see, i get orrible:
Warning, flexibel rate not heavily tested!

so, that is the mesage coming from mpg123 when playing asterisk standard mp3..
something is wrong in all thi stuff!
astersik standard mp3 shouldn't give any problem with mpg123, doesn't it?

now i have:
var/lib/asterisk/mohmp3/default/native# ls -la
total 7264
drwxr-xr-x 2 root root    4096 2006-02-22 12:54 .
drwxr-xr-x 3 root root    4096 2006-02-22 12:49 ..
-rw-r--r-- 1 root root  161007 2006-02-22 12:54 fpm-calm-river.gsm
-rwxr-xr-x 1 root root 1939812 2006-02-22 12:54 fpm-calm-river.mp3
-rw-r--r-- 1 root root  266277 2006-02-22 12:52 fpm-sunshine.gsm
-r--r--r-- 1 root root 2582496 2006-02-22 12:54 fpm-sunshine.mp3
-rw-r--r-- 1 root root  221892 2006-02-22 12:54 fpm-world-mix.gsm
-r--r--r-- 1 root root 2217563 2006-02-22 12:54 fpm-world-mix.mp3

and in musiconhold.conf
[classes]
[moh_files]
default => /var/lib/asterisk/mohmp3/default/native,r
 
following 
http://5sn.net/asterisk/rawplayer/
suggestions.

restarting asterisk!

-- 
Maurizio Marini                 GSM +39-335-8259739
Fano: +39-0721-855285           Milano +39-02303123406
S. Costanzo: +39-0721950396     IAXTel: (700) 350-1234
Crashing is the only thing windows does quickly.
_______________________________________________
Visdn-hackers mailing list
[email protected]
https://mailman.uli.it/mailman/listinfo/visdn-hackers

Reply via email to