virtual H323GatekeeperRequest::Response OnAdmission( H323GatekeeperARQ & request )
- 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 BOOL Disengage( int reason = -1 )
- Shut down a call.
This sendsa DRQ to the endpoint(s) to close the call down.
virtual H323GatekeeperRequest::Response OnDisengage( H323GatekeeperDRQ & request )
- Handle a disengage DRQ PDU.
The default behaviour simply returns TRUE.
virtual H323GatekeeperRequest::Response OnBandwidth( H323GatekeeperBRQ & request )
- 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 H323GatekeeperRequest::Response OnInfoResponse( H323GatekeeperIRR & request, H225_InfoRequestResponse_perCallInfo_subtype & call )
- Handle an info request response IRR PDU.
The default behaviour resets the heartbeat time monitoring the call.
virtual void OnAlerting()
- Call back when an info response detects an Alerting
virtual void OnConnected()
- Call back when an info response detects an Connected
virtual BOOL OnHeartbeat()
- 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 PString GetCallCreditAmount() const
- 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 BOOL GetCallCreditMode() const
- 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.
virtual unsigned GetDurationLimit() const
- 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.
virtual BOOL SendCallCreditServiceControl()
- 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.
BOOL AddCallCreditServiceControl( H225_ArrayOf_ServiceControlSession & serviceControl ) const
- Add call credit and duration information to PDU
virtual BOOL SendServiceControlSession( const H323ServiceControlSession & session )
- Send the service control session for the PDU.
This will send an SCI pdu to the endpoint with the control service
session information provided.