|
Yate
|
A single IAX2 numeric Information Element. More...
#include <yateiax.h>
Public Member Functions | |
| IAXInfoElementBinary (Type type, unsigned char *buf, unsigned len) | |
| virtual | ~IAXInfoElementBinary () |
| int | length () const |
| DataBlock & | data () |
| void | setData (void *buf, unsigned len) |
| virtual void | toBuffer (DataBlock &buf) |
| virtual void | toString (String &buf) |
Public Member Functions inherited from IAXInfoElement | |
| IAXInfoElement (Type type) | |
| virtual | ~IAXInfoElement () |
| Type | type () const |
Public Member Functions inherited from RefObject | |
| RefObject () | |
| virtual | ~RefObject () |
| virtual void * | getObject (const String &name) const |
| virtual bool | alive () const |
| bool | ref () |
| bool | deref () |
| int | refcount () const |
| virtual void | destruct () |
Public Member Functions inherited from GenObject | |
| GenObject () | |
| virtual | ~GenObject () |
| virtual const String & | toString () const |
| virtual const String & | traceId () const |
| NamedCounter * | getObjCounter () const |
| NamedCounter * | setObjCounter (NamedCounter *counter) |
Static Public Member Functions | |
| static IAXInfoElementBinary * | packIP (const SocketAddr &addr) |
| static bool | unpackIP (SocketAddr &addr, IAXInfoElementBinary *ie) |
Static Public Member Functions inherited from IAXInfoElement | |
| static const char * | ieText (u_int8_t ieCode) |
| static const char * | causeName (int code) |
| static int | causeCode (const char *name, int defVal=0) |
Static Public Member Functions inherited from RefObject | |
| static bool | alive (const RefObject *obj) |
| static bool | efficientIncDec () |
Static Public Member Functions inherited from GenObject | |
| static void * | getObject (const String &name, const GenObject *obj) |
| static bool | getObjCounting () |
| static void | setObjCounting (bool enable) |
| static NamedCounter * | getObjCounter (const String &name, bool create=true) |
| static ObjList & | getObjCounters () |
Additional Inherited Members | |
Public Types inherited from IAXInfoElement | |
| enum | Type { textframe = 0x00 , CALLED_NUMBER = 0x01 , CALLING_NUMBER = 0x02 , CALLING_ANI = 0x03 , CALLING_NAME = 0x04 , CALLED_CONTEXT = 0x05 , USERNAME = 0x06 , PASSWORD = 0x07 , CAPABILITY = 0x08 , FORMAT = 0x09 , LANGUAGE = 0x0a , VERSION = 0x0b , ADSICPE = 0x0c , DNID = 0x0d , AUTHMETHODS = 0x0e , CHALLENGE = 0x0f , MD5_RESULT = 0x10 , RSA_RESULT = 0x11 , APPARENT_ADDR = 0x12 , REFRESH = 0x13 , DPSTATUS = 0x14 , CALLNO = 0x15 , CAUSE = 0x16 , IAX_UNKNOWN = 0x17 , MSGCOUNT = 0x18 , AUTOANSWER = 0x19 , MUSICONHOLD = 0x1a , TRANSFERID = 0x1b , RDNIS = 0x1c , PROVISIONING = 0x1d , AESPROVISIONING = 0x1e , DATETIME = 0x1f , DEVICETYPE = 0x20 , SERVICEIDENT = 0x21 , FIRMWAREVER = 0x22 , FWBLOCKDESC = 0x23 , FWBLOCKDATA = 0x24 , PROVVER = 0x25 , CALLINGPRES = 0x26 , CALLINGTON = 0x27 , CALLINGTNS = 0x28 , SAMPLINGRATE = 0x29 , CAUSECODE = 0x2a , ENCRYPTION = 0x2b , ENKEY = 0x2c , CODEC_PREFS = 0x2d , RR_JITTER = 0x2e , RR_LOSS = 0x2f , RR_PKTS = 0x30 , RR_DELAY = 0x31 , RR_DROPPED = 0x32 , RR_OOO = 0x33 , CALLTOKEN = 0x36 , CAPABILITY2 = 0x37 , FORMAT2 = 0x38 } |
Static Public Attributes inherited from IAXInfoElement | |
| static const TokenDict | s_causeName [] |
| static const TokenDict | s_typeOfNumber [] |
| static const TokenDict | s_presentation [] |
| static const TokenDict | s_screening [] |
Protected Member Functions inherited from RefObject | |
| virtual void | zeroRefs () |
| bool | resurrect () |
| virtual void | destroyed () |
A single IAX2 numeric Information Element.
This class holds a single Information Element with binary data
|
inline |
Constructor
| type | Type of this IE |
| buf | Source buffer to construct this IE |
| len | Buffer length |
References IAXInfoElement::IAXInfoElement(), and IAXInfoElement::type().
Referenced by packIP(), and unpackIP().
|
inlinevirtual |
Destructor
|
inline |
Get the data
|
inline |
Get the data length
|
static |
Constructs an APPARENT_ADDR information element from a SocketAddr object
| addr | Source object |
References IAXInfoElementBinary().
|
inline |
Set the data
| buf | Source buffer to construct this IE |
| len | Buffer length |
|
virtual |
Constructs a buffer containing this Information Element
| buf | Destination buffer |
Reimplemented from IAXInfoElement.
|
virtual |
|
static |
Decode an APPARENT_ADDR information element and copy it to a SocketAddr object
| addr | Destination object |
| ie | Source IE |
References IAXInfoElementBinary().