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