<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Steven,<div><br></div><div>I confirm the default is log B-leg:</div><div><div><br></div><div> <!-- optional: if not present we do log the b leg --></div><div><br></div><div><div apple-content-edited="true"> <div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; font-size: 14px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" color="#1C00FF">David Ponzone </font><font class="Apple-style-span" color="#000000" size="3"><span class="Apple-style-span" style="font-size: 12px; ">Direction Technique</span></font></font></div><div><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; ">email: <a href="mailto:david.ponzone@ipeva.fr">david.ponzone@ipeva.fr</a></span></font></font></div><div><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; ">tel: 01 74 03 18 97</span></font></font></div><div><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; ">gsm: 06 66 98 76 34</span></font></font></div><div><font class="Apple-style-span" face="'Helvetica Neue'"><br></font></div><div><font class="Apple-style-span" color="#1C00FF" face="'Helvetica Neue'">Service Client<span class="Apple-converted-space"> </span></font><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" color="#FF0000">IP</font></font><font class="Apple-style-span" color="#1C00FF" face="'Helvetica Neue'">eva</font></div><div><font class="Apple-style-span" color="#1C00FF" face="'Helvetica Neue'"><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Helvetica; "><div><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; ">tel: 0811 46 26 26</span></font></font></div><div><font class="Apple-style-span" face="'Helvetica Neue'" size="3"><span class="Apple-style-span" style="font-size: 13px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Arial; color: rgb(0, 34, 243); "><span style="text-decoration: underline; "><a href="BLOCKED::http://www.ipeva.fr/">www.ipeva.fr</a></span><span style="color: rgb(101, 104, 149); "> - <span style="color: rgb(0, 34, 243); text-decoration: underline; "><a href="BLOCKED::http://www.ipeva-studio.com/">www.ipeva-studio.com</a></span></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Arial; color: rgb(0, 34, 243); "><span class="Apple-style-span" style="text-decoration: underline; "><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Arial; color: rgb(0, 34, 243); "><span class="Apple-style-span"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; text-align: justify; font: normal normal normal 10px/normal Arial; color: rgb(192, 192, 192); "><i>Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. </i><b><i>IPeva</i></b><i> décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur.</i></div><div style="text-decoration: underline; text-align: justify; "><font class="Apple-style-span" color="#C0C0C0"><i><br></i></font></div></span></div></span></font></div></span></font></div></div></span><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"> </div><br><div><div>Le 01/10/2010 à 17:45, Steven Ayre a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Are they A and B leg CDRs? For a bridged call you'll see a CDR for<br>both the A and B leg, which as separate channels will each have its<br>own UUID but will share the same caller id, destination number and<br>call duration.<br><br><!--param name="log-b-leg" value="false"/--><br>That parameter would disable logging the B-leg CDRs. You have it<br>commented out. I can't remember the default setting but from what you<br>describe, default behaviour might be to log both.<br><br>Look at the Direction that is submitted to tell the difference between<br>A and B legs. It'll either be inbound (A) or outbound (B). You could<br>then ignore B-legs in your PHP script, or handle them differently.<br><br>-Steve<br><br><br>On 1 October 2010 11:17, Saeed Ahmed <<a href="mailto:saeedahmad1981@gmail.com">saeedahmad1981@gmail.com</a>> wrote:<br><blockquote type="cite">Dear List,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I am using xml_cdr to write the records on disk.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">today for first time when there was a call pressure around 60-70 concurrent<br></blockquote><blockquote type="cite">calls (around 140 session), then FS started to write same CDR record two<br></blockquote><blockquote type="cite">times with different/unique file name and also different/unique UUIDs etc..<br></blockquote><blockquote type="cite">but the called number, start time, end time everything is same. so its<br></blockquote><blockquote type="cite">surely a duplicated CDR.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">-> I am running FS on cent os, on a 6 core machine with 4 GM RAM.<br></blockquote><blockquote type="cite">-> FS version: FreeSWITCH Version 1.0.head (git-72baaf6 2010-09-21 19-22-28<br></blockquote><blockquote type="cite">-0500) (is anything regarding cdr changed in new version? so i can upgrade)<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><blockquote type="cite">Please note that system was running fine with few call attempts and i<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">never faced this prob, only in case of 6-70 councurrent calls<br></blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">My xml_cr.conf:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><configuration name="xml_cdr.conf" description="XML CDR CURL logger"><br></blockquote><blockquote type="cite"> <settings><br></blockquote><blockquote type="cite"> <!-- the url to post to if blank web posting is disabled --><br></blockquote><blockquote type="cite"> <!-- <param name="url" value="<a href="http://localhost/cdr_curl/post.php">http://localhost/cdr_curl/post.php</a>"/> --><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> <!-- optional: credentials to send to web server --><br></blockquote><blockquote type="cite"> <!-- <param name="cred" value="user:pass"/> --><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> <!-- the total number of retries (not counting the first 'try') to post<br></blockquote><blockquote type="cite">to webserver incase of failure --><br></blockquote><blockquote type="cite"> <param name="retries" value="2"/><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> <!-- delay between retries in seconds, default is 5 seconds --><br></blockquote><blockquote type="cite"> <!-- <param name="delay" value="1"/> --><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> <!-- Log via http and on disk, default is false --><br></blockquote><blockquote type="cite"> <!-- <param name="log-http-and-disk" value="true"/> --><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> <!-- optional: if not present we do not log every record to disk --><br></blockquote><blockquote type="cite"> <!-- either an absolute path, a relative path assuming ${prefix}/logs or<br></blockquote><blockquote type="cite">a blank value will default to ${prefix}/logs/xml_cdr --><br></blockquote><blockquote type="cite"> <param name="log-dir" value="/opt/fscdr"/><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> <!-- optional: if not present we do log the b leg --><br></blockquote><blockquote type="cite"> <!-- true or false if we should create a cdr for the b leg of a call--><br></blockquote><blockquote type="cite"> <!--param name="log-b-leg" value="false"/--><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> <!-- optional: if not present, all filenames are the uuid of the call<br></blockquote><blockquote type="cite">--><br></blockquote><blockquote type="cite"> <!-- true or false if a leg files are prefixed "a_" --><br></blockquote><blockquote type="cite"> <param name="prefix-a-leg" value="true"/><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> <!-- encode the post data may be 'true' for url encoding, 'false' for no<br></blockquote><blockquote type="cite">encoding or 'base64' for base64 encoding --><br></blockquote><blockquote type="cite"> <param name="encode" value="true"/><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> <!-- optional: set to true to disable Expect: 100-continue lighttpd<br></blockquote><blockquote type="cite">requires this setting --><br></blockquote><blockquote type="cite"> <!--<param name="disable-100-continue" value="true"/>--><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> <!-- optional: full path to the error log dir for failed web posts if<br></blockquote><blockquote type="cite">not specified its the same as log-dir --><br></blockquote><blockquote type="cite"> <!-- either an absolute path, a relative path assuming ${prefix}/logs or<br></blockquote><blockquote type="cite">a blank or omitted value will default to ${prefix}/logs/xml_cdr --><br></blockquote><blockquote type="cite"> <param name="err-log-dir" value="/opt/error_cdr"/><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> <!-- which auhtentification scheme to use. Supported values are: basic,<br></blockquote><blockquote type="cite">digest, NTLM, GSS-NEGOTIATE or "any" for automatic detection --><br></blockquote><blockquote type="cite"> <!--<param name="auth-scheme" value="basic"/>--><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> <!-- optional: this will enable the CA root certificate check by libcurl<br></blockquote><blockquote type="cite">to<br></blockquote><blockquote type="cite"> verify that the certificate was issued by a major Certificate<br></blockquote><blockquote type="cite">Authority.<br></blockquote><blockquote type="cite"> note: default value is disabled. only enable if you want this! --><br></blockquote><blockquote type="cite"> <!--<param name="enable-cacert-check" value="true"/>--><br></blockquote><blockquote type="cite"> <!-- optional: verify that the server is actually the one listed in the<br></blockquote><blockquote type="cite">cert --><br></blockquote><blockquote type="cite"> <!-- <param name="enable-ssl-verifyhost" value="true"/> --><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> <!-- optional: these options can be used to specify custom SSL<br></blockquote><blockquote type="cite">certificates<br></blockquote><blockquote type="cite"> to use for HTTPS communications. Either use both options or<br></blockquote><blockquote type="cite">neither.<br></blockquote><blockquote type="cite"> Specify your public key with 'ssl-cert-path' and the private key<br></blockquote><blockquote type="cite">with<br></blockquote><blockquote type="cite"> 'ssl-key-path'. If your private key has a password, specify it with<br></blockquote><blockquote type="cite"> 'ssl-key-password'. --><br></blockquote><blockquote type="cite"> <!-- <param name="ssl-cert-path"<br></blockquote><blockquote type="cite">value="$${base_dir}/conf/certs/public_key.pem"/> --><br></blockquote><blockquote type="cite"> <!-- <param name="ssl-key-path"<br></blockquote><blockquote type="cite">value="$${base_dir}/conf/certs/private_key.pem"/> --><br></blockquote><blockquote type="cite"> <!-- <param name="ssl-key-password" value="MyPrivateKeyPassword"/> --><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> <!-- optional: use a custom CA certificate in PEM format to verify the<br></blockquote><blockquote type="cite">peer<br></blockquote><blockquote type="cite"> with. This is useful if you are acting as your own certificate<br></blockquote><blockquote type="cite">authority.<br></blockquote><blockquote type="cite"> note: only makes sense if used in combination with<br></blockquote><blockquote type="cite">"enable-cacert-check." --><br></blockquote><blockquote type="cite"> <!-- <param name="ssl-cacert-file"<br></blockquote><blockquote type="cite">value="$${base_dir}/conf/certs/cacert.pem"/> --><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> <!-- optional: specify the SSL version to force HTTPS to use. Valid<br></blockquote><blockquote type="cite">options are<br></blockquote><blockquote type="cite"> "SSLv3" and "TLSv1". Otherwise libcurl will auto-negotiate the<br></blockquote><blockquote type="cite">version. --><br></blockquote><blockquote type="cite"> <!-- <param name="ssl-version" value="TLSv1"/> --><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> <!-- optional: enables cookies and stores them in the specified file.<br></blockquote><blockquote type="cite">--><br></blockquote><blockquote type="cite"> <!-- <param name="cookie-file" value="/tmp/cookie-mod_xml_curl.txt"/><br></blockquote><blockquote type="cite">--><br></blockquote><blockquote type="cite"> </settings><br></blockquote><blockquote type="cite"></configuration><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Many Thanks<br></blockquote><blockquote type="cite">- Saeed<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">_______________________________________________<br></blockquote><blockquote type="cite">FreeSWITCH-users mailing list<br></blockquote><blockquote type="cite"><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br></blockquote><blockquote type="cite"><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br></blockquote><blockquote type="cite">UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br></blockquote><blockquote type="cite"><a href="http://www.freeswitch.org">http://www.freeswitch.org</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><br>_______________________________________________<br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br>http://www.freeswitch.org<br></div></blockquote></div><br></div></div></body></html>