app_config.php 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. <?php
  2. //application details
  3. $apps[$x]['name'] = "XMPP Manager";
  4. $apps[$x]['uuid'] = "740f1c0d-6d82-fcde-3873-0fc9779789ec";
  5. $apps[$x]['category'] = "Switch";
  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-us'] = "Allow User to Open a Flash Phone for his Extension.";
  12. $apps[$x]['description']['es-cl'] = "Permite a los usuarios iniciar un teléfono flash para su extensión";
  13. $apps[$x]['description']['es-mx'] = "";
  14. $apps[$x]['description']['de-de'] = "";
  15. $apps[$x]['description']['de-ch'] = "";
  16. $apps[$x]['description']['de-at'] = "";
  17. $apps[$x]['description']['fr-fr'] = "Permet d'utiliser un téléphone flash comme extension.";
  18. $apps[$x]['description']['fr-ca'] = "";
  19. $apps[$x]['description']['fr-ch'] = "";
  20. $apps[$x]['description']['pt-pt'] = "Permitir que o utilizador abra um Telefone Flash para a sua extensão.";
  21. $apps[$x]['description']['pt-br'] = "";
  22. //destination details
  23. /*
  24. $y = 0;
  25. $apps[$x]['destinations'][$y]['type'] = "sql";
  26. $apps[$x]['destinations'][$y]['label'] = "xmpp";
  27. $apps[$x]['destinations'][$y]['name'] = "xmpp";
  28. $apps[$x]['destinations'][$y]['sql'] = "select x.xmpp_profile_uuid as uuid, x.profile_name as name, d.domain_name as domain_name from v_xmpp as x, v_domains as d ";
  29. $apps[$x]['destinations'][$y]['where'] = "where x.domain_uuid = '\${domain_uuid}' and x.domain_uuid=d.domain_uuid and x.enabled = 'true' ";
  30. $apps[$x]['destinations'][$y]['order_by'] = "profile_name asc";
  31. $apps[$x]['destinations'][$y]['field']['uuid'] = "xmpp_profile_uuid";
  32. $apps[$x]['destinations'][$y]['field']['name'] = "profile_name";
  33. $apps[$x]['destinations'][$y]['field']['destination'] = "profile_name";
  34. $apps[$x]['destinations'][$y]['select_value']['dialplan'] = "bridge:dingaling/\${destination}/";
  35. $apps[$x]['destinations'][$y]['select_value']['ivr'] = "menu-exec-app:transfer \${destination} XML \${context}";
  36. $apps[$x]['destinations'][$y]['select_label'] = "\${name}";
  37. */
  38. //permission details
  39. $y=0;
  40. $apps[$x]['permissions'][$y]['name'] = "xmpp_view";
  41. $apps[$x]['permissions'][$y]['menu']['uuid'] = "1808365b-0f7c-7555-89d0-31b3d9a75abb";
  42. $apps[$x]['permissions'][$y]['groups'][] = "superadmin";
  43. $y++;
  44. $apps[$x]['permissions'][$y]['name'] = "xmpp_add";
  45. $apps[$x]['permissions'][$y]['groups'][] = "superadmin";
  46. $y++;
  47. $apps[$x]['permissions'][$y]['name'] = "xmpp_edit";
  48. $apps[$x]['permissions'][$y]['groups'][] = "superadmin";
  49. $y++;
  50. $apps[$x]['permissions'][$y]['name'] = "xmpp_delete";
  51. $apps[$x]['permissions'][$y]['groups'][] = "superadmin";
  52. //schema details
  53. $y=0;
  54. $apps[$x]['db'][$y]['table']['name'] = "v_xmpp";
  55. $apps[$x]['db'][$y]['table']['parent'] = "";
  56. $z=0;
  57. $apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "id";
  58. $apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "xmpp_profile_id";
  59. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "serial";
  60. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "integer";
  61. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "INT NOT NULL AUTO_INCREMENT";
  62. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  63. $apps[$x]['db'][$y]['fields'][$z]['deprecated'] = "true";
  64. $z++;
  65. $apps[$x]['db'][$y]['fields'][$z]['name'] = "xmpp_profile_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'] = "primary";
  70. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  71. $z++;
  72. $apps[$x]['db'][$y]['fields'][$z]['name'] = "domain_uuid";
  73. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
  74. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
  75. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
  76. $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "foreign";
  77. $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = "v_domains";
  78. $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "domain_uuid";
  79. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  80. $z++;
  81. $apps[$x]['db'][$y]['fields'][$z]['name'] = "v_id";
  82. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  83. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  84. $apps[$x]['db'][$y]['fields'][$z]['deprecated'] = "true";
  85. $z++;
  86. $apps[$x]['db'][$y]['fields'][$z]['name'] = "profile_name";
  87. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  88. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  89. $z++;
  90. $apps[$x]['db'][$y]['fields'][$z]['name'] = "username";
  91. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  92. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  93. $z++;
  94. $apps[$x]['db'][$y]['fields'][$z]['name'] = "password";
  95. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  96. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  97. $z++;
  98. $apps[$x]['db'][$y]['fields'][$z]['name'] = "dialplan";
  99. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  100. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  101. $z++;
  102. $apps[$x]['db'][$y]['fields'][$z]['name'] = "context";
  103. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  104. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  105. $z++;
  106. $apps[$x]['db'][$y]['fields'][$z]['name'] = "rtp_ip";
  107. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  108. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  109. $z++;
  110. $apps[$x]['db'][$y]['fields'][$z]['name'] = "ext_rtp_ip";
  111. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  112. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  113. $z++;
  114. $apps[$x]['db'][$y]['fields'][$z]['name'] = "auto_login";
  115. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  116. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  117. $z++;
  118. $apps[$x]['db'][$y]['fields'][$z]['name'] = "sasl_type";
  119. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  120. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  121. $z++;
  122. $apps[$x]['db'][$y]['fields'][$z]['name'] = "xmpp_server";
  123. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  124. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  125. $z++;
  126. $apps[$x]['db'][$y]['fields'][$z]['name'] = "tls_enable";
  127. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  128. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  129. $z++;
  130. $apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "use_rtp_timer";
  131. $apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "usr_rtp_timer";
  132. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  133. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  134. $z++;
  135. $apps[$x]['db'][$y]['fields'][$z]['name'] = "default_exten";
  136. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  137. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  138. $z++;
  139. $apps[$x]['db'][$y]['fields'][$z]['name'] = "vad";
  140. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  141. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "in/out/both";
  142. $z++;
  143. $apps[$x]['db'][$y]['fields'][$z]['name'] = "avatar";
  144. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  145. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "example: /path/to/tiny.jpg";
  146. $z++;
  147. $apps[$x]['db'][$y]['fields'][$z]['name'] = "candidate_acl";
  148. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  149. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  150. $z++;
  151. $apps[$x]['db'][$y]['fields'][$z]['name'] = "local_network_acl";
  152. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  153. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  154. $z++;
  155. $apps[$x]['db'][$y]['fields'][$z]['name'] = "enabled";
  156. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  157. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  158. $z++;
  159. $apps[$x]['db'][$y]['fields'][$z]['name'] = "description";
  160. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  161. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  162. ?>