27 #ifndef OPAL_H323_Q931_H
28 #define OPAL_H323_Q931_H
40 class Q931 :
public PObject
42 PCLASSINFO(
Q931, PObject)
84 unsigned codingStandard = 0,
97 PBoolean
Decode(
const PBYTEArray & data);
98 PBoolean
Encode(PBYTEArray & data)
const;
100 void PrintOn(ostream & strm)
const;
133 const PBYTEArray & userData,
149 unsigned transferRate,
150 unsigned codingStandard = 0,
151 unsigned userInfoLayer1 = 5
159 unsigned & transferRate,
160 unsigned * codingStandard = NULL,
161 unsigned * userInfoLayer1 = NULL
207 unsigned standard = 0,
208 unsigned location = 0
211 unsigned * standard = NULL,
212 unsigned * location = NULL
236 unsigned standard = 0
239 unsigned * standard = NULL
283 unsigned description,
284 unsigned codingStandard = 0,
285 unsigned location = 0
288 unsigned & description,
289 unsigned * codingStandard = NULL,
290 unsigned * location = NULL
317 const PString & number,
320 int presentation = -1,
325 unsigned * plan = NULL,
326 unsigned * type = NULL,
327 unsigned * presentation = NULL,
328 unsigned * screening = NULL,
329 unsigned defPresentation = 0,
330 unsigned defScreening = 0
335 const PString & number,
341 unsigned * plan = NULL,
342 unsigned * type = NULL
347 const PString & number,
350 int presentation = -1,
356 unsigned * plan = NULL,
357 unsigned * type = NULL,
358 unsigned * presentation = NULL,
359 unsigned * screening = NULL,
360 unsigned * reason = NULL,
361 unsigned defPresentation = 0,
362 unsigned defScreening = 0,
363 unsigned defReason =0
367 const PString & number,
370 int presentation = -1,
376 unsigned * plan = NULL,
377 unsigned * type = NULL,
378 unsigned * presentation = NULL,
379 unsigned * screening = NULL,
380 unsigned * reason = NULL,
381 unsigned defPresentation = 0,
382 unsigned defScreening = 0,
383 unsigned defReason =0
393 unsigned interfaceType = 0,
394 unsigned preferredOrExclusive = 0,
395 int channelNumber = 1
401 unsigned * interfaceType = NULL,
402 unsigned * preferredOrExclusive = NULL,
403 int * channelNumber = NULL
412 PARRAY(InternalInformationElement, PBYTEArray);
413 PDICTIONARY(InternalInformationElements, POrdinalKey, InternalInformationElement);
418 #endif // OPAL_H323_Q931_H
CauseValues
Definition: q931.h:164
void BuildSetup(int callRef=-1)
void RemoveIE(InformationElementCodes ie)
PDICTIONARY(InternalInformationElements, POrdinalKey, InternalInformationElement)
void BuildNotify(int callRef, PBoolean fromDest)
InformationTransferCapability
Definition: q931.h:138
void BuildStatusEnquiry(int callRef, PBoolean fromDest)
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)
PString GetCalledPartyNumber() const
NumberingPlanCodes
Definition: q931.h:296
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:409
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)
PARRAY(InternalInformationElement, PBYTEArray)
friend ostream & operator<<(ostream &strm, InformationElementCodes ie)
void BuildSetupAcknowledge(int callRef)
CallStates
Definition: q931.h:215
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:414
void BuildReleaseComplete(int callRef, PBoolean fromDest)
void SetSignalInfo(SignalInfo value)
unsigned callReference
Definition: q931.h:407
CauseValues GetCause(unsigned *standard=NULL, unsigned *location=NULL) const
InformationElementCodes
Definition: q931.h:108
void BuildConnect(int callRef)
void BuildInformation(int callRef, PBoolean fromDest)
PBoolean GetProgressIndicator(unsigned &description, unsigned *codingStandard=NULL, unsigned *location=NULL) const
PBoolean GetBearerCapabilities(InformationTransferCapability &capability, unsigned &transferRate, unsigned *codingStandard=NULL, unsigned *userInfoLayer1=NULL) const
SignalInfo
Definition: q931.h:242
PBoolean Decode(const PBYTEArray &data)
MsgTypes messageType
Definition: q931.h:410
PBoolean fromDestination
Definition: q931.h:408
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:105
PString GetDisplayName() const
unsigned GetCallReference() const
Definition: q931.h:104
static unsigned GenerateCallReference()
void SetKeypad(const PString &digits)
#define FALSE
Definition: lidplugin.h:64
PString GetCallingPartyNumber() const
TypeOfNumberCodes
Definition: q931.h:306
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:271
void SetChannelIdentification(unsigned interfaceType=0, unsigned preferredOrExclusive=0, int channelNumber=1)
MsgTypes GetMessageType() const
Definition: q931.h:106
PString GetMessageTypeName() const
MsgTypes
Definition: q931.h:44
void BuildStatus(int callRef, PBoolean fromDest)
PBYTEArray GetIE(InformationElementCodes ie, PINDEX idx=0) const
void SetProgressIndicator(unsigned description, unsigned codingStandard=0, unsigned location=0)