Objective Systems, Inc.  

ooh323ep.h File Reference

This file contains H323 endpoint related functions. More...

#include "ooCapability.h"
#include "ooCalls.h"
#include "ooConfig.h"
#include "ooGkClient.h"
#include "ooports.h"
#include "ooq931.h"

Go to the source code of this file.

Data Structures

struct  OOH323Ports
 This structure is used to define the port ranges to be used by the application. More...
struct  OOH323EndPoint
 Structure to store all configuration information related to the endpoint created by an application. More...

Defines

#define DEFAULT_TRACEFILE   "trace.log"
#define DEFAULT_TERMTYPE   50
#define DEFAULT_PRODUCTID   "objsys"
#define DEFAULT_CALLERID   "objsyscall"
#define DEFAULT_T35COUNTRYCODE   0xB5
#define DEFAULT_T35EXTENSION   0
#define DEFAULT_MANUFACTURERCODE   0x0036
#define DEFAULT_H245CONNECTION_RETRYTIMEOUT   2
#define DEFAULT_CALLESTB_TIMEOUT   60
#define DEFAULT_MSD_TIMEOUT   30
#define DEFAULT_TCS_TIMEOUT   30
#define DEFAULT_LOGICALCHAN_TIMEOUT   30
#define DEFAULT_ENDSESSION_TIMEOUT   15
#define DEFAULT_H323PORT   1720
#define TCPPORTSSTART   12030
#define TCPPORTSEND   12230
#define UDPPORTSSTART   13030
#define UDPPORTSEND   13230
#define RTPPORTSSTART   14030
#define RTPPORTSEND   14230
#define ooEndPoint   OOH323EndPoint

Functions

EXTERN int ooH323EpInitialize (enum OOCallMode callMode, const char *tracefile)
 This function is the first function to be invoked before using stack.
EXTERN int ooH323EpApplyConfig (const OOConfigFile *pconfig)
 This function applies configuration parameters to the global H.323 endpoint variable.
EXTERN int ooH323EpSetAsGateway ()
 This function is used to represent the H.323 application endpoint as gateway, instead of an H.323 phone endpoint.
EXTERN int ooH323EpSetLocalAddress (const char *localip, int listenport)
 This function is used to assign a local ip address to be used for call signalling.
EXTERN int ooH323EpSetTCPPortRange (int base, int max)
 This function is used to set the range of tcp ports the application will use for tcp transport.
EXTERN int ooH323EpSetUDPPortRange (int base, int max)
 This function is used to set the range of udp ports the application will use for udp transport.
EXTERN int ooH323EpSetRTPPortRange (int base, int max)
 This function is used to set the range of rtp ports the application will use for media streams.
EXTERN int ooH323EpSetTraceLevel (int traceLevel)
 This function is used to set the trace level for the H.323 endpoint.
EXTERN int ooH323EpAddAliasH323ID (const char *h323id)
 This function is used to add the h323id alias for the endpoint.
EXTERN int ooH323EpAddAliasDialedDigits (const char *dialedDigits)
 This function is used to add the dialed digits alias for the endpoint.
EXTERN int ooH323EpAddAliasURLID (const char *url)
 This function is used to add the url alias for the endpoint.
EXTERN int ooH323EpAddAliasEmailID (const char *email)
 This function is used to add an email id as an alias for the endpoint.
EXTERN int ooH323EpAddAliasTransportID (const char *ipaddress)
 This function is used to add an ip address as an alias.
EXTERN int ooH323EpClearAllAliases (void)
 This function is used to clear all the aliases used by the H323 endpoint.
EXTERN int ooH323EpSetH225MsgCallbacks (OOH225MsgCallbacks h225Callbacks)
 This function is used to set the H225 message callbacks for the endpoint.
EXTERN int ooH323EpSetH323Callbacks (OOH323CALLBACKS h323Callbacks)
 This function is used to set high level H.323 callbacks for the endpoint.
EXTERN int ooH323EpDestroy (void)
 This function is the last function to be invoked after done using the stack.
EXTERN int ooH323EpEnableAutoAnswer (void)
 This function is used to enable the auto answer feature for incoming calls.
EXTERN int ooH323EpDisableAutoAnswer (void)
 This function is used to disable the auto answer feature for incoming calls.
EXTERN int ooH323EpEnableManualRingback (void)
 This function is used to enable manual ringback.
EXTERN int ooH323EpDisableManualRingback (void)
 This function is used to disable manual ringback.
EXTERN int ooH323EpEnableMediaWaitForConnect (void)
 This function is used to enable MediaWaitForConnect.
EXTERN int ooH323EpDisableMediaWaitForConnect (void)
 This function is used to disable MediaWaitForConnect.
EXTERN int ooH323EpEnableFastStart (void)
 This function is used to enable faststart.
EXTERN int ooH323EpDisableFastStart (void)
 This function is used to disable faststart.
EXTERN int ooH323EpEnableH245Tunneling (void)
 This function is used to enable tunneling.
EXTERN int ooH323EpDisableH245Tunneling (void)
 This function is used to disable tunneling.
EXTERN int ooH323EpEnableGkRouted (void)
 This function is used to enable GkRouted calls.
EXTERN int ooH323EpDisableGkRouted (void)
 This function is used to disable Gkrouted calls.
EXTERN int ooH323EpSetProductID (const char *productID)
 This function is used to set the product ID.
EXTERN int ooH323EpSetVersionID (const char *versionID)
 This function is used to set version id.
EXTERN int ooH323EpSetCallerID (const char *callerID)
 This function is used to set callerid to be used for outbound calls.
EXTERN int ooH323EpSetCallingPartyNumber (const char *number)
 This function is used to set calling party number to be used for outbound calls.Note, you can override it for a specific call by using ooCallSetCallingPartyNumber function.
void ooH323EpPrintConfig (void)
 This function is used to print the current configuration information of the H323 endpoint to log file.
EXTERN int ooH323EpAddG728Capability (int cap, int txframes, int rxframes, int dir, cb_StartReceiveChannel startReceiveChannel, cb_StartTransmitChannel startTransmitChannel, cb_StopReceiveChannel stopReceiveChannel, cb_StopTransmitChannel stopTransmitChannel)
 This function is used to add G728 capability to the H323 endpoint.
EXTERN int ooH323EpAddG729Capability (int cap, int txframes, int rxframes, int dir, cb_StartReceiveChannel startReceiveChannel, cb_StartTransmitChannel startTransmitChannel, cb_StopReceiveChannel stopReceiveChannel, cb_StopTransmitChannel stopTransmitChannel)
 This function is used to add G729 capability to the H323 endpoint.
EXTERN int ooH323EpAddG7231Capability (int cap, int txframes, int rxframes, OOBOOL silenceSuppression, int dir, cb_StartReceiveChannel startReceiveChannel, cb_StartTransmitChannel startTransmitChannel, cb_StopReceiveChannel stopReceiveChannel, cb_StopTransmitChannel stopTransmitChannel)
 This function is used to add G7231 capability to the H323 endpoint.
EXTERN int ooH323EpAddG711Capability (int cap, int txframes, int rxframes, int dir, cb_StartReceiveChannel startReceiveChannel, cb_StartTransmitChannel startTransmitChannel, cb_StopReceiveChannel stopReceiveChannel, cb_StopTransmitChannel stopTransmitChannel)
 This function is used to add G711 capability to the H323 endpoint.
EXTERN int ooH323EpAddGSMCapability (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 a new GSM capability to the endpoint.
EXTERN int ooH323EpAddH263VideoCapability (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 add H263 video capability to the H323 endpoint.
EXTERN int ooH323EpEnableDTMFRFC2833 (int dynamicRTPPayloadType)
 This function is used to enable rfc 2833 support for the endpoint.
EXTERN int ooH323EpDisableDTMFRFC2833 (void)
 This function is used to disable rfc 2833 support for the endpoint.
EXTERN int ooH323EpEnableDTMFH245Alphanumeric ()
 This function is used to enable the H245(alphanumeric) dtmf capability for the endpoint.
EXTERN int ooH323EpDisableDTMFH245Alphanumeric ()
 This function is used to disable the H245(alphanumeric) dtmf capability for the endpoint.
EXTERN int ooH323EpEnableDTMFH245Signal ()
 This function is used to enable the H245(signal) dtmf capability for the endpoint.
EXTERN int ooH323EpDisableDTMFH245Signal ()
 This function is used to disable the H245(signal) dtmf capability for the endpoint.
EXTERN int ooH323EpSetGkClientCallbacks (OOGKCLIENTCALLBACKS gkClientCallbacks)
 This function is used to add callbacks to the gatekeeper client.
EXTERN int ooH323EpSetBearerCap (const char *configText)
 This function is used to set the bearer capability that will be used to create the Q.931 bearer capability IE.


Detailed Description

This file contains H323 endpoint related functions.

Definition in file ooh323ep.h.


This file was last modified on 28 May 2010.
Objective Open H.323 Stack, 0.9.1