root/contributed_modules/modules/isymphony/isymphony-php-library/library/property_arrays.php

Revision 7772, 3.8 kB (checked in by seanmh, 3 years ago)

1.0.0 Added backward compatibility support for 2.0 rev 1104.

Fixed bug in which a flawed context would prevent orphaned parked calls from ringing back to the parking extension if parked via the panel.
Made debug menu always visible.
Added server debug menu.
Debug logs now show on main module page.
Multiple debug options can now be set at once.
Added database column checks in installation script to handle module upgrades.
Added default FreePBX page context to configuration.
Added admin username and password fields to the main module page.
Added originate timeout field to main module page.
Added auto reload and enable page status checkboxes to main module page.
Added global Jabber connection configuration fields on main module page.
Added email and cell phone fields to extension page.
Added Jabber connection configuration override fields to extension page.
Added Jabber username and password fields to extension page.
Added auto answer checkbox to extension page.
Modified database debug tables to account for new tables and columns.

Line 
1 <?php
2 /*
3  *Name         : property_arrays.php
4  *Author       : Michael Yara
5  *Created      : June 15, 2008
6  *Last Updated : May 27, 2009
7  *History      : 0.5
8  *Purpose      : Contains arrays witch describe all configuration object property names along with functions to modify
9  *         the arrays for specific versions of the server.
10  *Copyright    : 2008 HEHE Enterprises, LLC
11  */
12
13 $serverPropertyArray = array("client_port","cli_port","username","password");
14 $locationPropertyArray = array("name","admin_password","asterisk_host","asterisk_port","asterisk_login","asterisk_password","originate_timeout","jabber_host","jabber_port");
15 $tenantPropertyArray = array("name","admin_password","originating_context","redirecting_context","music_on_hold_class","outside_line_number","record_file_name","record_file_extension","mix_mode");
16 $extensionPropertyArray = array("extension_val","name","cell_phone","email","peer","alt_origination_method","voice_mail","agent");
17 $profilePropertyArray = array("name","password","jabber_user_name","jabber_password","can_view_everyone_directory");
18 $queuePropertyArray = array("name","queue_val","extension_val","context");
19 $conferenceRoomPropertyArray = array("name","predefined","room_number","extension_val","context","announce_user_count","music_on_hold_for_single_user","exit_room_via_pound","present_menu_via_star","announce_user_join_leave","disable_join_leave_notification","record");
20 $permissionGroupPropertyArray = array("name");
21 $statusPropertyArray = array("name","type");
22 $localPermissionPropertyArray = array("call_voice_mail","hold_calls","transfer_call_to_voice_mail","mute","record","hangup","set_user_status_note","call_cell_phone","add_extension_directory","set_user_status","transfer_call_to_cell_phone","agent_login","add_temp_meetme_room");
23 $remotePermissionPropertyArray = array("call_voice_mail","transfer_to","transfer_call_to_voice_mail","steal_call","record","originate_to","email","call_cell_phone","barge","transfer_call_to_cell_phone","chat","agent_login","view_calls","view_caller_id");
24 $parkPermissionPropertyArray = array("park_call","set_parked_call_note","unpark_call");
25 $queuePermissionPropertyArray = array("transfer_to","steal_call");
26 $conferenceRoomPermissionPropertyArray = array("steal_call","transfer_to","originate_to","mute_users","kick_users");
27
28 //Property array modification functions--------------------------------------------------------------------------------------------------------------
29 function isymphony_modify_property_arrays_2_1() {
30   global $locationPropertyArray, $extensionPropertyArray, $tenantPropertyArray;
31  
32   //New modifications
33   array_push($locationPropertyArray, "device_user_mode");
34  
35   array_push($tenantPropertyArray, "page_status_enabled");
36   array_push($tenantPropertyArray, "page_context");
37  
38   $extensionPropertyArray = remove_element($extensionPropertyArray, "agent");
39 }
40
41 function isymphony_modify_property_arrays_2_1_1489() {
42   global $locationPropertyArray, $extensionPropertyArray, $tenantPropertyArray, $profilePropertyArray;
43  
44   //Apply 2.1 modifications
45   isymphony_modify_property_arrays_2_1();
46  
47   //New modifications
48   array_push($locationPropertyArray, "reload_on_dial_plan_reload");
49   array_push($locationPropertyArray, "jabber_domain");
50   array_push($locationPropertyArray, "jabber_resource");
51  
52   array_push($profilePropertyArray, "jabber_host");
53   array_push($profilePropertyArray, "jabber_domain");
54   array_push($profilePropertyArray, "jabber_resource");
55   array_push($profilePropertyArray, "jabber_port");
56 }
57
58 function isymphony_modify_property_arrays_2_1_1493() {
59   global $locationPropertyArray, $extensionPropertyArray, $tenantPropertyArray, $profilePropertyArray;
60  
61   //Apply 2.1 1489 modifications
62   isymphony_modify_property_arrays_2_1_1489();
63  
64   //New modifications
65   array_push($extensionPropertyArray, "auto_answer");
66 }
67 ?>
Note: See TracBrowser for help on using the browser.