[asterisk-bugs] [Asterisk 0011196]: RealTime MusicOnHold

noreply at bugs.digium.com noreply at bugs.digium.com
Sat Nov 10 14:25:41 CST 2007


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=11196 
====================================================================== 
Reported By:                sergee
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   11196
Category:                   Resources/res_musiconhold
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     new
Asterisk Version:            SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 89114 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             11-08-2007 12:59 CST
Last Modified:              11-10-2007 14:25 CST
====================================================================== 
Summary:                    RealTime MusicOnHold
Description: 
Some parts of asterisk support RealTime, but others don't. This patch is an
implementation of RT for res_musiconhold. Now you can store MOH classes in
text config and RT engine. Classes from RT engine override classes from
text config. 

To use it, add a line to your extconfig.conf:
musiconhold => mysql,asterisk

Every time MOH starts, search is perfomed first in RT engine, then in
memory (linked list of classes created from musiconhold.conf).

If MOH class is found in RT engine - separate structure is created in
memory. This structure is not added to linked list (mohclasses) and will be
destroyed as soon as MOH will stop.
====================================================================== 

---------------------------------------------------------------------- 
 sergee - 11-10-07 14:25  
---------------------------------------------------------------------- 
New issue discovered:

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.


This bug is present in current trunk (revision 89133) i'll fix it with my
next patch. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
11-10-07 14:25  sergee         Note Added: 0073477                          
======================================================================




More information about the asterisk-bugs mailing list