Channel Management
Function Documentation
| EXTERN int ooCreateH323Listener |
( |
void |
|
) |
|
|
|
|
This function is used to create a listener for incoming calls.
- Returns:
- OO_OK, on success. OO_FAILED, on failure.
|
|
|
This function is used to create a listener for incoming H.245 connections.
- Parameters:
-
| call | Pointer to call for which H.245 listener has to be created |
- Returns:
- OO_OK, on success. OO_FAILED, on failure.
|
|
|
This function is used to close an H245 listener for a call.
- Parameters:
-
| call | Pointer to call for which H245 Listener has to be closed. |
- Returns:
- OO_OK, on success. OO_FAILED, on failure.
|
| EXTERN int ooAcceptH225Connection |
( |
void |
|
) |
|
|
|
|
This function is used to accept incoming H.225 connections.
- Returns:
- OO_OK, on success. OO_FAILED, on failure.
|
|
|
This function is used to accept an incoming H.245 connection.
- Parameters:
-
| call | Pointer to a call for which H.245 connection request has arrived. |
- Returns:
- OO_OK, on succes. OO_FAILED, on failure.
|
|
|
This function is used to create an H.225 connection to the remote end point.
- Parameters:
-
| call | Pointer to the call for which H.225 connection has to be setup. |
- Returns:
- OO_OK, on succes. OO_FAILED, on failure.
|
|
|
This function is used to setup an H.245 connection with the remote endpoint for control negotiations.
- Parameters:
-
| call | Pointer to call for which H.245 connection has to be setup. |
- Returns:
- OO_OK, on success. OO_FAILED, on failure.
|
|
|
This function is used to close an H.225 connection.
- Parameters:
-
| call | Pointer to the call for which H.225 connection has to be closed. |
- Returns:
- OO_OK, on success. OO_FAILED, on failure.
|
|
|
This function is used to close an H.245 connection for a call.
- Parameters:
-
| call | Pointer to call for which H.245 connection has to be closed. |
- Returns:
- OO_OK, on success. OO_FAILED, on failure.
|
| EXTERN int ooMonitorChannels |
( |
void |
|
) |
|
|
|
|
This function is used to start monitoring channels for the calls.
It has an infinite loop which uses select to monitor various channels. |
| EXTERN int ooStopMonitorCalls |
( |
void |
|
) |
|
|
|
|
This function is called to stop the monitor channels event loop.
It cleans up all the active calls before stopping the monitor.
- Returns:
- OO_OK, on success. OO_FAILED, on failure
|
|
|
This function is used to receive an H.2250 message received on a calls H.225 channel.
It receives the message, decodes it and calls 'ooHandleH2250Message' to process the message. - Parameters:
-
| call | Pointer to the call for which the message has to be received. |
- Returns:
- OO_OK, on success. OO_FAILED, on failure.
|
|
|
This function is used to receive an H.245 message received on a calls H.245 channel.
It receives the message, decodes it and calls 'ooHandleH245Message' to process it. - Parameters:
-
| call | Pointer to the call for which the message has to be received. |
- Returns:
- OO_OK, on success. OO_FAILED, on failure.
|
|
|
This function is used to enqueue an H.225 message into an outgoing queue for the call.
- Parameters:
-
| call | Pointer to call for which message has to be enqueued. |
| msg | Pointer to the H.225 message to be sent. |
- Returns:
- OO_OK, on success. OO_FAILED, on failure.
|
|
|
This function is used to Send a message on the channel, when channel is available for write.
- Parameters:
-
| call | Pointer to call for which message has to be sent. |
| type | Type of the message. |
- Returns:
- OO_OK, on success. OO_FAILED, on failure.
|
| EXTERN int ooOnSendMsg |
( |
struct OOH323CallData * |
call, |
|
|
int |
msgType, |
|
|
int |
tunneledMsgType, |
|
|
int |
associatedChan |
|
) |
|
|
|
|
This function is called after a message is sent on the call's channel.
It can be used to some followup action after message has been sent. - Parameters:
-
| call | Pointer to call for which message has been sent. |
| msgType | Type of message |
| tunneledMsgType | If this message is carrying a tunneled message, then type of the tunneled message. |
| associatedChan | The channel number associated with the message sent, or tunneled message. 0, if no channel is associated. |
- Returns:
- OO_OK, on success. OO_FAILED, on failure
|
| EXTERN OOBOOL ooChannelsIsConnectionOK |
( |
OOH323CallData * |
call, |
|
|
OOSOCKET |
sock |
|
) |
|
|
|
|
This function is used to check the status of tcp connection.
- Parameters:
-
| call | Handle to the call to which connection belongs. |
| sock | Connected socket. |
- Returns:
- True if connection is ok, false otherwise.
|
|