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.2 2005/08/26 03:07:38 dereksmithies 00033 * Change naming convention, so all class names contain the string "IAX2" 00034 * 00035 * Revision 1.1 2005/07/30 07:01:32 csoutheren 00036 * Added implementation of IAX2 (Inter Asterisk Exchange 2) protocol 00037 * Thanks to Derek Smithies of Indranet Technologies Ltd. for 00038 * writing and contributing this code 00039 * 00040 * 00041 * 00042 * 00043 * 00044 */ 00045 00046 #ifndef IEDATA_H 00047 #define IEDATA_H 00048 00049 #include <ptlib.h> 00050 #include <ptlib/sockets.h> 00051 00052 #ifdef P_USE_PRAGMA 00053 #pragma interface 00054 #endif 00055 00061 class IAX2IeData : public PObject 00062 { 00063 PCLASSINFO(IAX2IeData, PObject); 00064 public: 00069 IAX2IeData(); 00070 00071 00072 ~IAX2IeData(); 00074 00076 virtual void PrintOn(ostream & strm) const; 00077 00078 00079 PString calledNumber; 00080 PString callingNumber; 00081 PString callingAni; 00082 PString callingName; 00083 int callingTon; 00084 int callingTns; 00085 int callingPres; 00086 PString calledContext; 00087 PString userName; 00088 PString password; 00089 unsigned int capability; 00090 unsigned int format; 00091 PString codecPrefs; 00092 PString language; 00093 int version; 00094 PINDEX adsicpe; 00095 PString dnid; 00096 PString rdnis; 00097 short authMethods; 00098 unsigned int encryptionMethods; 00099 PString challenge; 00100 PString md5Result; 00101 PString rsaResult; 00102 PIPSocket::Address apparentAddr; 00103 PINDEX refresh; 00104 PINDEX dpStatus; 00105 PINDEX callNo; 00106 PString cause; 00107 BYTE causeCode; 00108 BYTE iaxUnknown; 00109 int msgCount; 00110 int autoAnswer; 00111 int musicOnHold; 00112 unsigned int transferId; 00113 PTime dateTime; 00114 PString deviceType; 00115 PString serviceIdent; 00116 int firmwareVer; 00117 unsigned int fwBlockDesc; 00118 PBYTEArray fwBlockData; 00119 PString encKey; 00120 unsigned int provVer; 00121 PINDEX samplingRate; 00122 int provverPres; 00123 unsigned int receivedJitter; 00124 unsigned int receivedLoss; 00125 unsigned int receivedPackets; 00126 unsigned short receivedDelay; 00127 unsigned int receivedDropped; 00128 unsigned int receivedOoo; 00129 }; 00130 00131 #endif // IEDATAH 00132 /* The comment below is magic for those who use emacs to edit this file. */ 00133 /* With the comment below, the tab key does auto indent to 4 spaces. */ 00134 00135 /* 00136 * Local Variables: 00137 * mode:c 00138 * c-file-style:linux 00139 * c-basic-offset:2 00140 * End: 00141 */ 00142