[asterisk-bugs] [Asterisk 0013280]: app_queue on misdn channels plays wrong MoH

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Aug 11 06:13:40 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13280 
====================================================================== 
Reported By:                azielke
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   13280
Category:                   Applications/app_queue
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           1.6.0-beta9 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-08-11 05:06 CDT
Last Modified:              2008-08-11 06:13 CDT
====================================================================== 
Summary:                    app_queue on misdn channels plays wrong MoH
Description: 
When configuring a queue to play a specific MoH with musicclass=test, the
Settings seems to get ignored on misdn channels.

With SIP-Channels, the Log says:
    -- Executing [414 at dispatch:3] Queue("SIP/1015-08219b68", "test") in
new stack
    -- Started music on hold, class 'test', on SIP/1015-08219b68

which is expectet, but with misdn channels, it gives:
    -- Executing [414 at dispatch:3] Queue("mISDN/1-u0", "test") in new
stack
    -- Started music on hold, class 'default', on mISDN/1-u0

The only way to change this behavior is to set the musicclass directly in
misdn.conf, but that would override the music class outside of the queues
aswell.
====================================================================== 

---------------------------------------------------------------------- 
 (0091284) azielke (reporter) - 2008-08-11 06:13
 http://bugs.digium.com/view.php?id=13280#c91284 
---------------------------------------------------------------------- 
i did some searching around, and it seems like that misdn does something
similar to setting CHANNEL(musicclass).

I managed to track it down to channels/chan_misdn.c, in read_config, there
is a call to ast_string_field_set(ast, musicclass, localmusicclass);

Commenting out that line solved the issue and the correct moh is played
when queued. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-08-11 06:13 azielke        Note Added: 0091284                          
======================================================================




More information about the asterisk-bugs mailing list