class IAXFullFrame

This class holds an IAX full frame. More...

Full nameTelEngine::IAXFullFrame
Definition#include <libs/yiax/yateiax.h>
InheritsTelEngine::IAXFrame [public ]
Inherited byIAXFrameOut
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Types

Public Methods

Public Static Methods


Detailed Description

This class holds all data needded to manage an IAX full frame

enum ControlType { Hangup = 0x01, Ringing = 0x03, Answer = 0x04, Busy = 0x05, Congestion = 0x08, FlashHook = 0x09, Option = 0x0b, KeyRadio = 0x0c, UnkeyRadio = 0x0d, Progressing = 0x0e, Proceeding = 0x0f, Hold = 0x10, Unhold = 0x11, VidUpdate = 0x12, }

ControlType

IAX frame subclass enumeration types for frames of type Control

 IAXFullFrame (Type type, u_int32_t subclass, u_int16_t sCallNo, u_int16_t dCallNo, unsigned char oSeqNo, unsigned char iSeqNo, u_int32_t tStamp, bool retrans, const unsigned char* buf, unsigned int len)

IAXFullFrame

Constructor. Constructs an incoming full frame

Parameters:
typeFrame type
subclassFrame subclass
sCallNoSource (remote) call number
dCallNoDestination (local) call number
oSeqNoOutgoing sequence number
iSeqNoIncoming (expected) sequence number
tStampFrame timestamp
retransRetransmission flag
bufIE buffer
lenIE buffer length

 IAXFullFrame (Type type, u_int32_t subclass, u_int16_t sCallNo, u_int16_t dCallNo, unsigned char oSeqNo, unsigned char iSeqNo, u_int32_t tStamp, const unsigned char* buf = 0, unsigned int len = 0)

IAXFullFrame

Constructor. Constructs an outgoing full frame

Parameters:
typeFrame type
subclassFrame subclass
sCallNoSource (remote) call number
dCallNoDestination (local) call number
oSeqNoOutgoing sequence number
iSeqNoIncoming (expected) sequence number
tStampFrame timestamp
bufIE buffer
lenIE buffer length

 ~IAXFullFrame ()

~IAXFullFrame

[virtual]

Destructor

inline u_int16_t  destCallNo ()

destCallNo

[const]

Get the destination call number

Returns: The destination call number

inline unsigned char  oSeqNo ()

oSeqNo

[const]

Get the outgoing sequence number

Returns: The outgoing sequence number

inline unsigned char  iSeqNo ()

iSeqNo

[const]

Get the incoming sequence number

Returns: The incoming sequence number

inline u_int32_t  subclass ()

subclass

[const]

Get the subclass of this frame

Returns: The subclass of this frame

const IAXFullFrame*  fullFrame ()

fullFrame

[const virtual]

Get a pointer to this frame if it is a full frame

Returns: A pointer to this frame

Reimplemented from IAXFrame.

void  toString (String& dest, const SocketAddr& local, const SocketAddr& remote, bool incoming)

toString

[const]

Fill a string with this frame

Parameters:
destThe string to fill
localThe local address
remoteThe remote address
incomingTrue if it is an incoming frame

Reimplemented from GenObject.

inline const char*  controlTypeText (int type)

controlTypeText

[static]

Get the string associated with the given IAX control type

Parameters:
typeThe requested control type

Returns: The text if type is valid or 0


Generated by: paulc on bussard on Fri Apr 1 18:17:10 2011, using kdoc 2.0a54.