virtual H323GatekeeperRequest::Response OnRegistration( H323GatekeeperRRQ & request )
- Call back on receiving a RAS registration for this endpoint.
The default behaviour extract information from the RRQ and sets
internal variables to that data.
If returns TRUE then a RCF is sent otherwise an RRJ is sent.
virtual H323GatekeeperRequest::Response OnFullRegistration( H323GatekeeperRRQ & request )
- Call back on receiving a RAS full registration for this endpoint.
This is not called if the keepAlive flag is set indicating a
lightweight RRQ has been received.
The default behaviour extract information from the RRQ and sets
internal variables to that data.
If returns TRUE then a RCF is sent otherwise an RRJ is sent.
virtual H323GatekeeperRequest::Response OnSecureRegistration( H323GatekeeperRRQ & request )
- Call back to set security on RAS full registration for this endpoint.
This is called from OnFullRegistration().
The default behaviour extract information from the RRQ and sets
internal variables to that data.
If returns TRUE then a RCF is sent otherwise an RRJ is sent.
virtual H323GatekeeperRequest::Response OnUnregistration( H323GatekeeperURQ & request )
- Call back on receiving a RAS unregistration for this endpoint.
The default behaviour clears all calls owned by this endpoint.
virtual BOOL Unregister( int reason = -1 )
- Force unregistration of the endpoint.
This sendsa URQ to the endpoint(s) to close the call down.
virtual H323GatekeeperRequest::Response OnInfoResponse( H323GatekeeperIRR & request )
- Handle an info request response IRR PDU.
The default behaviour finds each call current for endpoint and calls
the function of the same name in the H323GatekeeperCall instance.
virtual BOOL OnTimeToLive()
- Function called to do time to live check of the call.
Monitor the state of the endpoint and make sure everything is OK.
A return value of FALSE indicates the endpoint has expired and is to be
unregistered and removed.
Default behaviour checks the time since the last received RRQ and if
it has been too long does an IRQ to see if the endpoint is
still there and running. If the IRQ fails, FALSE is returned.
virtual PString GetCallCreditAmount() const
- Get the current call credit for this endpoint.
This function is only called if the client indicates that it can use
the information provided. If a server wishes to enable this feature by
returning a non-empty string, it must be consistent in that usage. That
is the H323GatekeeperCall::GetCallCreditAmount() for this endpoint
must also return non-empty value.
The return value is a UTF-8 string for amount, including currency.
The default behaviour returns an empty string disabling the function.
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 return TRUE indicating that calls will debit the
account.
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.
virtual BOOL AddServiceControlSession( const H323ServiceControlSession & session, H225_ArrayOf_ServiceControlSession & serviceControl )
- Set the service control session for the PDU.
This is an internal function.