ami_types.anubis 601 Bytes
/*
 * Created by PyramIDE.
 * User: Tototo
 * Date: 13/07/2013
 * Time: 02:19
 * 
 *
 */

read tools/connections.anubis

public type Key_value:
  key_value(String key, String value).
  
public type AMI_Response:
  success(List(Key_value)),
  error(List(Key_value)).
  
public type AMI_Action:
  action(String action_type, List(Key_value)).
  
public type AMI_Event:
  event(String event_type, List(Key_value)).
  
public type AMI_Auth:
  auth(String login, String pass).
  
public type Asterisk_client:
  asterisk_client(
    Connection    conn,
    Var(Int)      id,
    AMI_Auth      auth).