[asterisk-users] Asterisk 1.4.7 and MOH

Carlos Chavez cursor at telecomabmex.com
Mon Jul 9 23:45:39 CDT 2007


     I just installed the newly released Asterisk 1.4.7 and I cannot get music
on hold.  I am using the default settings with the wav files.  Here is what I
get on the cli from any sip phone:

    -- Executing [7001 at oficina:1] NoCDR("SIP/1120-084e6010", "") in new stack
    -- Executing [7001 at oficina:2] Answer("SIP/1120-084e6010", "") in new stack
    -- Executing [7001 at oficina:3] MusicOnHold("SIP/1120-084e6010", "default")
in new stack
[Jul  9 23:40:44] WARNING[24238]: channel.c:2964 set_format: Unable to find a
codec translation path from ulaw to unknown
[Jul  9 23:40:44] WARNING[24238]: res_musiconhold.c:702 moh_alloc: Unable to
set channel 'SIP/1120-084e6010' to format 'unknown'
    -- Started music on hold, class '€¤Ü', on channel 'SIP/1120-084e6010'
[Jul  9 23:40:44] WARNING[24238]: res_musiconhold.c:575 moh0_exec: Unable to
start music on hold (class 'default') on channel SIP/1120-084e6010

     I do not know why it is not using the default moh.  If I try to reload
the moh here is what I get:

pbx*CLI> moh reload
pbx*CLI> 
2 classes reloaded.
  == Destroying musiconhold processes
  == Parsing '/etc/asterisk/musiconhold.conf': Found
[Jul  9 23:40:51] WARNING[24230]: res_musiconhold.c:638 get_mohbyname: Music
on Hold class 'default' not found
[Jul  9 23:40:51] WARNING[24230]: res_musiconhold.c:638 get_mohbyname: Music
on Hold class 'prueba' not found
pbx*CLI> 

     The classes are in the file and here is the output from "moh show classes":

pbx*CLI> moh show classes
Class: prueba
        Mode: files
        Directory: /var/lib/asterisk/moh
Class: default
        Mode: files
        Directory: /var/lib/asterisk/moh

     Could this be a bug?

--
Carlos Chavez
Director de Tecnología
Telecomunicaciones Abiertas de México S.A. de C.V.
Tel: +52-55-91169161 Ext 2001




More information about the asterisk-users mailing list