Module agi_worker

The Agi-Worker listens to incoming messages from the Asterisk PBX agi inteface.

Copyright © 2005-2006 Ericsson

Version: 1.0

Behaviour: gen_server.

Authors: Freek Sanders (freekisanders@gmail.com) [web site: http://www.freeksanders.tk].

Description

The Agi-Worker listens to incoming messages from the Asterisk PBX agi inteface. The Agi-Worker is started by the Agi-Tcp-Server agi_tcp_server. The messages received come from a new leg which called to the Asterisk PBX. The Agi-Worker combines the messages it receives, which together form all the information needed about the new leg. After collecting all the information, it is send of to the Ext-Ast-Interface (see ext_ast_interface:agi_new_channel/2). For more information about the flow of events and an explanation of terms see ext_ast_interface.