2
0

format_cdr.conf.xml 4.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <configuration name="format_cdr.conf" description="Multi Format CDR CURL logger">
  2. <!-- You can have multiple profiles, to allow logging to both json and cdr simultaneously, or to
  3. different paths or servers with different settings, just be sure to use different name for
  4. each profile. -->
  5. <profiles>
  6. <profile name="default">
  7. <settings>
  8. <!-- the format of data to send, defaults to xml -->
  9. <!-- <param name="format" value="json|xml"/> -->
  10. <param name="format" value="xml"/>
  11. <!-- the url to post to if blank web posting is disabled -->
  12. <!-- <param name="url" value="http://localhost/cdr_curl/post.php"/> -->
  13. <!-- optional: credentials to send to web server -->
  14. <!-- <param name="cred" value="user:pass"/> -->
  15. <!-- the total number of retries (not counting the first 'try') to post to webserver incase of failure -->
  16. <!-- <param name="retries" value="2"/> -->
  17. <!-- delay between retries in seconds, default is 5 seconds -->
  18. <!-- <param name="delay" value="1"/> -->
  19. <!-- Log via http and on disk, default is false -->
  20. <!-- <param name="log-http-and-disk" value="true"/> -->
  21. <!-- optional: if not present we do not log every record to disk -->
  22. <!-- either an absolute path, a relative path assuming ${prefix}/logs or a blank value will default to ${prefix}/logs/format_cdr -->
  23. <param name="log-dir" value=""/>
  24. <!-- optional: if not present we do log the b leg -->
  25. <!-- true or false if we should create a cdr for the b leg of a call-->
  26. <param name="log-b-leg" value="false"/>
  27. <!-- optional: if not present, all filenames are the uuid of the call -->
  28. <!-- true or false if a leg files are prefixed "a_" -->
  29. <param name="prefix-a-leg" value="true"/>
  30. <!-- encode the post data may be 'true' for url encoding, 'false' for no encoding, 'base64' for base64 encoding or 'textxml' for text/xml -->
  31. <param name="encode" value="true"/>
  32. <!-- optional: set to true to disable Expect: 100-continue lighttpd requires this setting -->
  33. <!--<param name="disable-100-continue" value="true"/>-->
  34. <!-- optional: full path to the error log dir for failed web posts if not specified its the same as log-dir -->
  35. <!-- either an absolute path, a relative path assuming ${prefix}/logs or a blank or omitted value will default to ${prefix}/logs/format_cdr -->
  36. <!-- <param name="err-log-dir" value="$${temp_dir}"/> -->
  37. <!-- which auhtentification scheme to use. Supported values are: basic, digest, NTLM, GSS-NEGOTIATE or "any" for automatic detection -->
  38. <!--<param name="auth-scheme" value="basic"/>-->
  39. <!-- optional: this will enable the CA root certificate check by libcurl to
  40. verify that the certificate was issued by a major Certificate Authority.
  41. note: default value is disabled. only enable if you want this! -->
  42. <!--<param name="enable-cacert-check" value="true"/>-->
  43. <!-- optional: verify that the server is actually the one listed in the cert -->
  44. <!-- <param name="enable-ssl-verifyhost" value="true"/> -->
  45. <!-- optional: these options can be used to specify custom SSL certificates
  46. to use for HTTPS communications. Either use both options or neither.
  47. Specify your public key with 'ssl-cert-path' and the private key with
  48. 'ssl-key-path'. If your private key has a password, specify it with
  49. 'ssl-key-password'. -->
  50. <!-- <param name="ssl-cert-path" value="$${certs_dir}/public_key.pem"/> -->
  51. <!-- <param name="ssl-key-path" value="$${certs_dir}/private_key.pem"/> -->
  52. <!-- <param name="ssl-key-password" value="MyPrivateKeyPassword"/> -->
  53. <!-- optional: use a custom CA certificate in PEM format to verify the peer
  54. with. This is useful if you are acting as your own certificate authority.
  55. note: only makes sense if used in combination with "enable-cacert-check." -->
  56. <!-- <param name="ssl-cacert-file" value="$${certs_dir}/cacert.pem"/> -->
  57. <!-- optional: specify the SSL version to force HTTPS to use. Valid options are
  58. "SSLv3" and "TLSv1". Otherwise libcurl will auto-negotiate the version. -->
  59. <!-- <param name="ssl-version" value="TLSv1"/> -->
  60. <!-- optional: enables cookies and stores them in the specified file. -->
  61. <!-- <param name="cookie-file" value="/$${temp_dir}/cookie-mod_format_cdr_curl.txt"/> -->
  62. <!-- Whether to URL encode the individual JSON values. Defaults to true, set to false for standard JSON. -->
  63. <param name="encode-values" value="true"/>
  64. </settings>
  65. </profile>
  66. </profiles>
  67. </configuration>