[Asterisk-Users] Native music on hold - Error

Tomislav Parčina tparcina at lama.hr
Thu Mar 2 04:30:51 MST 2006


I have tried to use native music on hold. In dir /var/lib/asterisk/moh-native/ I have some wav files (with 755 permission). In musiconhold.conf I have

[native]
mode=files
directory=/var/lib/asterisk/moh-native

And in sip.conf I have
musicclass=native

When I put call on hold this is what I get at CLI.

    -- Executing Dial("SIP/341-5931", "SIP/344|20|wWtT") in new stack
    -- Called 344
    -- SIP/344-5e4e is ringing
    -- SIP/344-5e4e answered SIP/341-5931
   -- Attempting native bridge of SIP/341-5931 and SIP/344-5e4e
    -- Started music on hold, class 'native', on SIP/344-5e4e
Mar  2 11:17:50 WARNING[7717]: format_wav.c:161 check_header: ot in mono 2
ar  2 11:17:50 WARNING[7717]: file.c:432 ast_filehelper: nable to open file on /
var/lib/asterisk/moh-native/fpm-sunshine.wav
ar  2 11:17:50 WARNING[7717]: res_musiconhold.c:225 ast_moh_files_next: nable to
 open file '/var/lib/asterisk/moh-native/fpm-sunshine': No such file or director
y
   -- Stopped music on hold on SIP/344-5e4e
  == Spawn extension (sip, 344, 1) exited non-zero on 'SIP/341-5931'


What have I done wrong? That file IS in that directory.
When this starts to work I'll put more files in gsm and g729 format, but till then asterisk should encode this files. For this call I have use alaw codec.


--
Tomislav Parcina
tparcina#lama.hr



More information about the asterisk-users mailing list