Fork of FusionPBX but with LDAP kinda working
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

97 lines
4.5 KiB

2 years ago
  1. <?php
  2. //application details
  3. $apps[$x]['name'] = 'Bridges';
  4. $apps[$x]['uuid'] = 'a6a7c4c5-340a-43ce-bcbc-2ed9bab8659d';
  5. $apps[$x]['category'] = '';
  6. $apps[$x]['subcategory'] = '';
  7. $apps[$x]['version'] = '';
  8. $apps[$x]['license'] = 'Mozilla Public License 1.1';
  9. $apps[$x]['url'] = 'http://www.fusionpbx.com';
  10. $apps[$x]['description']['en-us'] = '';
  11. $apps[$x]['description']['en-gb'] = '';
  12. //permission details
  13. $y = 0;
  14. $apps[$x]['permissions'][$y]['name'] = 'bridge_view';
  15. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  16. //$apps[$x]['permissions'][$y]['groups'][] = 'admin';
  17. $y++;
  18. $apps[$x]['permissions'][$y]['name'] = 'bridge_add';
  19. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  20. //$apps[$x]['permissions'][$y]['groups'][] = 'admin';
  21. $y++;
  22. $apps[$x]['permissions'][$y]['name'] = 'bridge_edit';
  23. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  24. //$apps[$x]['permissions'][$y]['groups'][] = 'admin';
  25. $y++;
  26. $apps[$x]['permissions'][$y]['name'] = 'bridge_delete';
  27. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  28. //$apps[$x]['permissions'][$y]['groups'][] = 'admin';
  29. $y++;
  30. $apps[$x]['permissions'][$y]['name'] = 'bridge_all';
  31. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  32. $y++;
  33. $apps[$x]['permissions'][$y]['name'] = 'bridge_destinations';
  34. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  35. $apps[$x]['permissions'][$y]['groups'][] = 'admin';
  36. $y++;
  37. //destination details
  38. $y = 0;
  39. $apps[$x]['destinations'][$y]['type'] = "sql";
  40. $apps[$x]['destinations'][$y]['label'] = "bridges";
  41. $apps[$x]['destinations'][$y]['name'] = "bridges";
  42. //$apps[$x]['destinations'][$y]['sql'] = "select bridge_name, bridge_destination, bridge_description from v_bridges ";
  43. $apps[$x]['destinations'][$y]['where'] = "where domain_uuid = '\${domain_uuid}' and bridge_enabled = 'true'";
  44. $apps[$x]['destinations'][$y]['order_by'] = "bridge_name asc";
  45. $apps[$x]['destinations'][$y]['field']['bridge_uuid'] = "bridge_uuid";
  46. $apps[$x]['destinations'][$y]['field']['name'] = "bridge_name";
  47. $apps[$x]['destinations'][$y]['field']['description'] = "bridge_description";
  48. $apps[$x]['destinations'][$y]['field']['destination'] = "bridge_destination";
  49. $apps[$x]['destinations'][$y]['select_value']['user_contact'] = "\${destination}";
  50. $apps[$x]['destinations'][$y]['select_value']['dialplan'] = "bridge:\${destination}";
  51. $apps[$x]['destinations'][$y]['select_value']['ivr'] = "menu-exec-app:bridge \${destination}";
  52. $apps[$x]['destinations'][$y]['select_label'] = "\${name} \${description} ";
  53. $y++;
  54. //Bridges
  55. $y = 0;
  56. $apps[$x]['db'][$y]['table']['name'] = 'v_bridges';
  57. $apps[$x]['db'][$y]['table']['parent'] = '';
  58. $z = 0;
  59. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'bridge_uuid';
  60. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
  61. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
  62. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
  63. $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = 'primary';
  64. $z++;
  65. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'domain_uuid';
  66. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
  67. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
  68. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
  69. $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = 'foreign';
  70. $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = 'v_domains';
  71. $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = 'domain_uuid';
  72. $z++;
  73. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'bridge_name';
  74. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  75. $apps[$x]['db'][$y]['fields'][$z]['search'] = 'true';
  76. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the name.';
  77. $z++;
  78. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'bridge_destination';
  79. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  80. $apps[$x]['db'][$y]['fields'][$z]['search'] = 'true';
  81. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the destination.';
  82. $z++;
  83. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'bridge_enabled';
  84. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  85. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Select to enable or disable.';
  86. $z++;
  87. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'bridge_description';
  88. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  89. $apps[$x]['db'][$y]['fields'][$z]['search'] = 'true';
  90. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the description.';
  91. $z++;
  92. ?>