H323SignalPDU Class Reference
#include <h323pdu.h>
List of all members.
|
Operations |
Q931 | q931pdu |
void | PrintOn (ostream &strm) const |
BOOL | Read (H323Transport &transport) |
BOOL | ProcessReadData (H323Transport &transport, const PBYTEArray &rawData) |
BOOL | Write (H323Transport &transport, H323Connection &connection) |
const Q931 & | GetQ931 () const |
Q931 & | GetQ931 () |
void | SetQ931 (const Q931 &_q931pdu) |
void | BuildQ931 () |
PString | GetSourceAliases (const H323Transport *transport=NULL) const |
PString | GetSourceURL () const |
PString | GetDestinationAlias (BOOL firstAliasOnly=FALSE) const |
BOOL | GetSourceE164 (PString &number) const |
BOOL | GetDestinationE164 (PString &number) const |
unsigned | GetDistinctiveRing () const |
void | SetQ931Fields (const H323Connection &connection, BOOL insertPartyNumbers=FALSE, unsigned plan=1, unsigned type=0, int presentation=-1, int screening=-1) |
Public Member Functions |
|
| H323SignalPDU () |
H225_Setup_UUIE & | BuildSetup (const H323Connection &connection, const H323TransportAddress &destAddr) |
H225_CallProceeding_UUIE & | BuildCallProceeding (const H323Connection &connection) |
H225_Connect_UUIE & | BuildConnect (const H323Connection &connection) |
H225_Connect_UUIE & | BuildConnect (const H323Connection &connection, const PIPSocket::Address &h245Address, WORD port) |
H225_Alerting_UUIE & | BuildAlerting (const H323Connection &connection) |
H225_Information_UUIE & | BuildInformation (const H323Connection &connection) |
H225_ReleaseComplete_UUIE & | BuildReleaseComplete (const H323Connection &connection) |
H225_Facility_UUIE * | BuildFacility (const H323Connection &connection, BOOL empty) |
H225_Progress_UUIE & | BuildProgress (const H323Connection &connection) |
H225_Status_UUIE & | BuildStatus (const H323Connection &connection) |
H225_StatusInquiry_UUIE & | BuildStatusInquiry (const H323Connection &connection) |
H225_SetupAcknowledge_UUIE & | BuildSetupAcknowledge (const H323Connection &connection) |
H225_Notify_UUIE & | BuildNotify (const H323Connection &connection) |
Detailed Description
Wrapper class for the H323 signalling channel.
Constructor & Destructor Documentation
H323SignalPDU::H323SignalPDU |
( |
|
) |
|
Create a new H.323 signalling channel (H.225/Q.931) PDU.
Member Function Documentation
Build a SETUP message.
- Parameters:
-
connection |
Connection PDU is generated for |
destAddr |
Destination address for packet |
Build a CALL-PROCEEDING message.
- Parameters:
-
connection |
Connection PDU is generated for |
Build a CONNECT message.
- Parameters:
-
connection |
Connection PDU is generated for |
Build a CONNECT message with H.245 address.
- Parameters:
-
connection |
Connection PDU is generated for |
h245Address |
H.245 IP address |
port |
H.245 TCP port |
Build an ALERTING message.
- Parameters:
-
connection |
Connection PDU is generated for |
Build a INFORMATION message.
- Parameters:
-
connection |
Connection PDU is generated for |
Build a RELEASE-COMPLETE message.
- Parameters:
-
connection |
Connection PDU is generated for |
Build a FACILITY message.
- Parameters:
-
connection |
Connection PDU is generated for |
empty |
Flag for empty facility message |
Build a PROGRESS message.
- Parameters:
-
connection |
Connection PDU is generated for |
Build a STATUS message.
- Parameters:
-
connection |
Connection PDU is generated for |
Build a STATUS-INQUIRY message.
- Parameters:
-
connection |
Connection PDU is generated for |
Build a SETUP-ACKNOWLEDGE message.
- Parameters:
-
connection |
Connection PDU is generated for |
Build a NOTIFY message.
- Parameters:
-
connection |
Connection PDU is generated for |
void H323SignalPDU::PrintOn |
( |
ostream & |
strm |
) |
const |
Read PDU from the specified transport.
- Parameters:
-
transport |
Transport to read from |
BOOL H323SignalPDU::ProcessReadData |
( |
H323Transport & |
transport, |
|
|
const PBYTEArray & |
rawData | |
|
) |
| | |
Process a block of raw read as a PDU
- Parameters:
-
transport |
Transport to read from |
Write the PDU to the transport.
- Parameters:
-
connection |
* Transport to write to* Connection for CallBack |
const Q931& H323SignalPDU::GetQ931 |
( |
|
) |
const [inline] |
Get the Q.931 wrapper PDU for H.225 signalling PDU.
References q931pdu.
Q931& H323SignalPDU::GetQ931 |
( |
|
) |
[inline] |
Get the Q.931 wrapper PDU for H.225 signalling PDU.
References q931pdu.
void H323SignalPDU::SetQ931 |
( |
const Q931 & |
_q931pdu |
) |
[inline] |
Set the Q.931 wrapper PDU for H.225 signalling PDU
References q931pdu.
void H323SignalPDU::BuildQ931 |
( |
|
) |
|
Build the Q.931 wrapper PDU for H.225 signalling PDU. This must be called after altering fields in the H.225 part of the PDU. If it has never been done, then the Write() functions will do so.
PString H323SignalPDU::GetSourceAliases |
( |
const H323Transport * |
transport = NULL |
) |
const |
Get the source alias names for the remote endpoint. This returns a human readable set of names that was provided by the remote endpoint to identify it, eg phone number, display name etc etc
- Parameters:
-
transport |
Transport PDU was read from. |
PString H323SignalPDU::GetSourceURL |
( |
|
) |
const |
Get the Source H323 URL This return the URL of the caller if Present. This can be used for Inter-Domain Name caller resolution
PString H323SignalPDU::GetDestinationAlias |
( |
BOOL |
firstAliasOnly = FALSE |
) |
const |
Get the destination alias name(s) for the local endpoint. The alias returned here can be used to determine the routing of an incoming connection.
- Parameters:
-
firstAliasOnly |
Only return the first possible alias |
BOOL H323SignalPDU::GetSourceE164 |
( |
PString & |
number |
) |
const |
Get the source endpoints identification as a phone number. This returns FALSE if the remote never provided any alias or Q.931 field that indicated a valid e.164 telephone number.
- Parameters:
-
number |
String to receive number |
BOOL H323SignalPDU::GetDestinationE164 |
( |
PString & |
number |
) |
const |
Get the destiation phone number. This returns FALSE if the remote never provided any alias or Q.931 field that indicated a valid e.164 telephone number.
- Parameters:
-
number |
String to receive number |
unsigned H323SignalPDU::GetDistinctiveRing |
( |
|
) |
const |
Get the distinctive ring code if present. This returns zero if no distinctive ring information is provided.
void H323SignalPDU::SetQ931Fields |
( |
const H323Connection & |
connection, |
|
|
BOOL |
insertPartyNumbers = FALSE , |
|
|
unsigned |
plan = 1 , |
|
|
unsigned |
type = 0 , |
|
|
int |
presentation = -1 , |
|
|
int |
screening = -1 | |
|
) |
| | |
Set the Q.931 fields in the PDU. This sets the default values for various fields, eg caller party number into the Q.931 from the supplied connection.
Member Data Documentation
The documentation for this class was generated from the following file: