2016-09-04 03:32:19 +01:00
<? php
2017-06-03 19:35:18 +01:00
//application details
2016-09-04 03:32:19 +01:00
$apps [ $x ][ 'name' ] = "Tones" ;
$apps [ $x ][ 'uuid' ] = "38ab9f01-bcd2-4726-a9ff-9af8ed9e396a" ;
$apps [ $x ][ 'category' ] = "Switch" ;;
$apps [ $x ][ 'subcategory' ] = "" ;
2017-06-03 16:00:20 +01:00
$apps [ $x ][ 'version' ] = "1.0" ;
2016-09-04 03:32:19 +01:00
$apps [ $x ][ 'license' ] = "Mozilla Public License 1.1" ;
$apps [ $x ][ 'url' ] = "http://www.fusionpbx.com" ;
$apps [ $x ][ 'description' ][ 'en-us' ] = "Manage Tones" ;
2017-06-03 19:35:18 +01:00
$apps [ $x ][ 'description' ][ 'ar-eg' ] = "" ;
2017-06-30 23:23:01 +02:00
$apps [ $x ][ 'description' ][ 'de-at' ] = "Töne verwalten" ;
2017-06-03 19:35:18 +01:00
$apps [ $x ][ 'description' ][ 'de-ch' ] = "" ;
2017-06-30 23:23:01 +02:00
$apps [ $x ][ 'description' ][ 'de-de' ] = "Töne verwalten" ;
2017-06-03 19:35:18 +01:00
$apps [ $x ][ 'description' ][ 'es-cl' ] = "" ;
$apps [ $x ][ 'description' ][ 'es-mx' ] = "" ;
$apps [ $x ][ 'description' ][ 'fr-ca' ] = "" ;
$apps [ $x ][ 'description' ][ 'fr-fr' ] = "" ;
$apps [ $x ][ 'description' ][ 'he-il' ] = "" ;
$apps [ $x ][ 'description' ][ 'it-it' ] = "" ;
$apps [ $x ][ 'description' ][ 'nl-nl' ] = "" ;
$apps [ $x ][ 'description' ][ 'pl-pl' ] = "" ;
$apps [ $x ][ 'description' ][ 'pt-br' ] = "" ;
$apps [ $x ][ 'description' ][ 'pt-pt' ] = "" ;
$apps [ $x ][ 'description' ][ 'ro-ro' ] = "" ;
2017-04-25 03:37:00 +05:00
$apps [ $x ][ 'description' ][ 'ru-ru' ] = "Менеджер Тонов" ;
2017-06-03 19:35:18 +01:00
$apps [ $x ][ 'description' ][ 'sv-se' ] = "" ;
$apps [ $x ][ 'description' ][ 'uk-ua' ] = "" ;
2016-09-04 03:32:19 +01:00
2017-06-03 19:35:18 +01:00
//destination details
2017-02-15 23:24:29 -07:00
$y = 0 ;
2016-09-04 03:32:19 +01:00
$apps [ $x ][ 'destinations' ][ $y ][ 'type' ] = "sql" ;
$apps [ $x ][ 'destinations' ][ $y ][ 'label' ] = "tones" ;
$apps [ $x ][ 'destinations' ][ $y ][ 'name' ] = "tones" ;
$apps [ $x ][ 'destinations' ][ $y ][ 'sql' ] = "select var_uuid as uuid, var_name as name, var_value as destination, var_description as description from v_vars" ;
$apps [ $x ][ 'destinations' ][ $y ][ 'where' ] = "where var_cat = 'Tones' " ;
$apps [ $x ][ 'destinations' ][ $y ][ 'order_by' ] = "var_name asc" ;
$apps [ $x ][ 'destinations' ][ $y ][ 'field' ][ 'uuid' ] = "var_uuid" ;
$apps [ $x ][ 'destinations' ][ $y ][ 'field' ][ 'name' ] = "var_name" ;
$apps [ $x ][ 'destinations' ][ $y ][ 'field' ][ 'destination' ] = "var_filename" ;
$apps [ $x ][ 'destinations' ][ $y ][ 'field' ][ 'description' ] = "var_description" ;
$apps [ $x ][ 'destinations' ][ $y ][ 'select_value' ][ 'dialplan' ] = "play tone_stream:// \$ {destination}" ;
$apps [ $x ][ 'destinations' ][ $y ][ 'select_value' ][ 'ivr' ] = "play tone_stream:// \$ {destination}" ;
$apps [ $x ][ 'destinations' ][ $y ][ 'select_label' ] = " \$ {name}" ;
2017-06-03 16:00:20 +01:00
?>