[asterisk-bugs] [Asterisk 0011214]: Restart of MOH doesn't work

noreply at bugs.digium.com noreply at bugs.digium.com
Sat Nov 10 22:19:56 CST 2007


The following issue has been RESOLVED. 
====================================================================== 
http://bugs.digium.com/view.php?id=11214 
====================================================================== 
Reported By:                sergee
Assigned To:                putnopvut
====================================================================== 
Project:                    Asterisk
Issue ID:                   11214
Category:                   Resources/res_musiconhold
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     resolved
Asterisk Version:            SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 89133 
Disclaimer on File?:        N/A 
Request Review:              
Resolution:                 no change required
Fixed in Version:           
====================================================================== 
Date Submitted:             11-10-2007 15:03 CST
Last Modified:              11-10-2007 22:19 CST
====================================================================== 
Summary:                    Restart of MOH doesn't work
Description: 
Dialplan :

[default]

exten => 1111,1,Set(CHANNEL(musicclass)=default)
exten => 1111,2,Answer()
exten => 1111,3,StartMusicOnHold()
exten => 1111,4,Wait(15)
exten => 1111,5,StopMusicOnHold()
exten => 1111,6,Wait(5)
exten => 1111,7,StartMusicOnHold()


Doesn't work:

    -- Executing [1111 at default:1] Set("SIP/serg-082242b8",
"CHANNEL(musicclass)=default") in new stack
    -- Executing [1111 at default:2] Answer("SIP/serg-082242b8", "") in new
stack
    -- Executing [1111 at default:3] StartMusicOnHold("SIP/serg-082242b8",
"") in new stack
    -- Started music on hold, class 'default', on SIP/serg-082242b8
    -- Executing [1111 at default:4] Wait("SIP/serg-082242b8", "15") in new
stack
    -- Executing [1111 at default:5] StopMusicOnHold("SIP/serg-082242b8", "")
in new stack
    -- Stopped music on hold on SIP/serg-082242b8
    -- Executing [1111 at default:6] Wait("SIP/serg-082242b8", "5") in new
stack
    -- Executing [1111 at default:7] StartMusicOnHold("SIP/serg-082242b8",
"") in new stack
    -- Started music on hold, class 'default', on SIP/serg-082242b8
    -- Auto fallthrough, channel 'SIP/serg-082242b8' status is 'UNKNOWN'
    -- Stopped music on hold on SIP/serg-082242b8



It fails to execute 

exten => 1111,7,StartMusicOnHold()

and disconnects the call.
====================================================================== 

---------------------------------------------------------------------- 
 putnopvut - 11-10-07 22:19  
---------------------------------------------------------------------- 
I tried this using the same dialplan you provided and had the same results.
However, if I add

exten => 800,8,Wait(15)

at the end, the restart of music on hold works as expected. What's
happening here is that the music on hold is successfully restarting, but
since you're at the end of the dialplan, it doesn't actually have a chance
to play. This is simply a misconfiguration, not a bug. Closing. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
11-10-07 22:19  putnopvut      Note Added: 0073484                          
======================================================================




More information about the asterisk-bugs mailing list