[asterisk-bugs] [Asterisk 0010419]: MOH wierdness

noreply at bugs.digium.com noreply at bugs.digium.com
Sat Aug 11 17:22:21 CDT 2007


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=10419 
====================================================================== 
Reported By:                mustardman
Assigned To:                murf
====================================================================== 
Project:                    Asterisk
Issue ID:                   10419
Category:                   PBX/General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.4.10  
SVN Branch (only for SVN checkouts, not tarball releases): N/A  
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             08-09-2007 12:40 CDT
Last Modified:              08-11-2007 17:22 CDT
====================================================================== 
Summary:                    MOH wierdness
Description: 
CentOS 5 FreePBX 2.3 b2 Asterisk 1.4.10 Zaptel 1.4.4 

With Random Play disabled it always starts at the beginning of the first
song so random play seems like the logical choice. However, with random
play enabled it randomly starts one of the 3 (for example) songs but if I
take the call and then put them on hold again it often goes to the
beginning of the next song. But if I do it again it will stay on that
second song and progress through it as it should. 

The MOH always starting at the beginning of a song when a call is first
put on hold is also annoying but I guess that is just the way it is
designed. 

However, there is something else wierd going on 


====================================================================== 

---------------------------------------------------------------------- 
 mustardman - 08-11-07 17:22  
---------------------------------------------------------------------- 
[root at centos5 mohmp3]# dir
fpm-calm-river.wav  
fpm-world-mix.wav
fpm-sunshine.wav    
LICENSE-asterisk-moh-freeplay-wav


Not sure what you need to see in extensions.conf as FreePBX adds all sorts
of macros.  Hopefully these are the relevant entries.
.
.
[macro-dial]
exten => s,1,GotoIf($["${MOHCLASS}" = ""]?dial)
exten => s,2,SetMusicOnHold(${MOHCLASS})
exten => s,3(dial),AGI(dialparties.agi)
exten => s,4,NoOp(Returned from dialparties with no extensions to call and
DIALSTATUS: ${DIALSTATUS})
.
.
; Back to normal processing, whether intracompany or not.
; But add the macro-setmusic if we don't want music on this outbound call
;
exten => s,n,GotoIf($[$["${MOHCLASS}" = "default"] | $["foo${MOHCLASS}" =
"foo"]]?gocall) ; Set to YES if we should pump silence
exten =>
s,n,Set(DIAL_TRUNK_OPTIONS=M(setmusic^${MOHCLASS})${DIAL_TRUNK_OPTIONS}) 	;
set MoH or off
.
.
.
;------------------------------------------------------------------------
; [macro-setmusic]
;------------------------------------------------------------------------
; CONTEXT:      macro-setmusic
; PURPOSE:      to turn off moh on routes where it is not desired
;
;------------------------------------------------------------------------
[macro-setmusic]
exten => s,1,NoOp(Setting Outbound Route MoH To: ${ARG1})
exten => s,2,SetMusicOnHold(${ARG1})
.
.
. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
08-11-07 17:22  mustardman     Note Added: 0068751                          
======================================================================




More information about the asterisk-bugs mailing list