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.

Function Index

int_get_next_value/1*
int_get_next_value/2*
int_parse_agi_init_info/2*
int_parse_agi_init_info/3*

Function Details

int_get_next_value/1 *

int_get_next_value(Msg) -> term()

int_get_next_value/2 *

int_get_next_value(Rst, Acc) -> term()

int_parse_agi_init_info/2 *

int_parse_agi_init_info(Msg, AgiInfo) -> term()

int_parse_agi_init_info/3 *

int_parse_agi_init_info(Rst, Acc, AgiInfo) -> term()