<?php

#
# XiVO Web-Interface
# Copyright (C) 2006-2014  Avencall
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#

$array = array();

$array['categoryevent'] = array();
$array['categoryevent']['callfilter'] = array('noanswer');
$array['categoryevent']['group'] = array('noanswer','congestion','busy','chanunavail');
$array['categoryevent']['incall'] = array('answer');
$array['categoryevent']['queue'] = array('noanswer','congestion','busy','chanunavail','qwaittime','qwaitratio');
$array['categoryevent']['user'] = array('noanswer','congestion','busy','chanunavail');
//$array['categoryevent']['trunk'] = array('noanswer','congestion','busy','chanunavail');
//$array['categoryevent']['schedule'] = array('inschedule','outschedule');


$array['element'] = array();

$array['element']['event'] = array();
$array['element']['event']['value'] = array('answer',
						'noanswer',
						'congestion',
						'busy',
						'chanunavail',
						'inschedule',
						'outschedule',
						'qwaittime',
						'qwaitratio');
$array['element']['event']['default'] = '';

$array['element']['category'] = array();
$array['element']['category']['value'] = array('callfilter','group','incall','queue','schedule','user','outcall');
$array['element']['category']['default'] = '';

$array['element']['categoryval'] = array();
$array['element']['categoryval']['default'] = '';

$array['element']['action'] = array();
$array['element']['action']['value'] = array('none',
					     'endcall:busy',
					     'endcall:congestion',
					     'endcall:hangup',
					     'user',
					     'group',
					     'queue',
					     'meetme',
					     'voicemail',
					     'trunk',
					     'schedule',
					     'extension',
					     'outcall',
					     'application:callbackdisa',
					     'application:disa',
					     'application:directory',
					     'application:faxtomail',
					     'application:voicemailmain',
					     'application:password',
					     'sound',
					     'custom');
$array['element']['action']['default'] = 'none';

$array['element']['actionarg1'] = array();
$array['element']['actionarg1']['default'] = '';
$array['element']['actionarg1']['null'] = true;

$array['element']['actionarg2'] = array();
$array['element']['actionarg2']['default'] = '';
$array['element']['actionarg2']['null'] = true;

$array['element']['actiontype'] = array();
$array['element']['actiontype']['value'] = array('none',
						 'endcall',
						 'user',
						 'group',
						 'queue',
						 'meetme',
						 'voicemail',
						 //'trunk',
						 //'schedule',
						 'extension',
						 //'outcall',
						 'application',
						 'sound',
						 'custom');
$array['element']['actiontype']['default'] = 'none';
$array['element']['actiontype']['unset'] = true;

$array['element']['endcall'] = array();
$array['element']['endcall']['value'] = array('hangup','busy','congestion');
$array['element']['endcall']['default'] = 'hangup';
$array['element']['endcall']['unset'] = true;

$array['element']['application'] = array();
$array['element']['application']['value'] = array('callbackdisa','disa','directory','faxtomail','voicemailmain','password');
$array['element']['application']['default'] = 'callbackdisa';
$array['element']['application']['unset'] = true;

$array['element']['linked'] = array();
$array['element']['linked']['value'] = array(0,1);
$array['element']['linked']['default'] = 0;
$array['element']['linked']['set'] = true;


$array['filter'] = array();
$array['filter']['event'] = array('key' => array('answer',
						'noanswer',
						'congestion',
						'busy',
						'chanunavail',
						'inschedule',
						'outschedule',
					   	'qwaittime',
					   	'qwaitratio'));
$array['filter']['category'] = array('key' => array('callfilter','group','incall','queue','schedule','user'));
$array['filter']['categoryval'] = array('maxlen' => 128,'cast' => 'sgraph');
$array['filter']['action'] = array('key' => array('none',
						'endcall:busy',
						'endcall:congestion',
						'endcall:hangup',
						'user',
						'group',
						'queue',
						'meetme',
						'voicemail',
						//'trunk',
						//'schedule',
						'extension',
						//'outcall',
						'application:callbackdisa',
						'application:disa',
						'application:directory',
						'application:faxtomail',
						'application:voicemailmain',
						'application:password',
						'sound',
						'custom'));
$array['filter']['actionarg1'] = array('set' => false,'chk' => 2,'maxlen' => 255,'cast' => 'sgraph');
$array['filter']['actionarg2'] = array('set' => false,'chk' => 2,'maxlen' => 255,'cast' => 'sgraph');
$array['filter']['linked'] = array('bool' => true);

?>
