app_config.php 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. //application details
  3. $apps[$x]['name'] = "SIP Trunks";
  4. $apps[$x]['uuid'] = "9ebfede4-4091-426e-bf9e-521cd4ecd3d1";
  5. $apps[$x]['category'] = "Switch";
  6. $apps[$x]['subcategory'] = "SIP Trunks";
  7. $apps[$x]['version'] = "1.0";
  8. $apps[$x]['license'] = "BSD";
  9. $apps[$x]['url'] = "http://www.fusionpbx.com";
  10. $apps[$x]['description']['en-us'] = "Send calls to registered endpoint with phone number that was called.";
  11. $apps[$x]['description']['es-cl'] = "";
  12. $apps[$x]['description']['es-mx'] = "";
  13. $apps[$x]['description']['de-de'] = "";
  14. $apps[$x]['description']['de-ch'] = "";
  15. $apps[$x]['description']['de-at'] = "";
  16. $apps[$x]['description']['fr-fr'] = "";
  17. $apps[$x]['description']['fr-ca'] = "";
  18. $apps[$x]['description']['fr-ch'] = "";
  19. $apps[$x]['description']['pt-pt'] = "";
  20. $apps[$x]['description']['pt-br'] = "";
  21. //destination details
  22. $y = 0;
  23. $apps[$x]['destinations'][$y]['type'] = "sql";
  24. $apps[$x]['destinations'][$y]['label'] = "sip_trunks";
  25. $apps[$x]['destinations'][$y]['name'] = "sip_trunks";
  26. $apps[$x]['destinations'][$y]['sql'] = "select d.domain_name, e.extension, e.number_alias, e.description from v_extensions as e, v_domains as d ";
  27. $apps[$x]['destinations'][$y]['where'] = "where e.domain_uuid = '\${domain_uuid}' and e.domain_uuid = d.domain_uuid and e.enabled = 'true' ";
  28. $apps[$x]['destinations'][$y]['order_by'] = "extension asc";
  29. $apps[$x]['destinations'][$y]['field']['domain_name'] = "domain_name";
  30. $apps[$x]['destinations'][$y]['field']['destination'] = "number_alias,extension";
  31. $apps[$x]['destinations'][$y]['field']['description'] = "description";
  32. $apps[$x]['destinations'][$y]['select_value']['user_contact'] = "sofia/internal/\$1\@\${regex(\${sofia_contact(\${destination}@\${domain_name})}|^[^@]*@(.*)$|%1)}";
  33. $apps[$x]['destinations'][$y]['select_value']['dialplan'] = "bridge:sofia/internal/\$1@\${regex(\${sofia_contact(\${destination}@\${domain_name})}|^[^@]*@(.*)$|%1)}";
  34. $apps[$x]['destinations'][$y]['select_value']['ivr'] = "menu-exec-app:bridge sofia/internal/\$1@\${regex(\${sofia_contact(\${destination}@\${domain_name})}|^[^@]*@(.*)$|%1)}";
  35. $apps[$x]['destinations'][$y]['select_label'] = "\${destination} \${description}";
  36. $y++;
  37. //permission details
  38. $y=0;
  39. $apps[$x]['permissions'][$y]['name'] = "sip_trunk_destinations";
  40. $apps[$x]['permissions'][$y]['groups'][] = "superadmin";
  41. $apps[$x]['permissions'][$y]['groups'][] = "admin";
  42. ?>