CAF: Working With Call Legs

From TBwiki
(Difference between revisions)
Jump to: navigation, search
(Adding link to the "leg resync" page)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
This page has been split into two pages:
+
TelcoBridges Toolpack framework offers two API layers to manipulate call legs and audio mixers (conferences).
 +
 
 +
We recommend that developers use the CAF API layer, as it offers higher-level functionality which accelerate application development.
 +
 
 +
 
 +
==  CMC API layer ==
 +
 
 +
The lower-level API is based on classes ''CTBCMCLeg'' and ''CTBCMCMixer''. These classes allow receiving leg or mixer events (answered, digit collected, terminating, etc.), and send requests to perform actions (answer, play, terminate, etc.).
 +
 
 +
The following page explains how to work with CTBCMCLeg directly, for lower-level applications that don't want the convenience of the CAF Call framework
 
    
 
    
 +
[[CAF:_Working_With_Cmc_Call_Legs|Working with CMC Call Legs]]
 +
 
 +
== CAF API layer ==
 +
 +
A higher-level API uses the base classes ''CTBCMCLeg'' and ''CTBCMCMixer'', but adds the following functionalities:
 +
- Simplification of call legs creations through single functions (''AddIncoming'', ''AddOutgoing'', ''CreateMixer'')
 +
- Centralizing reception of events from call legs and mixers in to a single "Call Flow" (''CTBCAFCallFlow''), which deals with inter-relations between legs and mixers.
 +
- Auto-destruction of call legs (''CTBCMCLeg'') and mixers (''CTBCMCMixer'') through usage of "smart" pointers.
 +
- Auto-destruction of the call flow (''CTBCAFCallFlow'') upon destruction of last leg/mixer.
 
    
 
    
 
The following page explains how to work with CAF Call leg framework (CTBCAFCallLeg, CTBCAFCallFlow, CTBCAFCallBehavior, etc...)
 
The following page explains how to work with CAF Call leg framework (CTBCAFCallLeg, CTBCAFCallFlow, CTBCAFCallBehavior, etc...)
 
    
 
    
[[http://docs.telcobridges.com/mediawiki/index.php/CAF:_Working_With_Caf_Call_Legs Working with CAF Call Legs and behaviors]]
+
[[CAF:_Working_With_Caf_Call_Legs|Working with CAF Call Legs and behaviors]]
 
+
 
 
+
The following page provides more details on call legs re-synchronization between toolpack_engine application and user "CAF" application:
The following page explains how to work with CTBCMCLeg directly, for lower-level applications that don't want the convenience of the CAF Call framework
+
 
 
+
[[CAF:_Call_Legs_Resync|Re-synchronizing CAF call legs]]
[[http://docs.telcobridges.com/mediawiki/index.php/CAF:_Working_With_Cmc_Call_Legs Working with CMC Call Legs]]
+

Latest revision as of 06:09, 19 October 2012

TelcoBridges Toolpack framework offers two API layers to manipulate call legs and audio mixers (conferences).

We recommend that developers use the CAF API layer, as it offers higher-level functionality which accelerate application development.


CMC API layer

The lower-level API is based on classes CTBCMCLeg and CTBCMCMixer. These classes allow receiving leg or mixer events (answered, digit collected, terminating, etc.), and send requests to perform actions (answer, play, terminate, etc.).

The following page explains how to work with CTBCMCLeg directly, for lower-level applications that don't want the convenience of the CAF Call framework

Working with CMC Call Legs

CAF API layer

A higher-level API uses the base classes CTBCMCLeg and CTBCMCMixer, but adds the following functionalities: - Simplification of call legs creations through single functions (AddIncoming, AddOutgoing, CreateMixer) - Centralizing reception of events from call legs and mixers in to a single "Call Flow" (CTBCAFCallFlow), which deals with inter-relations between legs and mixers. - Auto-destruction of call legs (CTBCMCLeg) and mixers (CTBCMCMixer) through usage of "smart" pointers. - Auto-destruction of the call flow (CTBCAFCallFlow) upon destruction of last leg/mixer.

The following page explains how to work with CAF Call leg framework (CTBCAFCallLeg, CTBCAFCallFlow, CTBCAFCallBehavior, etc...)

Working with CAF Call Legs and behaviors

The following page provides more details on call legs re-synchronization between toolpack_engine application and user "CAF" application:

Re-synchronizing CAF call legs

Personal tools