MusicOnHold ohne Soundkarte

XRebell

Neuer User
Mitglied seit
13 Mrz 2007
Beiträge
19
Punkte für Reaktionen
0
Punkte
0
Hallo,

ich habe gerade versucht MusicOnHold ans laufen zu bekommen aber irgendwie hings erst am fehlenden ztdummy, nachinstalliert, die ursprüngliche Fehlermeldung ist zwar weg aber nu kommt einfach kein Sound.

Ist zur Ausführung von MusicOnHold zwingend eine Soundkarte notwendig?
 
Für MoH brauchst Du keine Soundkarte. Höchstens wenn diese von einer externen Quelle eingespielt werden soll.
 
Hi, danke für die schnelle antwort:

hat denn einer eine Idee woran es liegen könnte?
Hier mal die verbose Meldungen:

Code:
  -- Called 28
    -- SIP/28-081bf980 is ringing
    -- SIP/28-081bf980 is ringing
    -- SIP/28-081bf980 answered SIP/99-b700ac48
    -- Attempting native bridge of SIP/99-b700ac48 and SIP/28-081bf980
    -- SIP/28-081bf980 answered SIP/99-b700ac48
    -- Attempting native bridge of SIP/99-b700ac48 and SIP/28-081bf980
    -- Started music on hold, class 'default', on channel 'SIP/99-b700ac48'
    -- Started music on hold, class 'default', on channel 'SIP/99-b700ac48'
    -- Stopped music on hold on SIP/99-b700ac48
    -- Stopped music on hold on SIP/99-b700ac48

und die Einträge der full

Code:
    -- Started music on hold, class 'default', on channel 'SIP/99-b7000488'
    -- Stopped music on hold on SIP/99-b7000488
Apr 18 08:56:35 DEBUG[5632] channel.c: Set channel SIP/99-b7000488 to write format slin
Apr 18 08:56:35 VERBOSE[5632] logger.c:     -- Started music on hold, class 'default', on channel 'SIP/99-b7000488'
Apr 18 08:56:35 DEBUG[5632] channel.c: Scheduling timer at 160 sample intervals
Apr 18 08:56:35 DEBUG[5619] res_musiconhold.c: Read 184 bytes of audio while expecting 640
Apr 18 08:56:35 DEBUG[5632] chan_sip.c: Stopping retransmission on '[email protected]' of Response 101: Match Found
Apr 18 08:56:35 DEBUG[5632] chan_sip.c: (Provisional) Stopping retransmission (but retaining packet) on '[email protected]' Request 103: Found
Apr 18 08:56:35 DEBUG[5632] chan_sip.c: Acked pending invite 103
Apr 18 08:56:35 DEBUG[5632] chan_sip.c: Stopping retransmission on '[email protected]' of Request 103: Match Found
Apr 18 08:56:35 DEBUG[5632] chan_sip.c: build_route: Retaining previous route: <sip:[email protected]:5060;transport=udp>
Apr 18 08:56:35 DEBUG[15645] channel.c: Generator got voice, switching to phase locked mode
Apr 18 08:56:35 DEBUG[15645] channel.c: Scheduling timer at 0 sample intervals
Apr 18 08:56:35 DEBUG[5619] res_musiconhold.c: Read 184 bytes of audio while expecting 640
Apr 18 08:56:36 DEBUG[15645] channel.c: Auto-deactivating generator
Apr 18 08:56:36 DEBUG[15645] channel.c: Set channel SIP/99-b7000488 to write format ulaw
Apr 18 08:56:36 VERBOSE[15645] logger.c:     -- Stopped music on hold on SIP/99-b7000488
Apr 18 08:56:36 DEBUG[15645] channel.c: Scheduling timer at 0 sample intervals
  == Spawn extension (meine-telefone, 28, 1) exited non-zero on 'SIP/99-b7000488'
Apr 18 08:56:38 DEBUG[15645] rtp.c: Oooh, got a hangup
Apr 18 08:56:38 DEBUG[15645] channel.c: Returning from native bridge, channels: SIP/99-b7000488, SIP/28-081c5d70
 
Wie schaut Deine musiconhold.conf denn aus?
 
Hier die MusicOnhold.conf

Code:
;
; Music on Hold -- Sample Configuration
;

[default]
mode=quietmp3
directory=/var/lib/asterisk/mohmp3

; valid mode options:
; quietmp3 	-- default
; mp3 		-- loud
; mp3nb		-- unbuffered
; quietmp3nb	-- quiet unbuffered
; custom	-- run a custom application 
; files		-- read files from a directory in any Asterisk supported format

;[manual]
;mode=custom
; Note that with mode=custom, a directory is not required, such as when reading
; from a stream.
;directory=/var/lib/asterisk/mohmp3
;application=/usr/bin/mpg123 -q -r 8000 -f 8192 -b 2048 --mono -s

;[ulawstream]
;mode=custom
;application=/usr/bin/streamplayer 192.168.100.52 888
;format=ulaw

; mpg123 on Solaris does not always exit properly; madplay may be a better
; choice
;[solaris]
;mode=custom
;directory=/var/lib/asterisk/mohmp3
;application=/site/sw/bin/madplay -Q -o raw:- --mono -R 8000 -a -12
;

;
; File-based (native) music on hold
;
; This plays files directly from the specified directory, no external
; processes are required. Files are played in normal sorting order
; (same as a sorted directory listing), and no volume or other
; sound adjustments are available. If the file is available in
; the same format as the channel's codec, then it will be played
; without transcoding (same as Playback would do in the dialplan).
; Files can be present in as many formats as you wish, and the
; 'best' format will be chosen at playback time.
;
; NOTE:
; If you are not using "autoload" in modules.conf, then you
; must ensure that the format modules for any formats you wish
; to use are loaded _before_ res_musiconhold. If you do not do
; this, res_musiconhold will skip the files it is not able to
; understand when it loads.
;

;[native]
;mode=files
;directory=/var/lib/asterisk/moh-native
;
;[native-random]
;mode=files
;directory=/var/lib/asterisk/moh-native
;random=yes 	; Play the files in a random order
 
Hmmm, welche Asteriskversion? Eigene Datein oder die mitgelieferten?

Wenn Du selber Sounddatein eingespielt hast würde ich die erstmal weglassen um ein Problem mit diesen auszuschliessen.
 
Asterisk 1.2.13-BRIstuffed-0.3.0-PRE-1s

Ist die bei der Suse 10.2 enthaltene version ... das MoH file ist eine standard mp3. hab das ganze mal ausgetauscht, nach wie vor der selbe fehler.

lame ist installiert!

wenn ich die Datei ganz weglasse, bricht er vorher schon ab weil er keine MoH Dateien findet
 
Vielleicht einfach mal eine andere Methode ausprobieren? Hätte sonst keine Idee. Ich hatte so ein Problem aber auch schonmal, kann mich aber nicht mehr an die Lösung erinnern.

Keine Ahnung ob z.B. dieses Beispiel mit Deiner Version läuft, aber ein Versuch ist es vielleicht wert. Madplay muss dafür natürlich installiert sein und ggfls. müssen die Pfade angepasst werden.

[default]
mode=custom
directory=/var/lib/asterisk/moh
application=/usr/bin/madplay -Qzr -o raw:- --mono -R 8000

Hörst Du den rein garnichts, oder vielleicht doch Bruchstückhaft? Telefonieren ansich geht aber ohne Probleme? Nicht das sich nachher rausstellt das woanders was klemmt.
 
Zuletzt bearbeitet:
Hi,

telefonieren an sich geht ohne Probleme. Rein raus und intern .... aber bei MOH höre ich rein gar nichts. nicht mal n knacksen oder einen Ansatz von Musik ... ich werde Madplay am Wochenende mal testen.
 
Also so wirklich hingehauen hat die Idee mit Madplay leider auch nicht! auch da war keine musik zu hören!

Die Lösung des Problemes war dann einfach ein Update auf Asterisk 1.4.1 ;)
 
Kostenlos!

Statistik des Forums

Themen
248,119
Beiträge
2,281,910
Mitglieder
377,334
Neuestes Mitglied
Ghostwarrior77