My favorites | Sign in
Project Logo
                
Search
for
Updated Nov 02, 2007 by d4rkstar
Labels: Featured, Phase-Design, Phase-Implementation
HowItWorks  
How the system works.

Introduction

I noticed that i've not explained how the system works. So here follows some more details.

Details

The project is based on a simple concept: the AstCTIServer connects to Asterisk Manager Interface with one single connection and intercepts Asterisk Events that are relevant for it's clients. These events include:

Each of this events brings useful information. In particular, is important to notice that we can send informations from the dialplan to the AstCTIClient using the dialplan Set function: using the special calldata variable. This variable is grabbed by the AstCTIServer and sent to the AstCTIClient when the Link event occurs.

AstCTIClient is configured to receive events for a specified technology/extension: ex. SIP/201. The AstCTIClient will register - using TCP/IP sockets - on AstCTIServer and will receive relevant Asterisk events that happens on an active channel for the technology/extension for which it's registered.

Newstate events are used from AstCTIServer to notify AstCTIClient of channel status changes.

Newcallerid events are used to notify the CallerId of inbound calls.

Link events will indicates that the call is answered.


Sign in to add a comment
Hosted by Google Code