Logo Search packages:      
Sourcecode: capisuite version File versions  Download package

string Capi::describeParamInfo ( unsigned int  info  )  [static, private]

textual description for Parameter Info

This method returns an error string for the given info parameter. The strings were taken out of the CAPI 2.0 spec

Parameters:
info errorcode as given by CAPI
Returns:
textual description of error

Definition at line 733 of file capi.cpp.

Referenced by alert_req(), connect_active_resp(), connect_b3_active_resp(), connect_b3_req(), connect_b3_resp(), connect_req(), connect_resp(), data_b3_req(), data_b3_resp(), disconnect_b3_req(), disconnect_b3_resp(), disconnect_req(), disconnect_resp(), facility_req(), facility_resp(), info_resp(), listen_req(), readMessage(), readProfile(), select_b_protocol_req(), and ~Capi().

{
      switch (info)
      {
            // class 0x00xx: Informative values, no error (see CAPI 2.0 4th ed. PartI, chapter 6.1.26)
            case 0x0000:
                  return "request accepted.";
            case 0x0001:
                  return "warning: NCPI not supported by current protocol, NCPI ignored.";
            case 0x0002:
                  return "warnung: Flags not supported by current protocol, flags ignored.";
            case 0x0003:
                  return "warnung: Alert already sent by another application.";
            // class 0x10xx: Error information concerning CAPI_REGISTER
            case 0x1001:
                  return "Too many applications.";
            case 0x1002:
                  return "Logical Block size too small; must be at least 128 bytes.";
            case 0x1003:
                  return "Buffer exceeds 64 kbytes.";
            case 0x1004:
                  return "Message buffer size too small, must be at least 1024 bytes.";
            case 0x1005:
                  return "Max. number of logical connections not supported.";
            case 0x1006:
                  return "reserved (unknown error).";
            case 0x1007:
                  return "The message could not be accepted because of an internal busy condition.";
            case 0x1008:
                  return "OS Resource error (out of memory?).";
            case 0x1009:
                  return "CAPI not installed.";
            case 0x100A:
                  return "Controller does not support external equipment.";
            case 0x100B:
                  return "Controller does only support external equipment.";
            // class 0x11xx: Error information concerning message exchange functions
            case 0x1101:
                  return "Illegal application number.";
            case 0x1102:
                  return "Illegal command or subcommand, or message length less than 12 octets.";
            case 0x1103:
                  return "The message could not be accepted because of a queue full condition.";
            case 0x1104:
                  return "Queue is empty.";
            case 0x1105:
                  return "Queue overflow: a message was lost!!";
            case 0x1106:
                  return "Unknown notification parameter.";
            case 0x1107:
                  return "The message could not be accepted because on an internal busy condition.";
            case 0x1108:
                  return "OS resource error (out of memory?).";
            case 0x1109:
                  return "CAPI not installed.";
            case 0x110A:
                  return "Controller does not support external equipment.";
            case 0x110B:
                  return "Controller does only support external equipment.";
            // class 0x20xx: Error information concerning resource/coding problems
            case 0x2001:
               return "Message not supported in current state.";
            case 0x2002:
               return "Illegal Controller/PLCI/NCCI.";
            case 0x2003:
               return "No PLCI available.";
            case 0x2004:
               return "No NCCI available.";
            case 0x2005:
               return "No Listen resources available.";
            case 0x2006:
               return "No fax resources available (protocol T.30 not supported).";
            case 0x2007:
               return "Illegal message parameter coding.";
            case 0x2008:
               return "No interconnection resources available.";
            // class 0x30xx: Error information concerning requested services
            case 0x3001:
               return "B1 protocol not supported.";
            case 0x3002:
               return "B2 protocol not supported.";
            case 0x3003:
               return "B3 protocol not supported.";
            case 0x3004:
               return "B1 protocol parameter not supported.";
            case 0x3005:
               return "B2 protocol parameter not supported.";
            case 0x3006:
               return "B3 protocol parameter not supported.";
            case 0x3007:
               return "B protocol combination not supported.";
            case 0x3008:
               return "NCPI not supported.";
            case 0x3009:
               return "CIP Value unknown.";
            case 0x300A:
               return "Flags nor supported (reserved bits used!).";
            case 0x300B:
               return "Facility not supported.";
            case 0x300C:
               return "Data length not supported by current protocol.";
            case 0x300D:
               return "Reset procedure not supported by current protocol.";
            case 0x300E:
               return "TEI assignment failed / overlapping channel masks.";
            case 0x300F:
               return "Unsupported interoperability (see CAPI 2.0 specification, Part IV).";
            case 0x3010:
               return "Request not allowed in this state.";
            case 0x3011:
               return "Facility specific function not supported.";

            default:
                  stringstream message;
                  message << "CAPI returned an unknown error! Please ask your manufacturer for assistance (error code=0x" << hex << info << ")";
                  return message.str();
      }
}


Generated by  Doxygen 1.6.0   Back to index