CAF: Working With Caf Call Legs
(Created page with ' == CAF Call leg (''CTBCAFCallLeg'') == The ''CTBCAFCallLeg'' class is a wrapper around the ''CTBCMCLeg'' object. It's enhancing the ''CTBCMCLeg'' object so multiple call legs ca…') |
|||
Line 1: | Line 1: | ||
+ | == Overview == | ||
− | + | ||
+ | '''CAF Call leg (''CTBCAFCallLeg''):''' | ||
+ | |||
The ''CTBCAFCallLeg'' class is a wrapper around the ''CTBCMCLeg'' object. It's enhancing the ''CTBCMCLeg'' object so multiple call legs can be grouped and managed together from a parent Call object (''CTBCAFCallFlow''). | The ''CTBCAFCallLeg'' class is a wrapper around the ''CTBCMCLeg'' object. It's enhancing the ''CTBCMCLeg'' object so multiple call legs can be grouped and managed together from a parent Call object (''CTBCAFCallFlow''). | ||
− | + | '''CAF Call Flow (''CTBCAFCallFlow''):''' | |
− | + | ||
The ''CTBCAFCallFlow'' base class contains one or multiple ''CTBCAFCallLeg'' objects. The role of the ''CTBCAFCallFlow'' object is to implement a call flow that involves actions on legs that have a relation with each other. | The ''CTBCAFCallFlow'' base class contains one or multiple ''CTBCAFCallLeg'' objects. The role of the ''CTBCAFCallFlow'' object is to implement a call flow that involves actions on legs that have a relation with each other. | ||
− | + | '''CAF Call Bridge (''CTBCAFBridge'', based on ''CTBCAFCallFlow''):''' | |
+ | |||
A typical implementation of a call flow is the ''CTBCAFBridge'' class (based on the ''CTBCAFCallFlow'' base class). This class is designed to | A typical implementation of a call flow is the ''CTBCAFBridge'' class (based on the ''CTBCAFCallFlow'' base class). This class is designed to | ||
- Receive an incoming call | - Receive an incoming call | ||
Line 13: | Line 17: | ||
- Join them together | - Join them together | ||
- Terminate both of them when one leg hangups. | - Terminate both of them when one leg hangups. | ||
+ | |||
+ | '''CAF Call Behavior (''CTBCAFCallBehavior''):''' | ||
+ | |||
+ | Behaviors ''CTBCAFCallBehavior'' can be attached to a call flow (''CTBCAFCallFlow''). Their role is to modify the basic call flow, decorating it with optional functionality (CDR logging, FAX detection, Ring tone playback, etc.) |
Revision as of 12:00, 7 April 2011
Overview
CAF Call leg (CTBCAFCallLeg):
The CTBCAFCallLeg class is a wrapper around the CTBCMCLeg object. It's enhancing the CTBCMCLeg object so multiple call legs can be grouped and managed together from a parent Call object (CTBCAFCallFlow).
CAF Call Flow (CTBCAFCallFlow):
The CTBCAFCallFlow base class contains one or multiple CTBCAFCallLeg objects. The role of the CTBCAFCallFlow object is to implement a call flow that involves actions on legs that have a relation with each other.
CAF Call Bridge (CTBCAFBridge, based on CTBCAFCallFlow):
A typical implementation of a call flow is the CTBCAFBridge class (based on the CTBCAFCallFlow base class). This class is designed to - Receive an incoming call - Make a corresponding outgoing call - Join them together - Terminate both of them when one leg hangups.
CAF Call Behavior (CTBCAFCallBehavior):
Behaviors CTBCAFCallBehavior can be attached to a call flow (CTBCAFCallFlow). Their role is to modify the basic call flow, decorating it with optional functionality (CDR logging, FAX detection, Ring tone playback, etc.)