[Home]

Summary:ASTERISK-08929: ooGetMsgTypeText() returns incorrect text representation on message types above OOFacility
Reporter:Andrew Maksimov (andrew maksimov)Labels:
Date Opened:2007-03-03 10:17:04.000-0600Date Closed:2007-03-05 12:21:43.000-0600
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Channels/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:Function ooGetMsgTypeText uses const-array msgTypeText for text representation of message types. In array msgTypeText one line is missed: between "OOFacility" and "OOMasterSlaveDetermination" there should be a line "OOInformationMessage".

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

See ootypes.h
...
#define OOFacility                         108
#define OOInformationMessage               109
#define OOMasterSlaveDetermination         110
...

and ooGetMsgTypeText:
const char* ooGetMsgTypeText (int msgType)
{
  static const char *msgTypeText[]={
  ...
  "OOFacility",  // <------ "OOInformationMessage" must be added!!!
  "OOMasterSlaveDetermination",
  ...
  };
}
Comments:By: Objective Systems (objsys) 2007-03-05 12:21:42.000-0600

Hi Andrew,
Thank you for finding the problem. I have corrected this problem & updated the svn repository.

Regards,
Avin Patel
Objective Systems Inc