[asterisk-bugs] [Asterisk 0013336]: [patch] fix mohinterpret and mohsuggest settings from general section in chan_iax2.c

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Sep 2 12:03:58 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13336 
====================================================================== 
Reported By:                decryptus_proformatique
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   13336
Category:                   Channels/chan_iax2
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     feedback
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 138473 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-08-18 11:25 CDT
Last Modified:              2008-09-02 12:03 CDT
====================================================================== 
Summary:                    [patch] fix mohinterpret and mohsuggest settings
from general section in chan_iax2.c
Description: 
iax.conf:
[general]
mohinterpret = example

When the moh activated, we can see in the CLI:
WARNING[13803]: res_musiconhold.c:660 get_mohbyname: Music on Hold class
'exa' not found
-- Started music on hold, class 'default', on channel
'IAX2/asteriskisdn-10727'
====================================================================== 

---------------------------------------------------------------------- 
 (0091974) decryptus_proformatique (reporter) - 2008-09-02 12:03
 http://bugs.digium.com/view.php?id=13336#c91974 
---------------------------------------------------------------------- 
So ? What we do ? ;)

When I add some traces, the value of "sizeof(user->mohinterpret)" is 4 at
the line 11236.

---------------------------------------------

So, to be coherent, I don't understand why at the line 11234 of
chan_iax.c,
we can see:

ast_copy_string(accountcode, v->value, sizeof(accountcode));

and not:

ast_copy_string(accountcode, v->value, sizeof(user->accountcode));

---------------------------------------------

Thx ;) 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-09-02 12:03 decryptus_proformatiqueNote Added: 0091974                     
    
======================================================================




More information about the asterisk-bugs mailing list