31 #ifndef OPAL_H323_Q931_H
32 #define OPAL_H323_Q931_H
44 class Q931 :
public PObject
46 PCLASSINFO(
Q931, PObject)
88 unsigned codingStandard = 0,
101 PBoolean
Decode(
const PBYTEArray & data);
102 PBoolean
Encode(PBYTEArray & data)
const;
104 void PrintOn(ostream & strm)
const;
137 const PBYTEArray & userData,
153 unsigned transferRate,
154 unsigned codingStandard = 0,
155 unsigned userInfoLayer1 = 5
163 unsigned & transferRate,
164 unsigned * codingStandard = NULL,
165 unsigned * userInfoLayer1 = NULL
211 unsigned standard = 0,
212 unsigned location = 0
215 unsigned * standard = NULL,
216 unsigned * location = NULL
240 unsigned standard = 0
243 unsigned * standard = NULL
287 unsigned description,
288 unsigned codingStandard = 0,
289 unsigned location = 0
292 unsigned & description,
293 unsigned * codingStandard = NULL,
294 unsigned * location = NULL
321 const PString & number,
324 int presentation = -1,
329 unsigned * plan = NULL,
330 unsigned * type = NULL,
331 unsigned * presentation = NULL,
332 unsigned * screening = NULL,
333 unsigned defPresentation = 0,
334 unsigned defScreening = 0
338 const PString & number,
344 unsigned * plan = NULL,
345 unsigned * type = NULL
349 const PString & number,
352 int presentation = -1,
358 unsigned * plan = NULL,
359 unsigned * type = NULL,
360 unsigned * presentation = NULL,
361 unsigned * screening = NULL,
362 unsigned * reason = NULL,
363 unsigned defPresentation = 0,
364 unsigned defScreening = 0,
365 unsigned defReason =0
369 const PString & number,
372 int presentation = -1,
378 unsigned * plan = NULL,
379 unsigned * type = NULL,
380 unsigned * presentation = NULL,
381 unsigned * screening = NULL,
382 unsigned * reason = NULL,
383 unsigned defPresentation = 0,
384 unsigned defScreening = 0,
385 unsigned defReason =0
395 unsigned interfaceType = 0,
396 unsigned preferredOrExclusive = 0,
397 int channelNumber = 1
403 unsigned * interfaceType = NULL,
404 unsigned * preferredOrExclusive = NULL,
405 int * channelNumber = NULL
414 PARRAY(InternalInformationElement, PBYTEArray);
415 PDICTIONARY(InternalInformationElements, POrdinalKey, InternalInformationElement);
420 #endif // OPAL_H323_Q931_H
CauseValues
Definition: q931.h:168
void BuildSetup(int callRef=-1)
void RemoveIE(InformationElementCodes ie)
PDICTIONARY(InternalInformationElements, POrdinalKey, InternalInformationElement)
void BuildNotify(int callRef, PBoolean fromDest)
InformationTransferCapability
Definition: q931.h:142
void BuildStatusEnquiry(int callRef, PBoolean fromDest)
PBoolean GetBearerCapabilities(InformationTransferCapability &capability, unsigned &transferRate, unsigned *codingStandard=NULL, unsigned *userInfoLayer1=NULL)
PBoolean Encode(PBYTEArray &data) const
PBoolean GetRedirectingNumber(PString &number, unsigned *plan=NULL, unsigned *type=NULL, unsigned *presentation=NULL, unsigned *screening=NULL, unsigned *reason=NULL, unsigned defPresentation=0, unsigned defScreening=0, unsigned defReason=0) const
void BuildProgress(int callRef, PBoolean fromDest, unsigned description, unsigned codingStandard=0, unsigned location=0)
SignalInfo GetSignalInfo() const
void SetCause(CauseValues value, unsigned standard=0, unsigned location=0)
NumberingPlanCodes
Definition: q931.h:300
PBoolean GetCallingPartyNumber(PString &number, unsigned *plan=NULL, unsigned *type=NULL, unsigned *presentation=NULL, unsigned *screening=NULL, unsigned defPresentation=0, unsigned defScreening=0) const
PBoolean GetConnectedNumber(PString &number, unsigned *plan=NULL, unsigned *type=NULL, unsigned *presentation=NULL, unsigned *screening=NULL, unsigned *reason=NULL, unsigned defPresentation=0, unsigned defScreening=0, unsigned defReason=0) const
unsigned protocolDiscriminator
Definition: q931.h:411
void SetRedirectingNumber(const PString &number, unsigned plan=1, unsigned type=0, int presentation=-1, int screening=-1, int reason=-1)
Q931 & operator=(const Q931 &other)
PBoolean GetCalledPartyNumber(PString &number, unsigned *plan=NULL, unsigned *type=NULL) const
PARRAY(InternalInformationElement, PBYTEArray)
friend ostream & operator<<(ostream &strm, InformationElementCodes ie)
void BuildSetupAcknowledge(int callRef)
CallStates
Definition: q931.h:219
void SetBearerCapabilities(InformationTransferCapability capability, unsigned transferRate, unsigned codingStandard=0, unsigned userInfoLayer1=5)
PBoolean GetChannelIdentification(unsigned *interfaceType=NULL, unsigned *preferredOrExclusive=NULL, int *channelNumber=NULL) const
PString GetKeypad() const
void SetCallingPartyNumber(const PString &number, unsigned plan=1, unsigned type=0, int presentation=-1, int screening=-1)
InternalInformationElements informationElements
Definition: q931.h:416
void BuildReleaseComplete(int callRef, PBoolean fromDest)
void SetSignalInfo(SignalInfo value)
unsigned callReference
Definition: q931.h:409
CauseValues GetCause(unsigned *standard=NULL, unsigned *location=NULL) const
InformationElementCodes
Definition: q931.h:112
void BuildConnect(int callRef)
void BuildInformation(int callRef, PBoolean fromDest)
PBoolean GetProgressIndicator(unsigned &description, unsigned *codingStandard=NULL, unsigned *location=NULL) const
SignalInfo
Definition: q931.h:246
PBoolean Decode(const PBYTEArray &data)
MsgTypes messageType
Definition: q931.h:412
PBoolean fromDestination
Definition: q931.h:410
CallStates GetCallState(unsigned *standard=NULL) const
void SetDisplayName(const PString &name)
void SetConnectedNumber(const PString &number, unsigned plan=1, unsigned type=0, int presentation=-1, int screening=-1, int reason=-1)
PBoolean HasIE(InformationElementCodes ie) const
PBoolean IsFromDestination() const
Definition: q931.h:109
PString GetDisplayName() const
unsigned GetCallReference() const
Definition: q931.h:108
static unsigned GenerateCallReference()
void SetKeypad(const PString &digits)
#define FALSE
Definition: lidplugin.h:68
TypeOfNumberCodes
Definition: q931.h:310
void SetCalledPartyNumber(const PString &number, unsigned plan=1, unsigned type=0)
void BuildCallProceeding(int callRef)
void SetCallState(CallStates value, unsigned standard=0)
void BuildAlerting(int callRef)
void PrintOn(ostream &strm) const
void SetIE(InformationElementCodes ie, const PBYTEArray &userData, bool append=FALSE)
void BuildFacility(int callRef, PBoolean fromDest)
ProgressIndication
Definition: q931.h:275
void SetChannelIdentification(unsigned interfaceType=0, unsigned preferredOrExclusive=0, int channelNumber=1)
MsgTypes GetMessageType() const
Definition: q931.h:110
PString GetMessageTypeName() const
MsgTypes
Definition: q931.h:48
void BuildStatus(int callRef, PBoolean fromDest)
PBYTEArray GetIE(InformationElementCodes ie, PINDEX idx=0) const
void SetProgressIndicator(unsigned description, unsigned codingStandard=0, unsigned location=0)