httapi.conf.xml 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. <configuration name="httapi.conf" description="HT-TAPI Hypertext Telephony API">
  2. <settings>
  3. <!-- print xml on the console -->
  4. <param name="debug" value="true"/>
  5. <!-- time to keep audio files when discovered they were deleted from the http server -->
  6. <param name="file-not-found-expires" value="300"/>
  7. <!-- how often to re-check the server to make sure the remote file has not changed -->
  8. <param name="file-cache-ttl" value="300"/>
  9. </settings>
  10. <profiles>
  11. <profile name="default">
  12. <!-- default params for conference action tags -->
  13. <conference>
  14. <param name="default-profile" value="default"/>
  15. </conference>
  16. <!-- default params for dial action tags -->
  17. <dial>
  18. <param name="context" value="default"/>
  19. <param name="dialplan" value="XML"/>
  20. </dial>
  21. <!-- permissions -->
  22. <permissions>
  23. <!-- <permission name="all" value="true"/> -->
  24. <!--<permission name="none" value="true"/> -->
  25. <permission name="set-params" value="true"/>
  26. <permission name="set-vars" value="false">
  27. <!-- default to "deny" or "allow" -->
  28. <!-- type attr can be "deny" or "allow" nothing defaults to opposite of the list default so allow in this case -->
  29. <!--
  30. <variable-list default="deny">
  31. <variable name="caller_id_name"/>
  32. <variable name="hangup"/>
  33. </variable-list>
  34. -->
  35. </permission>
  36. <permission name="get-vars" value="false">
  37. <!-- default to "deny" or "allow" -->
  38. <!-- type attr can be "deny" or "allow" nothing defaults to opposite of the list default so allow in this case -->
  39. <!--
  40. <variable-list default="deny">
  41. <variable name="caller_id_name"/>
  42. <variable name="hangup"/>
  43. </variable-list>
  44. -->
  45. </permission>
  46. <permission name="extended-data" value="false"/>
  47. <permission name="execute-apps" value="true">
  48. <!-- default to "deny" or "allow" -->
  49. <application-list default="deny">
  50. <!-- type attr can be "deny" or "allow" nothing defaults to opposite of the list default so allow in this case -->
  51. <application name="info"/>
  52. <application name="hangup"/>
  53. </application-list>
  54. </permission>
  55. <permission name="expand-vars-in-tag-body" value="false">
  56. <!-- default to "deny" or "allow" -->
  57. <!-- type attr can be "deny" or "allow" nothing defaults to opposite of the list default so allow in this case -->
  58. <!--
  59. <variable-list default="deny">
  60. <variable name="caller_id_name"/>
  61. <variable name="hangup"/>
  62. </variable-list>
  63. <api-list default="deny">
  64. <api name="expr"/>
  65. <api name="lua"/>
  66. </api-list>
  67. -->
  68. </permission>
  69. <permission name="dial" value="true"/>
  70. <permission name="dial-set-context" value="false"/>
  71. <permission name="dial-set-dialplan" value="false"/>
  72. <permission name="dial-set-cid-name" value="false"/>
  73. <permission name="dial-set-cid-number" value="false"/>
  74. <permission name="dial-full-originate" value="false"/>
  75. <permission name="conference" value="true"/>
  76. <permission name="conference-set-profile" value="false"/>
  77. </permissions>
  78. <params>
  79. <!-- default url can be overridden by app data -->
  80. <param name="gateway-url" value="http://www.freeswitch.org/api/index.cgi" />
  81. <!-- set this to provide authentication credentials to the server -->
  82. <!--<param name="gateway-credentials" value="muser:mypass"/>-->
  83. <!--<param name="auth-scheme" value="basic"/>-->
  84. <!-- optional: this will enable the CA root certificate check by libcurl to
  85. verify that the certificate was issued by a major Certificate Authority.
  86. note: default value is disabled. only enable if you want this! -->
  87. <!--<param name="enable-cacert-check" value="true"/>-->
  88. <!-- optional: verify that the server is actually the one listed in the cert -->
  89. <!-- <param name="enable-ssl-verifyhost" value="true"/> -->
  90. <!-- optional: these options can be used to specify custom SSL certificates
  91. to use for HTTPS communications. Either use both options or neither.
  92. Specify your public key with 'ssl-cert-path' and the private key with
  93. 'ssl-key-path'. If your private key has a password, specify it with
  94. 'ssl-key-password'. -->
  95. <!-- <param name="ssl-cert-path" value="$${certs_dir}/public_key.pem"/> -->
  96. <!-- <param name="ssl-key-path" value="$${certs_dir}/private_key.pem"/> -->
  97. <!-- <param name="ssl-key-password" value="MyPrivateKeyPassword"/> -->
  98. <!-- optional timeout -->
  99. <!-- <param name="timeout" value="10"/> -->
  100. <!-- optional: maximum amount of time in seconds that is allowed to make the connection to the server -->
  101. <!-- <param name="connect-timeout" value="2"/> -->
  102. <!-- optional: use a custom CA certificate in PEM format to verify the peer
  103. with. This is useful if you are acting as your own certificate authority.
  104. note: only makes sense if used in combination with "enable-cacert-check." -->
  105. <!-- <param name="ssl-cacert-file" value="$${certs_dir}/cacert.pem"/> -->
  106. <!-- optional: specify the SSL version to force HTTPS to use. Valid options are
  107. "SSLv3" and "TLSv1". Otherwise libcurl will auto-negotiate the version. -->
  108. <!-- <param name="ssl-version" value="TLSv1"/> -->
  109. <!-- optional: enables cookies and stores them in the specified file. -->
  110. <!-- <param name="cookie-file" value="$${temp_dir}/cookie-mod_xml_curl.txt"/> -->
  111. <!-- one or more of these imply you want to pick the exact variables that are transmitted -->
  112. <!--<param name="enable-post-var" value="Caller-Unique-ID"/>-->
  113. </params>
  114. </profile>
  115. </profiles>
  116. </configuration>