00001 /* 00002 * 00003 * 00004 * Inter Asterisk Exchange 2 00005 * 00006 * defines the different types of information elements 00007 * 00008 * Open Phone Abstraction Library (OPAL) 00009 * 00010 * Copyright (c) 2005 Indranet Technologies Ltd. 00011 * 00012 * The contents of this file are subject to the Mozilla Public License 00013 * Version 1.0 (the "License"); you may not use this file except in 00014 * compliance with the License. You may obtain a copy of the License at 00015 * http://www.mozilla.org/MPL/ 00016 * 00017 * Software distributed under the License is distributed on an "AS IS" 00018 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See 00019 * the License for the specific language governing rights and limitations 00020 * under the License. 00021 * 00022 * The Original Code is Open Phone Abstraction Library. 00023 * 00024 * The Initial Developer of the Original Code is Indranet Technologies Ltd. 00025 * 00026 * The author of this code is Derek J Smithies 00027 * 00028 * 00029 * 00030 * 00031 * $Log: iedata.h,v $ 00032 * Revision 1.3 2007/04/19 06:17:21 csoutheren 00033 * Fixes for precompiled headers with gcc 00034 * 00035 * Revision 1.2 2005/08/26 03:07:38 dereksmithies 00036 * Change naming convention, so all class names contain the string "IAX2" 00037 * 00038 * Revision 1.1 2005/07/30 07:01:32 csoutheren 00039 * Added implementation of IAX2 (Inter Asterisk Exchange 2) protocol 00040 * Thanks to Derek Smithies of Indranet Technologies Ltd. for 00041 * writing and contributing this code 00042 * 00043 * 00044 * 00045 * 00046 * 00047 */ 00048 00049 #ifndef IEDATA_H 00050 #define IEDATA_H 00051 00052 #ifndef _PTLIB_H 00053 #include <ptlib.h> 00054 #endif 00055 00056 #include <ptlib/sockets.h> 00057 00058 #ifdef P_USE_PRAGMA 00059 #pragma interface 00060 #endif 00061 00067 class IAX2IeData : public PObject 00068 { 00069 PCLASSINFO(IAX2IeData, PObject); 00070 public: 00075 IAX2IeData(); 00076 00077 00078 ~IAX2IeData(); 00080 00082 virtual void PrintOn(ostream & strm) const; 00083 00084 00085 PString calledNumber; 00086 PString callingNumber; 00087 PString callingAni; 00088 PString callingName; 00089 int callingTon; 00090 int callingTns; 00091 int callingPres; 00092 PString calledContext; 00093 PString userName; 00094 PString password; 00095 unsigned int capability; 00096 unsigned int format; 00097 PString codecPrefs; 00098 PString language; 00099 int version; 00100 PINDEX adsicpe; 00101 PString dnid; 00102 PString rdnis; 00103 short authMethods; 00104 unsigned int encryptionMethods; 00105 PString challenge; 00106 PString md5Result; 00107 PString rsaResult; 00108 PIPSocket::Address apparentAddr; 00109 PINDEX refresh; 00110 PINDEX dpStatus; 00111 PINDEX callNo; 00112 PString cause; 00113 BYTE causeCode; 00114 BYTE iaxUnknown; 00115 int msgCount; 00116 int autoAnswer; 00117 int musicOnHold; 00118 unsigned int transferId; 00119 PTime dateTime; 00120 PString deviceType; 00121 PString serviceIdent; 00122 int firmwareVer; 00123 unsigned int fwBlockDesc; 00124 PBYTEArray fwBlockData; 00125 PString encKey; 00126 unsigned int provVer; 00127 PINDEX samplingRate; 00128 int provverPres; 00129 unsigned int receivedJitter; 00130 unsigned int receivedLoss; 00131 unsigned int receivedPackets; 00132 unsigned short receivedDelay; 00133 unsigned int receivedDropped; 00134 unsigned int receivedOoo; 00135 }; 00136 00137 #endif // IEDATAH 00138 /* The comment below is magic for those who use emacs to edit this file. */ 00139 /* With the comment below, the tab key does auto indent to 4 spaces. */ 00140 00141 /* 00142 * Local Variables: 00143 * mode:c 00144 * c-file-style:linux 00145 * c-basic-offset:2 00146 * End: 00147 */ 00148