oogkclient.h
来自「一个非常美妙的proxy。功能强大。基于sip的协议。如果还要的话」· C头文件 代码 · 共 561 行 · 第 1/2 页
H
561 行
/** * This function is used to fill endpoint's vendor information into vendor * identifier. * @param pGkClient Pointer to gatekeeper client. * @param psVendor Pointer to vendor identifier to be filled. * */EXTERN void ooGkClientRasFillVendor (ooGkClient *pGkClient, H225VendorIdentifier *psVendor);/** * This function is invoked to receive data on Gatekeeper client's RAS channel. * @param pGkClient Handle to Gatekeeper client for which message has to be * received. * * @return Completion status - OO_OK on success, OO_FAILED on * failure */EXTERN int ooGkClientReceive(ooGkClient *pGkClient);/** * This function is used to handle a received RAS message by a gatekeeper * client. * @param pGkClient Handle to gatekeeper client. * @param pRasMsg Handle to received Ras message. * * @return OO_OK, on success. OO_FAILED, on failure. */EXTERN int ooGkClientHandleRASMessage (ooGkClient *pGkClient, H225RasMessage *pRasMsg);/** * This function is used to send a message on Gatekeeper clien't RAS channel. * @param pGkClient Handle to the gatekeeper client. * @param pRasMsg Handle to Ras message to be sent. * * @return OO_OK, on success. OO_FAILED, otherwise. */EXTERN int ooGkClientSendMsg(ooGkClient *pGkClient, H225RasMessage *pRasMsg);/** * This function is used to send Gatekeeper request message. * @param pGkClient Handle to gatekeeper client for which GRQ message has to * be sent. * * @return OO_OK, on success. OO_FAILED, otherwise. */EXTERN int ooGkClientSendGRQ(ooGkClient *pGkClient);/** * This function is used to handle a received gatekeeper reject message. * @param pGkClient Handle to gatekeeper client. * @param pGatekeeperReject Handle to received reject message. * * @return OO_OK, on success. OO_FAILED, otherwise. */EXTERN int ooGkClientHandleGatekeeperReject (ooGkClient *pGkClient, H225GatekeeperReject *pGatekeeperReject);/** * This function is used to handle a received gatekeeper confirm message. * @param pGkClient Handle to gatekeeper client. * @param pGatekeeperConfirm Handle to received confirmed message. * * @return OO_OK, on success. OO_FAILED, otherwise. */EXTERN int ooGkClientHandleGatekeeperConfirm (ooGkClient *pGkClient, H225GatekeeperConfirm *pGatekeeperConfirm);/** * This function is used to send Registration request message. * @param pGkClient Handle to gatekeeper client for which RRQ message has to * be sent. * @param keepAlive Indicates whether keepalive lightweight registration has * to be sent. * * @return OO_OK, on success. OO_FAILED, otherwise. */EXTERN int ooGkClientSendRRQ(ooGkClient *pGkClient, ASN1BOOL keepAlive);/** * This function is used to handle a received registration confirm message. * @param pGkClient Handle to gatekeeper client. * @param pRegistrationConfirm Handle to received confirmed message. * * @return OO_OK, on success. OO_FAILED, otherwise. */EXTERN int ooGkClientHandleRegistrationConfirm (ooGkClient *pGkClient, H225RegistrationConfirm *pRegistrationConfirm);/** * This function is used to handle a received registration reject message. * @param pGkClient Handle to gatekeeper client. * @param pRegistrationReject Handle to received reject message. * * @return OO_OK, on success. OO_FAILED, otherwise. */EXTERN int ooGkClientHandleRegistrationReject (ooGkClient *pGkClient, H225RegistrationReject *pRegistrationReject);/** * This function is used to send UnRegistration request message. * @param pGkClient Handle to gatekeeper client for which URQ message has to * be sent. * @param aliases List of aliases to be unregistered. NULL, if all the * aliases have to be unregistered. * * @return OO_OK, on success. OO_FAILED, otherwise. */EXTERN int ooGkClientSendURQ(ooGkClient *pGkClient, struct OOAliases *aliases);/** * This function is used to handle a received Unregistration request message. * @param pGkClient Handle to gatekeeper client. * @param punregistrationRequest Handle to received unregistration request. * * @return OO_OK, on success. OO_FAILED, otherwise. */EXTERN int ooGkClientHandleUnregistrationRequest (ooGkClient *pGkClient, H225UnregistrationRequest *punregistrationRequest);/** * This function is used to send an unregistration confirm messsage to * gatekeeper. * @param pGkClient Handle to gatekeeper client. * @param reqNo Request Sequence number for the confirm message. * * @return OO_OK, on success. OO_FAILED, on failure. */EXTERN int ooGkClientSendUnregistrationConfirm(ooGkClient *pGkClient, unsigned reqNo);/** * This function is invoked to request bandwith admission for a call. * @param pGkClient Gatekeeper client to be used * @param call Handle to the call. * @param retransmit Indicates whether new call or retransmitting for * existing call. * * @return OO_OK, on success. OO_FAILED, on failure. */EXTERN int ooGkClientSendAdmissionRequest (ooGkClient *pGkClient, struct OOH323CallData *call, ASN1BOOL retransmit);/** * This function is used to handle a received Admission confirm message. * @param pGkClient Handle to gatekeeper client. * @param pAdmissionConfirm Handle to received confirmed message. * * @return OO_OK, on success. OO_FAILED, otherwise. */EXTERN int ooGkClientHandleAdmissionConfirm (ooGkClient *pGkClient, H225AdmissionConfirm *pAdmissionConfirm);/** * This function is used to handle a received Admission Reject message. It * finds the associated call and marks it for cleaning with appropriate * call end reason code. * @param pGkClient Handle to Gatekeeper client. * @param pAdmissionReject Handle to received admission reject message. * * @return OO_OK, on success. OO_FAILED, on failure. */EXTERN int ooGkClientHandleAdmissionReject (ooGkClient *pGkClient, H225AdmissionReject *pAdmissionReject);/** * This function is invoked to request call disengage to gatekeeper. * @param pGkClient Gatekeeper client to be used. * @param call Call Handle * * @return Completion status - OO_OK on success, OO_FAILED on failure */EXTERN int ooGkClientSendDisengageRequest (ooGkClient *pGkClient, struct OOH323CallData *call);/** * This function is used to handle a received disengage confirm message. * @param pGkClient Handle to gatekeeper client. * @param pDCF Handle to received confirmed message. * * @return OO_OK, on success. OO_FAILED, otherwise. */EXTERN int ooGkClientHandleDisengageConfirm (ooGkClient *pGkClient, H225DisengageConfirm *pDCF);/** * This function is used to handle an expired registration request timer. * @param pdata Handle to callback data * * @return OO_OK, on success. OO_FAILED, on failure. */EXTERN int ooGkClientRRQTimerExpired(void*pdata);/** * This function is used to handle an expired gatekeeper request timer. * @param pdata Handle to callback data * * @return OO_OK, on success. OO_FAILED, on failure. */EXTERN int ooGkClientGRQTimerExpired(void* pdata);/** * This function is used to handle an expired registration time-to-live timer. * @param pdata Handle to callback data * * @return OO_OK, on success. OO_FAILED, on failure. */EXTERN int ooGkClientREGTimerExpired(void *pdata);/** * This function is used to handle an expired admission request timer. * @param pdata Handle to callback data * * @return OO_OK, on success. OO_FAILED, on failure. */EXTERN int ooGkClientARQTimerExpired(void* pdata);/** * This function is used to clean call related data from gatekeeper client. * @param pGkClient Handle to the gatekeeper client. * @param call Handle to the call to be cleaned. * * @return OO_OK, on success. OO_FAILED, on failure. */EXTERN int ooGkClientCleanCall(ooGkClient *pGkClient, struct OOH323CallData *call);/** * This function is used to handle gatekeeper client failure or gatekeeper * failure which can be detected by unresponsiveness of gk. * @param pGkClient Handle to gatekeeper client. * * @return OO_OK, on success. OO_FAILED, on failure. */EXTERN int ooGkClientHandleClientOrGkFailure(ooGkClient *pGkClient);/** * This function is used to update the registration status of aliases. * @param pGkClient Handle to the GK client. * @param pAddresses List of newly registered addresses. NULL means all * aliases have been successfully registered. * @param registered Indicates whether aliases are registered or unregistered. * * @return OO_OK, on success. OO_FAILED, on failure. */EXTERN int ooGkClientUpdateRegisteredAliases (ooGkClient *pGkClient, H225_SeqOfH225AliasAddress *pAddresses, OOBOOL registered);/** * This function is used internally to set Gatekeeper Clients callbacks. * Note: This functionality is not yet fully supported * @param pGkClient Handle to the GK client. * @param callbacks Callback structure contatining various gatekeeper client * callbacks. * @return OO_OK, on success. OO_FAILED, on failure. */int ooGkClientSetCallbacks (ooGkClient *pGkClient, OOGKCLIENTCALLBACKS callbacks);/** * @} */#ifdef __cplusplus}#endif#endif /* __GKCLIENT_H */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?