1 /*****************************************************************************/ 2 /* */ 3 /* ICCLI.H */ 4 /* */ 5 /* (C) 1996 Ullrich von Bassewitz */ 6 /* Wacholderweg 14 */ 7 /* D-70597 Stuttgart */ 8 /* EMail: uz@ibb.schwaben.com */ 9 /* */ 10 /*****************************************************************************/ 11 12 13 14 // $Id$ 15 // 16 // $Log$ 17 // 18 // 19 20 21 22 // Calling line identification stuff 23 24 25 26 #ifndef _ICCLI_H 27 #define _ICCLI_H 28 29 30 31 #include "datetime.h" 32 33 34 35 /*****************************************************************************/ 36 /* Data */ 37 /*****************************************************************************/ 38 39 40 41 42 // Constants for the TypeOfNumber field 43 const unsigned ntUnknown = 0; 44 const unsigned ntInternational = 1; 45 const unsigned ntNational = 2; 46 const unsigned ntNetworkDependent = 3; 47 const unsigned ntClientSpecific = 4; 48 const unsigned ntInvalid = 6; 49 const unsigned ntReserved = 9; 50 51 // Constants for the "PresInd" field 52 const unsigned piPresAllowed = 0; 53 const unsigned piPresRestricted = 1; 54 const unsigned piNoNumber = 2; 55 56 57 58 /*****************************************************************************/ 59 /* class CLI */ 60 /*****************************************************************************/ 61 62 63 64 class CLI: public Object { 65 66 public: 67 String Number; // Calling partys number 68 String AreaCodeInfo; // Info on prefix 69 String Alias; // Alias for the given number 70 unsigned TypeOfNumber; 71 unsigned PresInd; // Presentation indicatior 72 Time T; // Time of call 73 74 public: 75 String LogMsg (); 76 // Return a log message for the CLI 77 78 }; 79 80 81 82 /*****************************************************************************/ 83 /* Code */ 84 /*****************************************************************************/ 85 86 87 88 void HandleCLIMsg (const unsigned char* Data, unsigned Size); 89 // Handle a CLI message 90 91 92 93 // End of ICCLI.H 94 95 #endif 96 97 98 99