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
>
>
>
>
now it's seems ok :)
i have downloaded native dir by http://5sn.net/asterisk/rawplayer/
instead of using the output of command i used in previous post;
now i have:
ls -la /var/lib/asterisk/mohmp3/default/native
total 20872
drwxr-xr-x 2 root root 4096 2006-02-22 13:45 .
drwxr-xr-x 4 root root 4096 2006-02-22 13:09 ..
-rw-r--r-- 1 root root 135168 2005-02-17 22:53 fpm-calm-river.gsm
-rw-r--r-- 1 root root 655360 2005-02-17 22:53 fpm-calm-river.mu
-rw-r--r-- 1 root root 655360 2005-02-17 22:53 fpm-calm-river.pcm
-rw-r--r-- 1 root root 1310720 2005-02-17 22:53 fpm-calm-river.raw
-rw-r--r-- 1 root root 1310720 2005-02-17 22:53 fpm-calm-river.sln
-rw-r--r-- 1 root root 655360 2005-02-17 22:53 fpm-calm-river.ul
-rw-r--r-- 1 root root 655360 2005-02-17 22:53 fpm-calm-river.ulaw
-rw-r--r-- 1 root root 1310764 2005-02-17 22:53 fpm-calm-river.wav
-rw-r--r-- 1 root root 133180 2005-02-17 22:53 fpm-calm-river.WAV
-rw-r--r-- 1 root root 133180 2005-02-17 22:53 fpm-calm-river.wav49
-rw-r--r-- 1 root root 135168 2005-02-17 22:53 fpm-sunshine.gsm
-rw-r--r-- 1 root root 655360 2005-02-17 22:53 fpm-sunshine.mu
-rw-r--r-- 1 root root 655360 2005-02-17 22:53 fpm-sunshine.pcm
-rw-r--r-- 1 root root 1310720 2005-02-17 22:53 fpm-sunshine.raw
-rw-r--r-- 1 root root 1310720 2005-02-17 22:53 fpm-sunshine.sln
-rw-r--r-- 1 root root 655360 2005-02-17 22:53 fpm-sunshine.ul
-rw-r--r-- 1 root root 655360 2005-02-17 22:53 fpm-sunshine.ulaw
-rw-r--r-- 1 root root 1310764 2005-02-17 22:53 fpm-sunshine.wav
-rw-r--r-- 1 root root 133180 2005-02-17 22:53 fpm-sunshine.WAV
-rw-r--r-- 1 root root 133180 2005-02-17 22:53 fpm-sunshine.wav49
-rw-r--r-- 1 root root 141933 2005-02-17 22:53 fpm-world-mix.gsm
-rw-r--r-- 1 root root 688128 2005-02-17 22:53 fpm-world-mix.mu
-rw-r--r-- 1 root root 688128 2005-02-17 22:53 fpm-world-mix.pcm
-rw-r--r-- 1 root root 1376256 2005-02-17 22:53 fpm-world-mix.raw
-rw-r--r-- 1 root root 1376256 2005-02-17 22:53 fpm-world-mix.sln
-rw-r--r-- 1 root root 688128 2005-02-17 22:53 fpm-world-mix.ul
-rw-r--r-- 1 root root 688128 2005-02-17 22:53 fpm-world-mix.ulaw
-rw-r--r-- 1 root root 1376300 2005-02-17 22:53 fpm-world-mix.wav
-rw-r--r-- 1 root root 139876 2005-02-17 22:53 fpm-world-mix.WAV
-rw-r--r-- 1 root root 139876 2005-02-17 22:53 fpm-world-mix.wav49
and into musiconhold.conf i have:
[classes]
[moh_files]
default => /var/lib/asterisk/mohmp3/default/native,r
only!
and at cli i get:
*CLI> moh classes show
Class: default
Mode: files
Directory: /var/lib/asterisk/mohmp3/default/native
Format: slin
*CLI> moh files show
Class: default
File: /var/lib/asterisk/mohmp3/default/native/fpm-calm-river
File: /var/lib/asterisk/mohmp3/default/native/fpm-sunshine
File: /var/lib/asterisk/mohmp3/default/native/fpm-world-mix
in extension.conf i have:
; Answer required as Music On Hold does not answer the call
exten => 6000,1,Answer
exten => 6000,2,MusicOnHold()
exten => 6000,3,Hangup
whan i call 6000 i hear one of 3 randomly (i suppose the r after native gives
that)
-- Executing Answer("SIP/105-28e8", "") in new stack
-- Executing MusicOnHold("SIP/105-28e8", "") in new stack
-- Started music on hold, class 'default', on SIP/105-28e8
-- Stopped music on hold on SIP/105-28e8
i think that i will never see any more
Warning, flexibel rate not heavily tested!
nightmare!
thnx all :)
m.
--
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