Services
A service is the sum of all the classes offering a high level functionality to the caller. When a caller reaches the system, several services may be offered depending on the calling number, the called number or any other criteria. Such services maybe be conferencing rooms, chat rooms, call-bridging, voicemail, or any other service.
Toolpack already provides source code for some reference services such as call-bridging and voicemail. Those services are built upon Toolpack and uses all the building block to provide the service.
Usage
When an incoming call reaches the system, the application chooses the appropriate service for this call leg. Then the application creates the service by instantiating the proper service class, and then assigns the call leg to the service.
Here are some reference services provided by Toolpack: