# iedata.h

Go to the documentation of this file.

    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  * $Revision: 24606 $
    00029  * $Author: dereksmithies $
    00030  * $Date: 2010-07-28 22:51:05 -0500 (Wed, 28 Jul 2010) $
    00031  */
    00032
    00033 #ifndef OPAL_IAX2_IEDATA_H
    00034 #define OPAL_IAX2_IEDATA_H
    00035
    00036 #ifndef _PTLIB_H
    00037 #include <ptlib.h>
    00038 #endif
    00039
    00040 #include <opal/buildopts.h>
    00041
    00042 #if OPAL_IAX2
    00043
    00044 #include <ptlib/sockets.h>
    00045
    00046 #ifdef P_USE_PRAGMA
    00047 #pragma interface
    00048 #endif
    00049
    00055 class IAX2IeData :  public PObject
    00056 {
    00057   PCLASSINFO(IAX2IeData, PObject);
    00058  public:
    00063   IAX2IeData();
    00064
    00065
    00066   ~IAX2IeData();
    00068
    00070   virtual void PrintOn(ostream & strm) const;
    00071
    00072
    00073   PString            calledNumber;
    00074   PString            callingNumber;
    00075   PString            callingAni;
    00076   PString            callingName;
    00077   int                callingTon;
    00078   int                callingTns;
    00079   int                callingPres;
    00080   PString            calledContext;
    00081   PString            userName;
    00082   PString            password;
    00083   unsigned int       capability;
    00084   unsigned int       format;
    00085   PString            codecPrefs;
    00086   PString            language;
    00087   int                version;
    00088   PINDEX             adsicpe;
    00089   PString            dnid;
    00090   PString            rdnis;
    00091   short              authMethods;
    00092   unsigned int       encryptionMethods;
    00093   PString            challenge;
    00094   PString            md5Result;
    00095   PString            rsaResult;
    00096   PIPSocket::Address apparentAddr;
    00097   PINDEX             refresh;
    00098   PINDEX             dpStatus;
    00099   PINDEX             callNo;
    00100   PString            cause;
    00101   BYTE               causeCode;
    00102   BYTE               iaxUnknown;
    00103   int                msgCount;
    00104   int                autoAnswer;
    00105   int                musicOnHold;
    00106   unsigned int       transferId;
    00107   PTime              dateTime;
    00108   PString            deviceType;
    00109   PString            serviceIdent;
    00110   int                firmwareVer;
    00111   unsigned int       fwBlockDesc;
    00112   PBYTEArray         fwBlockData;
    00113   PString            encKey;
    00114   unsigned int       provVer;
    00115   PINDEX             samplingRate;
    00116   int                provverPres;
    00117   unsigned int       receivedJitter;
    00118   unsigned int       receivedLoss;
    00119   unsigned int       receivedPackets;
    00120   unsigned short     receivedDelay;
    00121   unsigned int       receivedDropped;
    00122   unsigned int       receivedOoo;
    00123   PBYTEArray         callToken;
    00124 };
    00125
    00126
    00127 #endif // OPAL_IAX2
    00128
    00129 #endif // OPAL_IAX2_IEDATA_H
    00130
    00131 /* The comment below is magic for those who use emacs to edit this file.
    00132  * With the comment below, the tab key does auto indent to 2 spaces.
    00133  *
    00134  * Local Variables:
    00135  * mode:c
    00136  * c-basic-offset:2
    00137  * End:
    00138  */