Music On Hold
Damit unseren Anrufern nicht zu langweilig wird, aktivieren wir MOH1).
Installation
Wir installieren hierzu aus dem Asterisk-Repository das Paket asterisk-sounds-moh-opsound-wav.
# yum install asterisk-sounds-moh-opsound-wav
Was uns das Paket alles mitbringt und wohin die MOH-Files gespeichert wurden, zeigt uns folgender Aufruf.
# rpm -iql asterisk-sounds-moh-opsound-wav
Name : asterisk-sounds-moh-opsound-wav Relocations: (not relocatable) Version : 0.0 Vendor: Digium, Inc. Release : 4_centos5 Build Date: Di 18 Aug 2009 18:49:02 CEST Install Date: Mi 21 Apr 2010 21:02:14 CEST Build Host: localhost.localdomain Group : Utilities/System Source RPM: asterisk-sounds-moh-0.0-4_centos5.src.rpm Size : 17710679 License: GPL Signature : (none) Packager : Jason Parker <jparker@digium.com> URL : http://www.asterisk.org Summary : Asterisk Music on Hold - opsound - wav. Description : This package contains Asterisk Music on Hold - opsound - wav. /var/lib/asterisk/moh/.asterisk-moh-opsound-wav /var/lib/asterisk/moh/CHANGES-asterisk-moh-opsound-wav /var/lib/asterisk/moh/CREDITS-asterisk-moh-opsound-wav /var/lib/asterisk/moh/LICENSE-asterisk-moh-opsound-wav /var/lib/asterisk/moh/macroform-cold_day.wav /var/lib/asterisk/moh/macroform-robot_dity.wav /var/lib/asterisk/moh/macroform-the_simplicity.wav /var/lib/asterisk/moh/manolo_camp-morning_coffee.wav /var/lib/asterisk/moh/reno_project-system.wav
Konfiguration
Damit unser Asterisk-Server auf die Wave-Dateien zugreifen kann, editieren wir nun noch die Konfiguration /etc/asterisk/musiconhold.conf.
# vim /etc/asterisk/musiconhold.conf
[default]
mode=files
; Django 21.04.2010 MOH aktiviert
; default: directory=moh
directory=/var/lib/asterisk/moh
Anschließend starten wir unserren Asterisk-Server einmal durch.
# service asterisk restart
Legt nun ein interner Teilnehmer einen Anrufer auf Warten, wird diesem Musik im Wartefeld eingespielt. Auf der Asterisk-Konsole wird uns Starten und Stoppen von MOH entsprechend protokolliert.
# asterisk -r
Asterisk 1.6.2.6, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.6 currently running on office (pid = 9797) Verbosity is at least 3 -- Executing [883176@ankommend_(mISDN):1] Dial("mISDN/1-u1", "SIP/13,60") in new stack == Using SIP RTP CoS mark 5 -- Called 13 -- SIP/13-00000001 is ringing -- SIP/13-00000001 is ringing -- SIP/13-00000001 answered mISDN/1-u1 -- Started music on hold, class 'default', on mISDN/1-u1 -- Stopped music on hold on mISDN/1-u1
1)
MusicOnHold