Debian Codegraph @

addons/ooh323c/src/ooh323ep.h

raw symbols SCIP
1 /*
2 * Copyright (C) 2004-2005 by Objective Systems, Inc.
3 *
4 * This software is furnished under an open source license and may be
5 * used and copied only in accordance with the terms of this license.
6 * The text of the license may generally be found in the root
7 * directory of this installation in the COPYING file. It
8 * can also be viewed online at the following URL:
9 *
10 * http://www.obj-sys.com/open/license.html
11 *
12 * Any redistributions of this file including modified versions must
13 * maintain this copyright notice.
14 *
15 *****************************************************************************/
16 /**
17 * @file ooh323ep.h
18 * This file contains H323 endpoint related functions.
19 */
20 #ifndef OO_H323EP_H_
21 #define OO_H323EP_H_
22 #include "ooCapability.h"
23 #include "ooCalls.h"
24 #include "ooGkClient.h"
25 #include "ooports.h"
26 #include "ooq931.h"
27
28 #define DEFAULT_TRACEFILE "trace.log"
29 #define DEFAULT_TERMTYPE 60
30 #define DEFAULT_PRODUCTID "ooh323"
31 #define DEFAULT_CALLERID "objsyscall"
32 #define DEFAULT_T35COUNTRYCODE 184
33 #define DEFAULT_T35EXTENSION 0
34 #define DEFAULT_MANUFACTURERCODE 39
35 #define DEFAULT_H245CONNECTION_RETRYTIMEOUT 2
36 #define DEFAULT_CALLESTB_TIMEOUT 60
37 #define DEFAULT_MSD_TIMEOUT 30
38 #define DEFAULT_TCS_TIMEOUT 30
39 #define DEFAULT_LOGICALCHAN_TIMEOUT 30
40 #define DEFAULT_ENDSESSION_TIMEOUT 15
41 #define DEFAULT_H323PORT 1720
42
43 #ifdef __cplusplus
44 extern "C" {
45 #endif
46
47 #ifndef EXTERN
48 #ifdef MAKE_DLL
49 #define EXTERN __declspec(dllexport)
50 #else
51 #define EXTERN
52 #endif /* MAKE_DLL */
53 #endif /* EXTERN */
54
55 struct OOCapPrefs;
56 /**
57 * @defgroup h323ep H323 Endpoint management functions
58 * @{
59 */
60 /* Default port ranges */
61 #define TCPPORTSSTART 12000 /*!< Starting TCP port number */
62 #define TCPPORTSEND 62230 /*!< Ending TCP port number */
63 #define UDPPORTSSTART 13030 /*!< Starting UDP port number */
64 #define UDPPORTSEND 13230 /*!< Ending UDP port number */
65 #define RTPPORTSSTART 14030 /*!< Starting RTP port number */
66 #define RTPPORTSEND 14230 /*!< Ending RTP port number */
67
68
69
70
71 /**
72 * This structure is used to define the port ranges to be used
73 * by the application.
74 */
75 typedef struct OOH323Ports {
76 int start; /*!< Starting port number. */
77 int max; /*!< Maximum port number. */
78 int current; /*!< Current port number. */
79 } OOH323Ports;
80
81 /**
82 * Structure to store all configuration information related to the
83 * endpoint created by an application
84 */
85 typedef struct OOH323EndPoint {
86
87 /**
88 * This context should be used for allocation of memory for
89 * items within the endpoint structure.
90 */
91 OOCTXT ctxt;
92
93 /**
94 * This context should be used for allocation of memory for
95 * message structures.
96 */
97 OOCTXT msgctxt;
98
99 char traceFile[MAXFILENAME];
100 FILE * fptraceFile;
101
102 /** Range of port numbers to be used for TCP connections */
103 OOH323Ports tcpPorts;
104
105 /** Range of port numbers to be used for UDP connections */
106 OOH323Ports udpPorts;
107
108 /** Range of port numbers to be used for RTP connections */
109 OOH323Ports rtpPorts;
110
111 ASN1UINT flags;
112
113 int termType; /* 50 - Terminal entity with No MC,
114 60 - Gateway entity with no MC,
115 70 - Terminal Entity with MC, but no MP etc.*/
116 int t35CountryCode;
117 int t35Extension;
118 int manufacturerCode;
119 const char *productID;
120 const char *versionID;
121 const char *callerid;
122 char callingPartyNumber[50];
123 OOSOCKET *stackSocket;
124 OOAliases *aliases;
125
126 int callType;
127
128 struct ooH323EpCapability *myCaps;
129 OOCapPrefs capPrefs;
130 int noOfCaps;
131 OOH225MsgCallbacks h225Callbacks;
132 OOH323CALLBACKS h323Callbacks;
133 char signallingIP[2+8*4+7];
134 int listenPort;
135 OOSOCKET *listener;
136 OOH323CallData *callList;
137
138 OOCallMode callMode; /* audio/audiorx/audiotx/video/fax */
139 int dtmfmode;
140 ASN1UINT callEstablishmentTimeout;
141 ASN1UINT msdTimeout;
142 ASN1UINT tcsTimeout;
143 ASN1UINT logicalChannelTimeout;
144 ASN1UINT sessionTimeout;
145 int cmdPipe[2];
146 struct ooGkClient *gkClient;
147
148 OOInterface *ifList; /* interface list for the host we are running on*/
149 OOBOOL isGateway;
150 OOSOCKET cmdSock;
151 OOBOOL v6Mode;
152 } OOH323EndPoint;
153
154 #define ooEndPoint OOH323EndPoint
155
156 /**
157 * This function is the first function to be invoked before using stack. It
158 * initializes the H323 Endpoint.
159 * @param callMode Type of calls to be made(audio/video/fax).
160 * (OO_CALLMODE_AUDIO, OO_CALLMODE_VIDEO)
161 * @param tracefile Trace file name.
162 *
163 * @return OO_OK, on success. OO_FAILED, on failure
164 */
165 EXTERN int ooH323EpInitialize
166 (enum OOCallMode callMode, const char* tracefile, char* errstr, int errstr_max);
167
168 /**
169 * This function is used to represent the H.323 application endpoint as
170 * gateway, instead of an H.323 phone endpoint.
171 *
172 * @return OO_OK, on success. OO_FAILED, on failure.
173 */
174 EXTERN int ooH323EpSetAsGateway(void);
175
176 EXTERN void ooH323EpSetVersionInfo(int t35countrycode, int t35extensions, int manufacturer,
177 char* vendor, char* version);
178
179 /**
180 * This function is used to assign a local ip address to be used for call
181 * signalling.
182 * @param localip Dotted IP address to be used for call signalling.
183 * @param listenport Port to be used for listening for incoming calls.
184 *
185 * @return OO_OK, on success. OO_FAILED, on failure.
186 */
187 EXTERN int ooH323EpSetLocalAddress(const char* localip, int listenport);
188
189 /**
190 * This function is used to set the range of tcp ports the application will
191 * use for tcp transport.
192 * @param base Starting port number for the range
193 * @param max Ending port number for the range.
194 *
195 * @return OO_OK, on success. OO_FAILED, on failure.
196 */
197 EXTERN int ooH323EpSetTCPPortRange(int base, int max);
198
199 /**
200 * This function is used to set the range of udp ports the application will
201 * use for udp transport.
202 * @param base Starting port number for the range
203 * @param max Ending port number for the range.
204 *
205 * @return OO_OK, on success. OO_FAILED, on failure.
206 */
207 EXTERN int ooH323EpSetUDPPortRange(int base, int max);
208
209 /**
210 * This function is used to set the range of rtp ports the application will
211 * use for media streams.
212 * @param base Starting port number for the range
213 * @param max Ending port number for the range.
214 *
215 * @return OO_OK, on success. OO_FAILED, on failure.
216 */
217 EXTERN int ooH323EpSetRTPPortRange(int base, int max);
218
219 /**
220 * This function is used to set the trace level for the H.323 endpoint.
221 * @param traceLevel Level of tracing.
222 *
223 * @return OO_OK, on success. OO_FAILED, otherwise.
224 */
225 EXTERN int ooH323EpSetTraceLevel(int traceLevel);
226
227 /**
228 * This function is used to add the h323id alias for the endpoint.
229 * @param h323id H323-ID to be set as alias.
230 *
231 * @return OO_OK, on success. OO_FAILED, on failure.
232 */
233 EXTERN int ooH323EpAddAliasH323ID(const char* h323id);
234
235 /**
236 * This function is used to add the dialed digits alias for the
237 * endpoint.
238 * @param dialedDigits Dialed-Digits to be set as alias.
239 *
240 * @return OO_OK, on success. OO_FAILED, on failure.
241 */
242 EXTERN int ooH323EpAddAliasDialedDigits(const char* dialedDigits);
243
244 /**
245 * This function is used to add the url alias for the endpoint.
246 * @param url URL to be set as an alias.
247 *
248 * @return OO_OK, on success. OO_FAILED, on failure.
249 */
250 EXTERN int ooH323EpAddAliasURLID(const char* url);
251
252 /**
253 * This function is used to add an email id as an alias for the endpoint.
254 * @param email Email id to be set as an alias.
255 *
256 * @return OO_OK, on success. OO_FAILED, on failure.
257 */
258 EXTERN int ooH323EpAddAliasEmailID(const char* email);
259
260 /**
261 * This function is used to add an ip address as an alias.
262 * @param ipaddress IP address to be set as an alias.
263 *
264 * @return OO_OK, on success. OO_FAILED, on failure.
265 */
266 EXTERN int ooH323EpAddAliasTransportID(const char* ipaddress);
267
268 /**
269 * This function is used to clear all the aliases used by the
270 * H323 endpoint.
271 *
272 * @return OO_OK, on success. OO_FAILED, on failure.
273 */
274 EXTERN int ooH323EpClearAllAliases(void);
275
276 /**
277 * This function is used to set the H225 message callbacks for the
278 * endpoint.
279 * @param h225Callbacks Callback structure containing various callbacks.
280 *
281 * @return OO_OK, on success. OO_FAILED, on failure.
282 */
283 EXTERN int ooH323EpSetH225MsgCallbacks(OOH225MsgCallbacks h225Callbacks);
284
285 /**
286 * This function is used to set high level H.323 callbacks for the endpoint.
287 * Make sure all unused callbacks in the structure are set to NULL before
288 * calling this function.
289 * @param h323Callbacks Callback structure containing various high level
290 * callbacks.
291 * @return OO_OK, on success. OO_FAILED, on failure
292 */
293 EXTERN int ooH323EpSetH323Callbacks(OOH323CALLBACKS h323Callbacks);
294
295
296 /**
297 * This function is the last function to be invoked after done using the
298 * stack. It closes the H323 Endpoint for an application, releasing all
299 * the associated memory.
300 *
301 * @return OO_OK on success
302 * OO_FAILED on failure
303 */
304 EXTERN int ooH323EpDestroy(void);
305
306
307 /**
308 * This function is used to enable the auto answer feature for
309 * incoming calls
310 *
311 * @return OO_OK, on success. OO_FAILED, on failure.
312 */
313 EXTERN int ooH323EpEnableAutoAnswer(void);
314
315 /**
316 * This function is used to disable the auto answer feature for
317 * incoming calls.
318 *
319 * @return OO_OK, on success. OO_FAILED, on failure.
320 */
321 EXTERN int ooH323EpDisableAutoAnswer(void);
322
323 /**
324 * This function is used to enable manual ringback. By default the stack sends
325 * alerting message automatically on behalf of the endpoint application.
326 * However, if endpoint application wants to do alerting user part first before
327 * sending out alerting message, it can enable this feature.
328 *
329 * @return OO_OK on success, OO_FAILED on failure
330 */
331 EXTERN int ooH323EpEnableManualRingback(void);
332
333 /**
334 * This function is used to disable manual ringback. By default the
335 * manual ringback feature is disabled, i.e, the stack sends alerting on behalf
336 * of the application automatically.
337 *
338 * @return OO_OK on success, OO_FAILED on failure
339 */
340 EXTERN int ooH323EpDisableManualRingback(void);
341
342 /**
343 * This function is used to enable MediaWaitForConnect.
344 *
345 * @return OO_OK, on success. OO_FAILED, on failure.
346 */
347 EXTERN int ooH323EpEnableMediaWaitForConnect(void);
348
349 /**
350 * This function is used to disable MediaWaitForConnect.
351 *
352 * @return OO_OK, on success. OO_FAILED, on failure.
353 */
354 EXTERN int ooH323EpDisableMediaWaitForConnect(void);
355
356 /**
357 * This function is used to enable faststart.
358 *
359 * @return OO_OK, on success. OO_FAILED, on failure.
360 */
361 EXTERN int ooH323EpEnableFastStart(void);
362
363 /**
364 * This function is used to disable faststart.
365 *
366 * @return OO_OK, on success. OO_FAILED, on failure.
367 */
368 EXTERN int ooH323EpDisableFastStart(void);
369
370 /**
371 * This function is used to enable tunneling.
372 *
373 * @return OO_OK, on success. OO_FAILED, on failure.
374 */
375 EXTERN int ooH323EpEnableH245Tunneling(void);
376
377 /**
378 * This function is used to disable tunneling.
379 *
380 * @return OO_OK, on success. OO_FAILED, on failure.
381 */
382 EXTERN int ooH323EpDisableH245Tunneling(void);
383
384 /**
385 * This function is used to setup/clear TryBeMaster flag
386 *
387 * @return OO_OK, on success. OO_FAILED, on failure.
388 */
389 EXTERN int ooH323EpTryBeMaster(int);
390
391 /**
392 * This function is used to enable GkRouted calls.
393 *
394 * @return OO_OK, on success. OO_FAILED, on failure.
395 */
396 EXTERN int ooH323EpEnableGkRouted(void);
397
398 /**
399 * This function is used to disable Gkrouted calls.
400 *
401 * @return OO_OK, on success. OO_FAILED, on failure.
402 */
403 EXTERN int ooH323EpDisableGkRouted(void);
404
405 /**
406 * This function is used to set the product ID.
407 * @param productID New value for the product id.
408 *
409 * @return OO_OK, on success. OO_FAILED, on failure.
410 */
411 EXTERN int ooH323EpSetProductID (const char * productID);
412
413 /**
414 * This function is used to set version id.
415 * @param versionID New value for the version id.
416 *
417 * @return OO_OK, on success. OO_FAILED, on failure.
418 */
419 EXTERN int ooH323EpSetVersionID (const char * versionID);
420
421 /**
422 * This function is used to set callerid to be used for outbound
423 * calls.
424 * @param callerID New value for the caller id.
425 *
426 * @return OO_OK, on success. OO_FAILED, on failure.
427 */
428 EXTERN int ooH323EpSetCallerID (const char * callerID);
429
430 /**
431 * This function is used to set calling party number to be used for outbound
432 * calls.Note, you can override it for a specific call by using
433 * ooCallSetCallingPartyNumber function.
434 * @param number e164 number to be used as calling party number.
435 *
436 * @return OO_OK, on success; OO_FAILED, otherwise.
437 */
438 EXTERN int ooH323EpSetCallingPartyNumber(const char * number);
439
440 /**
441 * This function is used to print the current configuration information of
442 * the H323 endpoint to log file.
443 */
444 void ooH323EpPrintConfig(void);
445
446
447 /**
448 * This function is used to add G728 capability to the H323 endpoint.
449 * @param cap Type of G728 capability to be added.
450 * @param txframes Number of frames per packet for transmission.
451 * @param rxframes Number of frames per packet for reception.
452 * @param dir Direction of capability.OORX, OOTX, OORXANDTX
453 * @param startReceiveChannel Callback function to start receive channel.
454 * @param startTransmitChannel Callback function to start transmit channel.
455 * @param stopReceiveChannel Callback function to stop receive channel.
456 * @param stopTransmitChannel Callback function to stop transmit channel.
457 *
458 * @return OO_OK, on success. OO_FAILED, on failure.
459 */
460 EXTERN int ooH323EpAddG728Capability
461 (int cap, int txframes, int rxframes, int dir,
462 cb_StartReceiveChannel startReceiveChannel,
463 cb_StartTransmitChannel startTransmitChannel,
464 cb_StopReceiveChannel stopReceiveChannel,
465 cb_StopTransmitChannel stopTransmitChannel);
466
467 /**
468 * This function is used to add G729 capability to the H323 endpoint.
469 * @param cap Type of G729 capability to be added.
470 * @param txframes Number of frames per packet for transmission.
471 * @param rxframes Number of frames per packet for reception.
472 * @param dir Direction of capability.OORX, OOTX, OORXANDTX
473 * @param startReceiveChannel Callback function to start receive channel.
474 * @param startTransmitChannel Callback function to start transmit channel.
475 * @param stopReceiveChannel Callback function to stop receive channel.
476 * @param stopTransmitChannel Callback function to stop transmit channel.
477 *
478 * @return OO_OK, on success. OO_FAILED, on failure.
479 */
480 EXTERN int ooH323EpAddG729Capability
481 (int cap, int txframes, int rxframes, int dir,
482 cb_StartReceiveChannel startReceiveChannel,
483 cb_StartTransmitChannel startTransmitChannel,
484 cb_StopReceiveChannel stopReceiveChannel,
485 cb_StopTransmitChannel stopTransmitChannel);
486
487
488 /**
489 * This function is used to add G7231 capability to the H323 endpoint.
490 * @param cap Type of G7231 capability to be added.
491 * @param txframes Number of frames per packet for transmission.
492 * @param rxframes Number of frames per packet for reception.
493 * @param silenceSuppression Silence Suppression support
494 * @param dir Direction of capability.OORX, OOTX, OORXANDTX
495 * @param startReceiveChannel Callback function to start receive channel.
496 * @param startTransmitChannel Callback function to start transmit channel.
497 * @param stopReceiveChannel Callback function to stop receive channel.
498 * @param stopTransmitChannel Callback function to stop transmit channel.
499 *
500 * @return OO_OK, on success. OO_FAILED, on failure.
501 */
502 EXTERN int ooH323EpAddG7231Capability(int cap, int txframes, int rxframes,
503 OOBOOL silenceSuppression, int dir,
504 cb_StartReceiveChannel startReceiveChannel,
505 cb_StartTransmitChannel startTransmitChannel,
506 cb_StopReceiveChannel stopReceiveChannel,
507 cb_StopTransmitChannel stopTransmitChannel);
508
509 /**
510 * This function is used to add G711 capability to the H323 endpoint.
511 * @param cap Type of G711 capability to be added.
512 * @param txframes Number of frames per packet for transmission.
513 * @param rxframes Number of frames per packet for reception.
514 * @param dir Direction of capability.OORX, OOTX, OORXANDTX
515 * @param startReceiveChannel Callback function to start receive channel.
516 * @param startTransmitChannel Callback function to start transmit channel.
517 * @param stopReceiveChannel Callback function to stop receive channel.
518 * @param stopTransmitChannel Callback function to stop transmit channel.
519 *
520 * @return OO_OK, on success. OO_FAILED, on failure.
521 */
522 EXTERN int ooH323EpAddG711Capability
523 (int cap, int txframes, int rxframes, int dir,
524 cb_StartReceiveChannel startReceiveChannel,
525 cb_StartTransmitChannel startTransmitChannel,
526 cb_StopReceiveChannel stopReceiveChannel,
527 cb_StopTransmitChannel stopTransmitChannel);
528
529
530 /**
531 * This function is used to add a new GSM capability to the endpoint.
532 * @param cap Type of GSM capability to be added.
533 * @param framesPerPkt Number of GSM frames pre packet.
534 * @param comfortNoise Comfort noise spec for the capability.
535 * @param scrambled Scrambled enabled/disabled for the capability.
536 * @param dir Direction of capability.OORX, OOTX, OORXANDTX
537 * @param startReceiveChannel Callback function to start receive channel.
538 * @param startTransmitChannel Callback function to start transmit channel.
539 * @param stopReceiveChannel Callback function to stop receive channel.
540 * @param stopTransmitChannel Callback function to stop transmit channel.
541 *
542 * @return OO_OK, on success. OO_FAILED, on failure.
543 */
544 EXTERN int ooH323EpAddGSMCapability(int cap, ASN1USINT framesPerPkt,
545 OOBOOL comfortNoise,OOBOOL scrambled,int dir,
546 cb_StartReceiveChannel startReceiveChannel,
547 cb_StartTransmitChannel startTransmitChannel,
548 cb_StopReceiveChannel stopReceiveChannel,
549 cb_StopTransmitChannel stopTransmitChannel);
550 /**
551 * This function is used to add H263 video capability to the H323 endpoint.
552 * @param cap Capability type - OO_H263VIDEO
553 * @param sqcifMPI Minimum picture interval for encoding/decoding
554 * of SQCIF pictures.
555 * @param qcifMPI Minimum picture interval for encoding/decoding
556 * of QCIF pictures.
557 * @param cifMPI Minimum picture interval for encoding/decoding
558 * of CIF pictures.
559 * @param cif4MPI Minimum picture interval for encoding/decoding
560 * of CIF4 pictures.
561 * @param cif16MPI Minimum picture interval for encoding/decoding
562 * of CIF16 pictures.
563 * @param maxBitRate Maximum bit rate in units of 100 bits/s at
564 * which a transmitter can transmit video or a
565 * receiver can receive video.
566 * @param dir Direction of capability.OORX, OOTX, OORXANDTX
567 * @param startReceiveChannel Callback function to start receive channel.
568 * @param startTransmitChannel Callback function to start transmit channel.
569 * @param stopReceiveChannel Callback function to stop receive channel.
570 * @param stopTransmitChannel Callback function to stop transmit channel.
571 *
572 * @return OO_OK, on success. OO_FAILED, on failure.
573 */
574 EXTERN int ooH323EpAddH263VideoCapability(int cap, unsigned sqcifMPI,
575 unsigned qcifMPI, unsigned cifMPI,
576 unsigned cif4MPI, unsigned cif16MPI,
577 unsigned maxBitRate, int dir,
578 cb_StartReceiveChannel startReceiveChannel,
579 cb_StartTransmitChannel startTransmitChannel,
580 cb_StopReceiveChannel stopReceiveChannel,
581 cb_StopTransmitChannel stopTransmitChannel);
582
583 /**
584 * This function is used to enable rfc 2833 support for the endpoint.
585 * @param dynamicRTPPayloadType Payload type value to use.
586 *
587 * @return OO_OK, on success; OO_FAILED, on failure
588 */
589 EXTERN int ooH323EpEnableDTMFRFC2833(int dynamicRTPPayloadType);
590
591 /**
592 * This function is used to disable rfc 2833 support for the endpoint.
593 *
594 * @return OO_OK, on success; OO_FAILED, on failure
595 */
596 EXTERN int ooH323EpDisableDTMFRFC2833(void);
597
598 /**
599 * This function is used to enable the H245(alphanumeric) dtmf capability for
600 * the endpoint.
601 * @return OO_OK, on success; OO_FAILED, on failure
602 */
603 EXTERN int ooH323EpEnableDTMFH245Alphanumeric(void);
604
605 /**
606 * This function is used to disable the H245(alphanumeric) dtmf capability for
607 * the endpoint.
608 * @return OO_OK, on success; OO_FAILED, on failure
609 */
610 EXTERN int ooH323EpDisableDTMFH245Alphanumeric(void);
611
612 /**
613 * This function is used to enable the H245(signal) dtmf capability for
614 * the endpoint.
615 * @return OO_OK, on success; OO_FAILED, on failure
616 */
617 EXTERN int ooH323EpEnableDTMFH245Signal(void);
618
619 /**
620 * This function is used to disable the H245(signal) dtmf capability for
621 * the endpoint.
622 * @return OO_OK, on success; OO_FAILED, on failure
623 */
624 EXTERN int ooH323EpDisableDTMFH245Signal(void);
625
626 /**/
627 EXTERN int ooH323EpSetTermType(int value);
628 EXTERN int ooH323EpAddG726Capability(int cap, int txframes, int rxframes,
629 OOBOOL silenceSuppression, int dir,
630 cb_StartReceiveChannel startReceiveChannel,
631 cb_StartTransmitChannel startTransmitChannel,
632 cb_StopReceiveChannel stopReceiveChannel,
633 cb_StopTransmitChannel stopTransmitChannel);
634 EXTERN int ooH323EpAddAMRNBCapability(int cap, int txframes, int rxframes,
635 OOBOOL silenceSuppression, int dir,
636 cb_StartReceiveChannel startReceiveChannel,
637 cb_StartTransmitChannel startTransmitChannel,
638 cb_StopReceiveChannel stopReceiveChannel,
639 cb_StopTransmitChannel stopTransmitChannel);
640 EXTERN int ooH323EpAddAMRNBCapability(int cap, int txframes, int rxframes,
641 OOBOOL silenceSuppression, int dir,
642 cb_StartReceiveChannel startReceiveChannel,
643 cb_StartTransmitChannel startTransmitChannel,
644 cb_StopReceiveChannel stopReceiveChannel,
645 cb_StopTransmitChannel stopTransmitChannel);
646 EXTERN int ooH323EpAddSpeexCapability(int cap, int txframes, int rxframes,
647 OOBOOL silenceSuppression, int dir,
648 cb_StartReceiveChannel startReceiveChannel,
649 cb_StartTransmitChannel startTransmitChannel,
650 cb_StopReceiveChannel stopReceiveChannel,
651 cb_StopTransmitChannel stopTransmitChannel);
652 EXTERN int ooH323EpEnableDTMFCISCO(int dynamicRTPPayloadType);
653 EXTERN int ooH323EpDisableDTMFCISCO(void);
654
655 EXTERN int ooH323EpEnableDTMFQ931Keypad(void);
656 EXTERN int ooH323EpDisableDTMFQ931Keypad(void);
657
658 /**/
659
660 /**
661 * This function is used to add callbacks to the gatekeeper client. If user
662 * application wants to do some special processing of various gatekeeper client
663 * events, that can be done through these callbacks.
664 * @param gkClientCallbacks Handle to the callback structure.Make sure all
665 * the members of the structure are appropriately
666 * initialized.
667 *
668 * @return OO_OK, on success. OO_FAILED, on failure.
669 */
670 EXTERN int ooH323EpSetGkClientCallbacks(OOGKCLIENTCALLBACKS gkClientCallbacks);
671
672 /**
673 * @}
674 */
675 #ifdef __cplusplus
676 }
677 #endif
678
679 #endif