oocalls.h

来自「一个非常美妙的proxy。功能强大。基于sip的协议。如果还要的话」· C头文件 代码 · 共 786 行 · 第 1/3 页

H
786
字号
 * @return                     OO_OK, on success. OO_FAILED, on failure.  */EXTERN int ooCallAddGSMCapability(OOH323CallData* call, int cap,                                   ASN1USINT framesPerPkt, OOBOOL comfortNoise,                                   OOBOOL scrambled, int dir,                                  cb_StartReceiveChannel startReceiveChannel,                                  cb_StartTransmitChannel startTransmitChannel,                                  cb_StopReceiveChannel stopReceiveChannel,				  cb_StopTransmitChannel stopTransmitChannel);/** * This function is used to add H263 video capability for the call. The  * "ooCallAdd...Capability" functions allow to override the global endpoint  * capabilities and use specific capabilities for specific calls. * @param call                 Call for which capability has to be added. * @param cap                  Capability type - OO_H263VIDEO * @param sqcifMPI             Minimum picture interval for encoding/decoding  *                             of SQCIF pictures. * @param qcifMPI              Minimum picture interval for encoding/decoding  *                             of QCIF pictures. * @param cifMPI               Minimum picture interval for encoding/decoding  *                             of CIF pictures. * @param cif4MPI              Minimum picture interval for encoding/decoding  *                             of CIF4 pictures. * @param cif16MPI             Minimum picture interval for encoding/decoding  *                             of CIF16 pictures. * @param maxBitRate           Maximum bit rate in units of 100 bits/s at *                             which a transmitter can transmit video or a  *                             receiver can receive video. * @param dir                  Direction of capability.OORX, OOTX, OORXANDTX * @param startReceiveChannel  Callback function to start receive channel. * @param startTransmitChannel Callback function to start transmit channel. * @param stopReceiveChannel   Callback function to stop receive channel. * @param stopTransmitChannel  Callback function to stop transmit channel. * * @return                     OO_OK, on success. OO_FAILED, on failure.  */EXTERN int ooCallAddH263VideoCapability(OOH323CallData *call, int cap,                                  unsigned sqcifMPI, unsigned qcifMPI,                                  unsigned cifMPI, unsigned cif4MPI,                                  unsigned cif16MPI, unsigned maxBitRate,                                  int dir,                                  cb_StartReceiveChannel startReceiveChannel,                                 cb_StartTransmitChannel startTransmitChannel,                                 cb_StopReceiveChannel stopReceiveChannel,                                 cb_StopTransmitChannel stopTransmitChannel);/** * This function is used to enable rfc 2833 capability for the call. By default * the stack uses the dtmf settings for the endpoint. But if you want to * enable/disable dtmf for a specific call, then you can override end-point * settings using this function * @param call                  Call for which rfc2833 has to be enabled. * @param dynamicRTPPayloadType dynamicRTPPayloadType to be used. * * @return                      OO_OK, on success. OO_FAILED, on failure */EXTERN int ooCallEnableDTMFRFC2833          (OOH323CallData *call, int dynamicRTPPayloadType);/** * This function is used to disable rfc 2833 capability for the call.  * By default the stack uses the dtmf settings for the endpoint. But if you  * want to enable/disable dtmf for a specific call, then you can override  * end-point settings using this function * @param call                  Call for which rfc2833 has to be disabled. * * @return                      OO_OK, on success. OO_FAILED, on failure */EXTERN int ooCallDisableDTMFRFC2833(OOH323CallData *call);/** * This function is used to enable H.245(alphanumeric) dtmf support for the  * call. By default the stack uses the dtmf settings for the endpoint. But if  * you want to enable H.245(alphanumeric) dtmf for a specific call, then you  * can override end-point settings using this function * @param call                  Call for which H.245(alphanumeric) dtmf support *                              has to be enabled. * * @return                      OO_OK, on success. OO_FAILED, on failure */EXTERN int ooCallEnableDTMFH245Alphanumeric(OOH323CallData *call);/** * This function is used to disable H.245(alphanumeric) dtmf support for the  * call. By default the stack uses the dtmf settings for the endpoint. But if  * you want to disable H.245(alphanumeric) dtmf for a specific call, then you  * can override end-point settings using this function * @param call                  Call for which H.245(alphanumeric) dtmf support *                              has to be disabled. * * @return                      OO_OK, on success. OO_FAILED, on failure */EXTERN int ooCallDisableDTMFH245Alphanumeric(OOH323CallData *call);/** * This function is used to enable H.245(signal) dtmf support for the call.  * By default the stack uses the dtmf settings for the endpoint. But if you  * want to enable H.245(signal) dtmf for a specific call, then you can override * end-point settings using this function * @param call                  Call for which H.245(signal) dtmf support *                              has to be enabled. * * @return                      OO_OK, on success. OO_FAILED, on failure */EXTERN int ooCallEnableDTMFH245Signal(OOH323CallData *call);/** * This function is used to disable H.245(signal) dtmf support for the call.  * By default the stack uses the dtmf settings for the endpoint. But if you  * want to disable H.245(signal) dtmf for a specific call, then you can  * override end-point settings using this function * @param call                  Call for which H.245(signal) dtmf support *                              has to be disabled. * * @return                      OO_OK, on success. OO_FAILED, on failure */EXTERN int ooCallDisableDTMFH245Signal(OOH323CallData *call);/** * This function is used to enable Q.931(keypad) dtmf support for the call. * By default the stack uses the dtmf settings for the endpoint. But if you  * want to enable Q.931(keypad) dtmf support for a specific call, then you can * override end-point settings using this function * @param call                  Call for which Q.931(keypad) dtmf support *                              has to be enabled. * * @return                      OO_OK, on success. OO_FAILED, on failure */EXTERN int ooCallEnableDTMFQ931Keypad(OOH323CallData *call);/** * This function is used to disable Q.931(keypad) dtmf support for the call. * By default the stack uses the dtmf settings for the endpoint. But if you  * want to disable Q.931(keypad) dtmf support for a specific call, then you can * override end-point settings using this function * @param call                  Call for which Q.931(keypad) dtmf support *                              has to be disabled. * * @return                      OO_OK, on success. OO_FAILED, on failure */EXTERN int ooCallDisableDTMFQ931Keypad(OOH323CallData *call);/** * This function is used to find a call by using the unique token for the call. * @param callToken      The unique token for the call. * * @return               Pointer to the call if found, NULL otherwise. */EXTERN OOH323CallData* ooFindCallByToken(char *callToken);/** * This function is used to end a call. Based on what stage of clearance the * call is it takes appropriate action. * * @param call   Handle to the call which has to be cleared. * @return       OO_OK, on success. OO_FAILED, on failure. */EXTERN int ooEndCall(OOH323CallData *call);/** * This function is used to remove a call from the list of existing calls. *  * @param call          Pointer to the call to be removed. * @return              OO_OK, on success. OO_FAILED, on failure. */EXTERN int ooRemoveCallFromList (OOH323CallData *call);/** * This function is used to clean up a call. It closes all associated sockets,  * removes the call from the global list and frees up associated memory. * * @param call          Pointer to the call to be cleared. * @return              OO_OK, on success. OO_FAILED, on failure. */EXTERN int ooCleanCall(OOH323CallData *call);/** * This function is used to check whether a specified session in specified  * direction is active for the call. * @param call       Handle to call for which session has to be queried. * @param sessionID  Session id to identify the type of session(1 for audio,  *                   2 for voice and 3 for data) * @param dir        Direction of the session(transmit/receive) * * @return           1, if session active. 0, otherwise.  */EXTERN ASN1BOOL ooIsSessionEstablished(OOH323CallData *call, int sessionID, char* dir);/** * This function can be used by an application to specify media endpoint  * information for different types of media. The stack by default uses local IP * and port for media. An application can provide mediainfo if it wants to  * override default. * @param call      Handle to the call * @param mediaInfo Structure which defines the media endpoint to be  *                  used. * * @return          OO_OK, on success. OO_FAILED, on failure. */EXTERN int ooAddMediaInfo(OOH323CallData *call, OOMediaInfo mediaInfo);/** * This function is used to generate a media session id for the new media  * session for the call. * @param call       Handle to the call. * @param type       Type of media session. * @param dir        Direction of session * * @return           Generated session id. */EXTERN unsigned ooCallGenerateSessionID                    (OOH323CallData *call, OOCapType type, char *dir);/** * This is an handler for H245 connection retry timer. When remote end is not  * yet listening for H245 connections, this timer provides a wait and retry * mechanism to establish H245 connection. * @param data      Timer callback data. * * @return          OO_OK, on success. OO_FAILED, on failure */EXTERN int ooCallH245ConnectionRetryTimerExpired(void *data);/** * This function is used to retrieve the description text for a reason * code. * * @param code     Reason code. * @return         The text description string. */EXTERN const char* ooGetReasonCodeText (OOUINT32 code);/** * This function is used to retrieve the description text for a call * state. * * @param callState Call state. * @return         The text description string. */EXTERN const char* ooGetCallStateText (OOCallState callState);/**  * @}  */#ifdef __cplusplus}#endif#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?