[Home]

Summary:ASTERISK-02286: Problem in musiconhold.h while using C++
Reporter:constfilin (constfilin)Labels:
Date Opened:2004-08-27 21:36:32Date Closed:2008-01-15 15:06:02.000-0600
Priority:TrivialRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:Line ASTERISK-18 of file
asterisk/musiconhold.h contains

extern int ast_moh_start(struct ast_channel *chan, char *class);

This really creates a problem when someone compiles this file with C++ because "class" is a keyword. Can you please update musiconhold.h in CVS by using - for example -

extern int ast_moh_start(struct ast_channel *chan, char *klass);

Thanks

-c


****** ADDITIONAL INFORMATION ******

this is trivial
Comments:By: Brian West (bkw918) 2004-08-28 15:55:16

Why would you compile asterisk with C++ since its written in C.. Maybe I just dont get it.

By: Mark Spencer (markster) 2004-08-29 02:05:55

Fixed in CVS

By: Digium Subversion (svnbot) 2008-01-15 15:06:02.000-0600

Repository: asterisk
Revision: 3673

U   trunk/include/asterisk/musiconhold.h

------------------------------------------------------------------------
r3673 | markster | 2008-01-15 15:06:01 -0600 (Tue, 15 Jan 2008) | 2 lines

Don't use "class" keyword in music on hold (bug ASTERISK-2286)

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

http://svn.digium.com/view/asterisk?view=rev&revision=3673