Dear List,<br><br>I am using xml_cdr to write the records on disk.<br><br>today for first time when there was a call pressure around 60-70 concurrent calls (around 140 session), then FS started to write same CDR record two times with different/unique file name and also different/unique UUIDs etc.. but the called number, start time, end time everything is same. so its surely a duplicated CDR.<br>
<br>-> I am running FS on cent os, on a 6 core machine with 4 GM RAM.<br>-> FS version: FreeSWITCH Version 1.0.head (git-72baaf6 2010-09-21 19-22-28 -0500) (is anything regarding cdr changed in new version? so i can upgrade)<br>
<br>> Please note that system was running fine with few call attempts and i never faced this prob, only in case of 6-70 councurrent calls<br><br>My xml_cr.conf:<br><br><span style="color: rgb(153, 51, 0);"><configuration name="xml_cdr.conf" description="XML CDR CURL logger"></span><br style="color: rgb(153, 51, 0);">
<span style="color: rgb(153, 51, 0);"> <settings></span><br style="color: rgb(153, 51, 0);"><span style="color: rgb(153, 51, 0);"> <!-- the url to post to if blank web posting is disabled --></span><br style="color: rgb(153, 51, 0);">
<span style="color: rgb(153, 51, 0);"> <!-- <param name="url" value="<a href="http://localhost/cdr_curl/post.php">http://localhost/cdr_curl/post.php</a>"/> --></span><br style="color: rgb(153, 51, 0);">
<br style="color: rgb(153, 51, 0);"><span style="color: rgb(153, 51, 0);"> <!-- optional: credentials to send to web server --></span><br style="color: rgb(153, 51, 0);"><span style="color: rgb(153, 51, 0);"> <!-- <param name="cred" value="user:pass"/> --></span><br style="color: rgb(153, 51, 0);">
<br style="color: rgb(153, 51, 0);"><span style="color: rgb(153, 51, 0);"> <!-- the total number of retries (not counting the first 'try') to post to webserver incase of failure --></span><br style="color: rgb(153, 51, 0);">
<b style="color: rgb(153, 51, 0);"> <param name="retries" value="2"/></b><br style="color: rgb(153, 51, 0);"><br style="color: rgb(153, 51, 0);"><span style="color: rgb(153, 51, 0);"> <!-- delay between retries in seconds, default is 5 seconds --></span><br style="color: rgb(153, 51, 0);">
<span style="color: rgb(153, 51, 0);"> <!-- <param name="delay" value="1"/> --></span><br style="color: rgb(153, 51, 0);"><br style="color: rgb(153, 51, 0);"><span style="color: rgb(153, 51, 0);"> <!-- Log via http and on disk, default is false --></span><br style="color: rgb(153, 51, 0);">
<span style="color: rgb(153, 51, 0);"> <!-- <param name="log-http-and-disk" value="true"/> --></span><br style="color: rgb(153, 51, 0);"><br style="color: rgb(153, 51, 0);"><span style="color: rgb(153, 51, 0);"> <!-- optional: if not present we do not log every record to disk --></span><br style="color: rgb(153, 51, 0);">
<span style="color: rgb(153, 51, 0);"> <!-- either an absolute path, a relative path assuming ${prefix}/logs or a blank value will default to ${prefix}/logs/xml_cdr --></span><br style="color: rgb(153, 51, 0);">
<b style="color: rgb(153, 51, 0);"> <param name="log-dir" value="/opt/fscdr"/></b><br style="color: rgb(153, 51, 0);">
<br style="color: rgb(153, 51, 0);"><span style="color: rgb(153, 51, 0);"> <!-- optional: if not present we do log the b leg --></span><br style="color: rgb(153, 51, 0);"><span style="color: rgb(153, 51, 0);"> <!-- true or false if we should create a cdr for the b leg of a call--></span><br style="color: rgb(153, 51, 0);">
<span style="color: rgb(153, 51, 0);"> <!--param name="log-b-leg" value="false"/--></span><br style="color: rgb(153, 51, 0);"><br style="color: rgb(153, 51, 0);"><span style="color: rgb(153, 51, 0);"> <!-- optional: if not present, all filenames are the uuid of the call --></span><br style="color: rgb(153, 51, 0);">
<span style="color: rgb(153, 51, 0);"> <!-- true or false if a leg files are prefixed "a_" --></span><br style="color: rgb(153, 51, 0);"><span style="color: rgb(153, 51, 0);"> </span><b style="color: rgb(153, 51, 0);"> <param name="prefix-a-leg" value="true"/></b><br style="color: rgb(153, 51, 0);">
<br style="color: rgb(153, 51, 0);"><span style="color: rgb(153, 51, 0);"> <!-- encode the post data may be 'true' for url encoding, 'false' for no encoding or 'base64' for base64 encoding --></span><br style="color: rgb(153, 51, 0);">
<span style="color: rgb(153, 51, 0);"> </span><b style="color: rgb(153, 51, 0);"><param name="encode" value="true"/></b><br style="color: rgb(153, 51, 0);"><br style="color: rgb(153, 51, 0);">
<span style="color: rgb(153, 51, 0);"> <!-- optional: set to true to disable Expect: 100-continue lighttpd requires this setting --></span><br style="color: rgb(153, 51, 0);"><span style="color: rgb(153, 51, 0);"> <!--<param name="disable-100-continue" value="true"/>--></span><br style="color: rgb(153, 51, 0);">
<br style="color: rgb(153, 51, 0);"><span style="color: rgb(153, 51, 0);"> <!-- optional: full path to the error log dir for failed web posts if not specified its the same as log-dir --></span><br style="color: rgb(153, 51, 0);">
<span style="color: rgb(153, 51, 0);"> <!-- either an absolute path, a relative path assuming ${prefix}/logs or a blank or omitted value will default to ${prefix}/logs/xml_cdr --></span><br style="color: rgb(153, 51, 0);">
<span style="color: rgb(153, 51, 0);"> </span><b style="color: rgb(153, 51, 0);"><param name="err-log-dir" value="/opt/error_cdr"/></b><br style="color: rgb(153, 51, 0);"><br style="color: rgb(153, 51, 0);">
<span style="color: rgb(153, 51, 0);"> <!-- which auhtentification scheme to use. Supported values are: basic, digest, NTLM, GSS-NEGOTIATE or "any" for automatic detection --></span><br style="color: rgb(153, 51, 0);">
<span style="color: rgb(153, 51, 0);"> <!--<param name="auth-scheme" value="basic"/>--></span><br style="color: rgb(153, 51, 0);"><br style="color: rgb(153, 51, 0);"><span style="color: rgb(153, 51, 0);"> <!-- optional: this will enable the CA root certificate check by libcurl to</span><br style="color: rgb(153, 51, 0);">
<span style="color: rgb(153, 51, 0);"> verify that the certificate was issued by a major Certificate Authority.</span><br style="color: rgb(153, 51, 0);"><span style="color: rgb(153, 51, 0);"> note: default value is disabled. only enable if you want this! --></span><br style="color: rgb(153, 51, 0);">
<span style="color: rgb(153, 51, 0);"> <!--<param name="enable-cacert-check" value="true"/>--></span><br style="color: rgb(153, 51, 0);"><span style="color: rgb(153, 51, 0);"> <!-- optional: verify that the server is actually the one listed in the cert --></span><br style="color: rgb(153, 51, 0);">
<span style="color: rgb(153, 51, 0);"> <!-- <param name="enable-ssl-verifyhost" value="true"/> --></span><br style="color: rgb(153, 51, 0);"><br style="color: rgb(153, 51, 0);"><span style="color: rgb(153, 51, 0);"> <!-- optional: these options can be used to specify custom SSL certificates</span><br style="color: rgb(153, 51, 0);">
<span style="color: rgb(153, 51, 0);"> to use for HTTPS communications. Either use both options or neither.</span><br style="color: rgb(153, 51, 0);"><span style="color: rgb(153, 51, 0);"> Specify your public key with 'ssl-cert-path' and the private key with</span><br style="color: rgb(153, 51, 0);">
<span style="color: rgb(153, 51, 0);"> 'ssl-key-path'. If your private key has a password, specify it with</span><br style="color: rgb(153, 51, 0);"><span style="color: rgb(153, 51, 0);"> 'ssl-key-password'. --></span><br style="color: rgb(153, 51, 0);">
<span style="color: rgb(153, 51, 0);"> <!-- <param name="ssl-cert-path" value="$${base_dir}/conf/certs/public_key.pem"/> --></span><br style="color: rgb(153, 51, 0);"><span style="color: rgb(153, 51, 0);"> <!-- <param name="ssl-key-path" value="$${base_dir}/conf/certs/private_key.pem"/> --></span><br style="color: rgb(153, 51, 0);">
<span style="color: rgb(153, 51, 0);"> <!-- <param name="ssl-key-password" value="MyPrivateKeyPassword"/> --></span><br style="color: rgb(153, 51, 0);"><br style="color: rgb(153, 51, 0);">
<span style="color: rgb(153, 51, 0);"> <!-- optional: use a custom CA certificate in PEM format to verify the peer</span><br style="color: rgb(153, 51, 0);"><span style="color: rgb(153, 51, 0);"> with. This is useful if you are acting as your own certificate authority.</span><br style="color: rgb(153, 51, 0);">
<span style="color: rgb(153, 51, 0);"> note: only makes sense if used in combination with "enable-cacert-check." --></span><br style="color: rgb(153, 51, 0);"><span style="color: rgb(153, 51, 0);"> <!-- <param name="ssl-cacert-file" value="$${base_dir}/conf/certs/cacert.pem"/> --></span><br style="color: rgb(153, 51, 0);">
<br style="color: rgb(153, 51, 0);"><span style="color: rgb(153, 51, 0);"> <!-- optional: specify the SSL version to force HTTPS to use. Valid options are</span><br style="color: rgb(153, 51, 0);"><span style="color: rgb(153, 51, 0);"> "SSLv3" and "TLSv1". Otherwise libcurl will auto-negotiate the version. --></span><br style="color: rgb(153, 51, 0);">
<span style="color: rgb(153, 51, 0);"> <!-- <param name="ssl-version" value="TLSv1"/> --></span><br style="color: rgb(153, 51, 0);"><br style="color: rgb(153, 51, 0);"><span style="color: rgb(153, 51, 0);"> <!-- optional: enables cookies and stores them in the specified file. --></span><br style="color: rgb(153, 51, 0);">
<span style="color: rgb(153, 51, 0);"> <!-- <param name="cookie-file" value="/tmp/cookie-mod_xml_curl.txt"/> --></span><br style="color: rgb(153, 51, 0);"><span style="color: rgb(153, 51, 0);"> </settings></span><br style="color: rgb(153, 51, 0);">
<span style="color: rgb(153, 51, 0);"></configuration></span><br><br><br>Many Thanks<br>- Saeed<br>