Hi all,
hab den Asterisk 1.0.9 auf FC4 laufen und es geht kein MOH. Hab die Soundkarte nachinstalliert, d.h. im BIOS ge-enabled und ich kann Musik hören, wenn ich mpg321 von der Console starte, nur MOH geht nicht.
musiconhold.conf
modules.conf
asterisk-console
hab schon alles ausprobiert, aber keine Idee. Da ich Musik von mpg321 an der Soundkarte hören kann, denke ich, das das passt und das Problem irgendwo beim Asterisk liegt.
Da in dem RPM kein mp3 war, hab ich mir eins runtergesaugt und es in den mohmp3-ordner kopiert.
Hat jemand von Euch eine Idee, was ich falsch gemacht habe oder ggf. vergessen habe?
Herzlichen Dank
Thomas
hab den Asterisk 1.0.9 auf FC4 laufen und es geht kein MOH. Hab die Soundkarte nachinstalliert, d.h. im BIOS ge-enabled und ich kann Musik hören, wenn ich mpg321 von der Console starte, nur MOH geht nicht.
musiconhold.conf
Code:
;
; Music on hold class definitions
;
[classes]
;default => quietmp3:/var/lib/asterisk/mohmp3
default => mp3:/var/lib/asterisk/mohmp3
;loud => mp3:/var/lib/asterisk/mohmp3
;random => quietmp3:/var/lib/asterisk/mohmp3,-z
;unbuffered => mp3nb:/var/lib/asterisk/mohmp3
;quietunbuf => quietmp3nb:/var/lib/asterisk/mohmp3
; Note that the custom mode cannot handle escaped parameters (specifically embedded spaces)
;manual => custom:/var/lib/asterisk/mohmp3,/usr/bin/mpg123 -q -r 8000 -f 8192 -b 2048 --mono -s
modules.conf
Code:
;
; Asterisk configuration file
;
; Module Loader configuration file
;
[modules]
autoload=yes
;
; If you want, load the GTK console right away.
; Don't load the KDE console since
; it's not as sophisticated right now.
;
noload => pbx_gtkconsole.so
;load => pbx_gtkconsole.so
noload => pbx_kdeconsole.so
;
; Intercom application is obsoleted by
; chan_oss. Don't load it.
;
noload => app_intercom.so
;
; Explicitly load the chan_modem.so early on to be sure
; it loads before any of the chan_modem_* 's afte rit
;
load => chan_modem.so
load => res_musiconhold.so
;
; Load either OSS or ALSA, not both
; By default, load OSS only (automatically) and do not load ALSA
;
noload => chan_alsa.so
;noload => chan_oss.so
;
; Module names listed in "global" section will have symbols globally
; exported to modules loaded after them.
;
[global]
chan_modem.so=yes
asterisk-console
Code:
[root@legolas ~]# asterisk -vvvvvvvvvvvvvvvvr
== Parsing '/etc/asterisk/asterisk.conf': Found
== Parsing '/etc/asterisk/extconfig.conf': Found
Asterisk 1.0.9, Copyright (C) 1999-2004 Digium.
Written by Mark Spencer <[email protected]>
=========================================================================
Connected to Asterisk 1.0.9 currently running on legolas (pid = 2826)
Verbosity was 3 and is now 16
-- Remote UNIX connection
-- Executing Dial("SIP/600-0411", "SIP/400|60") in new stack
-- Called 400
-- SIP/400-98cd is ringing
-- SIP/400-98cd answered SIP/600-0411
-- Attempting native bridge of SIP/600-0411 and SIP/400-98cd
-- Started music on hold, class 'default', on SIP/600-0411
-- Stopped music on hold on SIP/600-0411
== Spawn extension (TomCisco, 400, 1) exited non-zero on 'SIP/600-0411'
legolas*CLI>
hab schon alles ausprobiert, aber keine Idee. Da ich Musik von mpg321 an der Soundkarte hören kann, denke ich, das das passt und das Problem irgendwo beim Asterisk liegt.
Da in dem RPM kein mp3 war, hab ich mir eins runtergesaugt und es in den mohmp3-ordner kopiert.
Hat jemand von Euch eine Idee, was ich falsch gemacht habe oder ggf. vergessen habe?
Herzlichen Dank
Thomas