OPAL
Version 3.18.8
|
#include <gkserver.h>
Inherits PSafeObject.
Public Member Functions | |
Overrides from PObject | |
Comparison | Compare (const PObject &obj) const |
void | PrintOn (ostream &strm) const |
Operations | |
virtual H323GatekeeperRequest::Response | OnAdmission (H323GatekeeperARQ &request) |
virtual PBoolean | Disengage (int reason=-1) |
virtual H323GatekeeperRequest::Response | OnDisengage (H323GatekeeperDRQ &request) |
virtual H323GatekeeperRequest::Response | OnBandwidth (H323GatekeeperBRQ &request) |
virtual H323GatekeeperRequest::Response | OnInfoResponse (H323GatekeeperIRR &request, H225_InfoRequestResponse_perCallInfo_subtype &call) |
virtual void | OnAlerting () |
virtual void | OnConnected () |
virtual PBoolean | OnHeartbeat () |
virtual PString | GetCallCreditAmount () const |
virtual PBoolean | GetCallCreditMode () const |
virtual unsigned | GetDurationLimit () const |
virtual PBoolean | SendCallCreditServiceControl () |
bool | AddCallCreditServiceControl (H225_ArrayOf_ServiceControlSession &serviceControl) const |
virtual PBoolean | SendServiceControlSession (const H323ServiceControlSession &session) |
virtual PBoolean | TranslateAliasAddress (const H225_AliasAddress &alias, H225_ArrayOf_AliasAddress &aliases, H323TransportAddress &address, PBoolean &isGkRouted) |
Access functions | |
H323GatekeeperServer & | GetGatekeeper () const |
H323RegisteredEndPoint & | GetEndPoint () const |
bool | IsAnsweringCall () const |
unsigned | GetCallReference () const |
const OpalGloballyUniqueID & | GetCallIdentifier () const |
const OpalGloballyUniqueID & | GetConferenceIdentifier () const |
const PString & | GetSourceNumber () const |
const PStringArray & | GetSourceAliases () const |
const H323TransportAddress & | GetSourceHost () const |
PString | GetSourceAddress () const |
const PString & | GetDestinationNumber () const |
const PStringArray & | GetDestinationAliases () const |
const H323TransportAddress & | GetDestinationHost () const |
PString | GetDestinationAddress () const |
unsigned | GetBandwidthUsed () const |
bool | SetBandwidthUsed (unsigned bandwidth) |
const PTime & | GetLastInfoResponseTime () const |
const PTime & | GetCallStartTime () const |
const PTime & | GetAlertingTime () const |
const PTime & | GetConnectedTime () const |
const PTime & | GetCallEndTime () const |
H323Connection::CallEndReason | GetCallEndReason () const |
Protected Member Functions | |
void | SetUsageInfo (const H225_RasUsageInformation &usage) |
Protected Attributes | |
H323GatekeeperServer & | m_gatekeeper |
H323RegisteredEndPoint * | m_endpoint |
H323GatekeeperListener * | m_rasChannel |
Direction | m_direction |
unsigned | m_callReference |
OpalGloballyUniqueID | m_callIdentifier |
OpalGloballyUniqueID | m_conferenceIdentifier |
PString | m_srcNumber |
PStringArray | m_srcAliases |
H323TransportAddress | m_srcHost |
PString | m_dstNumber |
PStringArray | m_dstAliases |
H323TransportAddress | m_dstHost |
unsigned | m_bandwidthUsed |
unsigned | m_infoResponseRate |
PTime | m_lastInfoResponse |
bool | m_drqReceived |
PTime | m_callStartTime |
PTime | m_alertingTime |
PTime | m_connectedTime |
PTime | m_callEndTime |
H323Connection::CallEndReason | m_callEndReason |
Construction | |
enum | Direction { AnsweringCall, OriginatingCall, UnknownDirection } |
H323GatekeeperCall (H323GatekeeperServer &server, const OpalGloballyUniqueID &callIdentifier, Direction direction) | |
~H323GatekeeperCall () | |
This class describes an active call on a gatekeeper.
H323GatekeeperCall::H323GatekeeperCall | ( | H323GatekeeperServer & | server, |
const OpalGloballyUniqueID & | callIdentifier, | ||
Direction | direction | ||
) |
Create a new gatekeeper call tracking record.
server | Owner gatekeeper server |
callIdentifier | Unique call identifier |
direction | Direction of call |
H323GatekeeperCall::~H323GatekeeperCall | ( | ) |
Destroy the call, removing itself from the endpoint.
bool H323GatekeeperCall::AddCallCreditServiceControl | ( | H225_ArrayOf_ServiceControlSession & | serviceControl | ) | const |
Add call credit and duration information to PDU.
Comparison H323GatekeeperCall::Compare | ( | const PObject & | obj | ) | const |
Compare two objects.
obj | Other object |
|
virtual |
Shut down a call. This sendsa DRQ to the endpoint(s) to close the call down.
reason | Reason for disengage |
|
inline |
References m_alertingTime.
|
inline |
References m_bandwidthUsed.
|
virtual |
Get the current credit for this call. This function is only called if the client indicates that it can use the information provided.
The default behaviour calls the same function on the endpoint.
|
virtual |
Get the call credit billing mode for this endpoint. This function is only called if the client indicates that it can use the information provided.
The default behaviour calls the same function on the endpoint.
|
inline |
References m_callEndReason.
|
inline |
References m_callEndTime.
|
inline |
References m_callIdentifier.
|
inline |
References m_callReference.
|
inline |
References m_callStartTime.
|
inline |
References m_conferenceIdentifier.
|
inline |
References m_connectedTime.
PString H323GatekeeperCall::GetDestinationAddress | ( | ) | const |
|
inline |
References m_dstAliases.
|
inline |
References m_dstHost.
|
inline |
References m_dstNumber.
|
virtual |
Get the duration limit for this call. This function is only called if the client indicates that it can use the information provided.
The default behaviour returns zero which indicates there is no duration limit applicable.
|
inline |
References m_endpoint.
|
inline |
References m_gatekeeper.
|
inline |
References m_lastInfoResponse.
PString H323GatekeeperCall::GetSourceAddress | ( | ) | const |
|
inline |
References m_srcAliases.
|
inline |
References m_srcHost.
|
inline |
References m_srcNumber.
|
inline |
References AnsweringCall, and m_direction.
|
virtual |
Handle an admission ARQ PDU. The default behaviour sets some internal variables from the ARQ data and then calls OnResolveAdmission, if necessary, and OnReplyAdmission every time.
|
virtual |
Call back when an info response detects an Alerting.
|
virtual |
Handle a bandwidth BRQ PDU. The default behaviour adjusts the bandwidth used by the gatekeeper and adjusts the remote endpoint according to those limits.
|
virtual |
Call back when an info response detects an Connected.
|
virtual |
Handle a disengage DRQ PDU. The default behaviour simply returns true.
|
virtual |
Function called to do heartbeat check of the call. Monitor the state of the call and make sure everything is OK.
A return value of false indicates the call is to be closed for some reason.
Default behaviour checks the time since the last received IRR and if it has been too long does an IRQ to see if the call (and endpoint!) is still there and running. If the IRQ fails, false is returned.
|
virtual |
Handle an info request response IRR PDU. The default behaviour resets the heartbeat time monitoring the call.
void H323GatekeeperCall::PrintOn | ( | ostream & | strm | ) | const |
Print the name of the gatekeeper.
strm | Stream to print to. |
|
virtual |
Send the call credit service control PDU. This will send an SCI pdu to the endpoint with the control service session information for the current call credit, if enabled.
|
virtual |
Send the service control session for the PDU. This will send an SCI pdu to the endpoint with the control service session information provided.
bool H323GatekeeperCall::SetBandwidthUsed | ( | unsigned | bandwidth | ) |
|
protected |
|
virtual |
Translate a given alias to an alias set and signal address. This is called by the OnAdmission() handler to fill in the ACF
The default behaviour calls H323GatekeeperServer::TranslateAliasAddress.
|
protected |
Referenced by GetAlertingTime().
|
protected |
Referenced by GetBandwidthUsed().
|
protected |
Referenced by GetCallEndReason().
|
protected |
Referenced by GetCallEndTime().
|
protected |
Referenced by GetCallIdentifier().
|
protected |
Referenced by GetCallReference().
|
protected |
Referenced by GetCallStartTime().
|
protected |
Referenced by GetConferenceIdentifier().
|
protected |
Referenced by GetConnectedTime().
|
protected |
Referenced by IsAnsweringCall().
|
protected |
|
protected |
Referenced by GetDestinationAliases().
|
protected |
Referenced by GetDestinationHost().
|
protected |
Referenced by GetDestinationNumber().
|
protected |
Referenced by GetEndPoint().
|
protected |
Referenced by GetGatekeeper().
|
protected |
|
protected |
Referenced by GetLastInfoResponseTime().
|
protected |
|
protected |
Referenced by GetSourceAliases().
|
protected |
Referenced by GetSourceHost().
|
protected |
Referenced by GetSourceNumber().