2016-09-04 04:32:19 +02:00
< ? php
2017-06-03 20:35:18 +02:00
//application details
2016-09-04 04:32:19 +02:00
$apps [ $x ][ 'name' ] = " Tones " ;
$apps [ $x ][ 'uuid' ] = " 38ab9f01-bcd2-4726-a9ff-9af8ed9e396a " ;
2018-05-24 00:59:57 +02:00
$apps [ $x ][ 'category' ] = " Switch " ;
2016-09-04 04:32:19 +02:00
$apps [ $x ][ 'subcategory' ] = " " ;
2017-06-03 17:00:20 +02:00
$apps [ $x ][ 'version' ] = " 1.0 " ;
2016-09-04 04:32:19 +02:00
$apps [ $x ][ 'license' ] = " Mozilla Public License 1.1 " ;
$apps [ $x ][ 'url' ] = " http://www.fusionpbx.com " ;
$apps [ $x ][ 'description' ][ 'en-us' ] = " Manage Tones " ;
2020-03-20 21:47:13 +01:00
$apps [ $x ][ 'description' ][ 'en-gb' ] = " Manage Tones " ;
2017-06-03 20:35:18 +02: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 20:35:18 +02: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 20:35:18 +02: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' ] = " " ;
2017-09-21 17:06:26 +02:00
$apps [ $x ][ 'description' ][ 'it-it' ] = " Gestione Toni " ;
2024-08-28 17:59:02 +02:00
$apps [ $x ][ 'description' ][ 'ka-ge' ] = " ტონების მართვა " ;
2019-11-19 19:15:42 +01:00
$apps [ $x ][ 'description' ][ 'nl-nl' ] = " Beheer geluiden " ;
2017-06-03 20:35:18 +02:00
$apps [ $x ][ 'description' ][ 'pl-pl' ] = " " ;
$apps [ $x ][ 'description' ][ 'pt-br' ] = " " ;
$apps [ $x ][ 'description' ][ 'pt-pt' ] = " " ;
$apps [ $x ][ 'description' ][ 'ro-ro' ] = " " ;
Adding ru-ru locales (#2530)
* Translation of the menu (sent by Victor Kraft)
* ACL translate
* Backup translated
* App Fax translated (sent by Victor Kraft)
* App Adminer trnslated
* Resources translated (sent by Victor Kraft)
* App SIP Profiles translated
* ru-ru
* Call Block added
* ru-ru
* Update app_menu.php
* voicemails/app_languages.php locales ru-ru
voicemails/app_languages.php locales ru-ru
* app/vars/app_languages.php locales ru-ru
app/vars/app_languages.php locales ru-ru
* core: apps, authentication, databases, default_settings translate
* app/traffic_graph/app_languages.php adding locales ru-ru
app/traffic_graph/app_languages.php adding locales ru-ru
* app/time_conditions/app_languages.php adding locales ru-ru
app/time_conditions/app_languages.php adding locales ru-ru
* /app/system/app_languages.php adding locales ru-ru
/app/system/app_languages.php adding locales ru-ru
* /app/sip_status/app_languages.php adding locales ru-ru
* /app/settings/app_languages.php adding locales ru-ru
* /app/services/app_languages.php adding locales ru-ru
* /app/ring_groups/app_languages.php adding locales ru-ru
* /app/registrations/app_languages.php adding locales ru-ru
* /app/recordings/app_languages.php adding locales ru-ru
* /app/provision/app_menu.php adding locales ru-ru
* /app/pin_numbers/app_languages.php adding locales ru-ru
* Update app_languages.php
* /app/phrases/app_languages.php adding locales ru-ru
* /app/operator_panel/app_languages.php adding locales ru-ru
* core/groups translated
* /app/music_on_hold/app_languages.php adding locales ru-ru
* core/install translated
* core/menu translated
* /app/modules/app_languages.php adding locales ru-ru
* /app/meetings/app_menu.php adding locales ru-ru
* /app/log_viewer/app_languages.php adding locales ru-ru
* /app/ivr_menus/app_languages.php adding locales ru-ru
* /app/gateways/app_languages.php adding locales ru-ru
* /app/fifo_list/app_languages.php adding locales ru-ru
* core/notifications translated
* /app/fifo/app_languages.php adding locales ru-ru
* core/upgrade translated
* Update app_config.php
* core/user_settings translated
* Update app_languages.php
* Update app_menu.php
* Update app_languages.php
* core/users translated
* call_block translate fix
* Call Broadcast added
* call_block выклюено fix
* Update app_languages.php
* Update app_languages.php
* Update app_languages.php
* Update app_languages.php
* themes translated
* /app/extensions/app_languages.php for locale ru-ru
* /app/exec/app_languages.php add locale ru-ru
* Update app_languages.php
* Update app_menu.php
* Update app_languages.php
* Update app_languages.php
* Update app_languages.php
* Update app_languages.php
* Update app_languages.php
* Update app_languages.php
* Update app_languages.php
* Update app_languages.php
* Update app_languages.php
* Update app_languages.php
* Update app_languages.php
* Update app_languages.php
* Update app_languages.php
* Update app_menu.php
* add locales ru-ru /core/install/app_menu.php
* /app/emails/app_languages.php add locales ru-ru
* /app/edit/app_languages.php add locales ru-ru
* /app/dialplan_outbound/app_languages.php add lacales ru-ru
* app/devices translated
* /app/dialplan_inbound/app_languages.php add locales ru-ru
* call_center_active + call_centers
* /app/dialplan/app_languages.php add locales ru-ru
* /app/destinations/app_languages.php add locales ru-ru
* /app/database_transactions/app_languages.php add locales ru-ru
* /app/contacts/app_languages.php addlocales ru-ru
* Update app_languages.php
* Update app_languages.php
* /app/contacts/app_languages.php add locales ru-ru
* /app/conferences/app_languages.php add locales ru-ru
* /app/conference_profiles/app_languages.php add locales ru-ru
* /app/destinations/app_languages.php add locales ru-ru
* /app/destinations/app_languages.php add locales ru-ru
* /app/conferences/app_languages.php add locales ru-ru
* app/calls_active translated
* app/click_to_call translated
* app/calls_active label-opt fix transtation
* translated
* translated
* translate
* /app/voicemails/app_config.php addlocales ru-ru
* /app/voicemail_greetings/app_config.php add locales ru-ru
* /app/vars/app_config.php add locales ru-ru
* /app/traffic_graph/app_config.php add locales ru-ru
* /app/tones/app_config.php add locales ru-ru
* /app/time_conditions/app_config.php add locales ru-ru
* /app/tftp/app_config.php add locales ru-ru
* /app/system/app_config.php add locales ru-ru
* /app/sip_status/app_config.php addlocales ru-ru
* app/devices translated ru-ru
* app/devices translated ru-ru
* /core/menu/app_languages.php add locales ru-ru
* /app/contacts/app_languages.php add locales ru-ru
* /app/conferences/app_languages.php add locales ru-ru
* /app/voicemails/app_languages.php add locales ru-ru
* /app/conference_centers/app_languages.php add locales ru-ru
* /app/ring_groups/app_languages.php add locales ru-ru
* /app/ivr_menus/app_languages.php add locales ru-ru
* /app/xml_cdr/app_languages.php add locales ru-ru
* /resources/app_languages.php add locales ru-ru
* /app/conference_centers/app_languages.php add locales ru-ru
* call_flows
* /app/call_broadcast/app_languages.php add locales ru-ru
* /app/call_block/app_languages.php add locales ru-ru
* /app/call_block/app_languages.php add locales ru-ru
* /app/call_block/app_languages.php add locales ru-ru
* By now
* calls
* /app/call_flows/app_languages.php add locales ru-ru
* /app/system/app_languages.php add locales ru-ru
* /app/exec/app_languages.php add locales ru-ru
* /app/vars/app_menu.php add locales ru-ru
* /app/backup/app_languages.php add locales ru-ru
* /app/ring_groups/app_languages.php add locales ru-ru
* /app/calls/app_languages.php add locales ru-ru
* /app/call_centers/app_languages.php add locales ru-ru
* /app/call_broadcast/app_languages.php add locales ru-ru
* app/fax fix translate label-fax_send_channels
* /app/extensions/app_languages.php add locales ru-ru
* /app/xml_cdr/app_languages.php add locales ru-ru
* /app/ring_groups/app_languages.php add locales ru-ru
* /app/contacts/app_languages.php add locales ru-ru
* Fix default language select
* /app/contacts/app_languages.php add locales ru-ru
* Fix translations in app edit, extensions, fifo, gateways, music_on_hold, services, time_conditions, xml_cdr
* Replaced "звонки" to "вызовы" and fix sorting in menu for "Конференции"
* More replace "звонк"
* Fix translate
* app/xml_cdr replace translate for label-start_range, label-end_range
* app/xml_cdr replace translate label-destination, description_search and description-4
* Corrections
* Repalce "Порядковый номер" to "Приоритет"
* app/operator_panel replace translation label-call_group
2017-04-25 00:37:00 +02:00
$apps [ $x ][ 'description' ][ 'ru-ru' ] = " Менеджер Тонов " ;
2017-06-03 20:35:18 +02:00
$apps [ $x ][ 'description' ][ 'sv-se' ] = " " ;
$apps [ $x ][ 'description' ][ 'uk-ua' ] = " " ;
2016-09-04 04:32:19 +02:00
2017-06-03 20:35:18 +02:00
//destination details
2017-02-16 07:24:29 +01:00
$y = 0 ;
2016-09-04 04:32:19 +02: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 " ;
2018-05-01 18:22:22 +02:00
$apps [ $x ][ 'destinations' ][ $y ][ 'where' ] = " where var_category = 'Tones' " ;
2016-09-04 04:32:19 +02:00
$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 " ;
Fix tone_stream (#3043)
This error was being generated in freeswitch:
[ERR] switch_core_session.c:2683 Invalid Application play tone_stream
Needs to use application "playback" for tone_stream.
Had to use a colon instead of a space as the delimited. Otherwise it would parse the dialpan action as "playback tone_stream" and the data as "//%(274,0,913.8);%(274,0,1370.6);%(380,0,1776.7)"
Now shows --> <action application="playback" data="tone_stream://%(274,0,913.8);%(274,0,1370.6);%(380,0,1776.7)"/>
2018-05-01 18:22:00 +02:00
$apps [ $x ][ 'destinations' ][ $y ][ 'select_value' ][ 'dialplan' ] = " playback:tone_stream:// \$ { destination} " ;
2018-05-24 00:59:06 +02:00
$apps [ $x ][ 'destinations' ][ $y ][ 'select_value' ][ 'ivr' ] = " menu-exec-app:playback tone_stream:// \$ { destination} " ;
2016-09-04 04:32:19 +02:00
$apps [ $x ][ 'destinations' ][ $y ][ 'select_label' ] = " \$ { name} " ;
2020-01-21 17:43:19 +01:00
$y = 0 ;
$apps [ $x ][ 'permissions' ][ $y ][ 'name' ] = " tone_destinations " ;
$apps [ $x ][ 'permissions' ][ $y ][ 'groups' ][] = " user " ;
$apps [ $x ][ 'permissions' ][ $y ][ 'groups' ][] = " admin " ;
$apps [ $x ][ 'permissions' ][ $y ][ 'groups' ][] = " superadmin " ;
2018-03-30 03:25:14 +02:00
?>