<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Michael</span><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I saw that there is a fix/patch for this issue.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>But how I add/compile it (sorry – not much know HOWTO) ?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] <b>On Behalf Of </b>Michael Jerris<br><b>Sent:</b> Wednesday, March 11, 2015 2:14 PM<br><b>To:</b> FreeSWITCH Users Help<br><b>Subject:</b> Re: [Freeswitch-users] xml_cdr encoding issues<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><a href="https://freeswitch.org/jira/browse/FS-7258">https://freeswitch.org/jira/browse/FS-7258</a><o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p><div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><div><p class=MsoNormal>On Mar 11, 2015, at 4:53 AM, Assaf Dahary <<a href="mailto:adahary@gmail.com">adahary@gmail.com</a>> wrote:<o:p></o:p></p></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal style='margin-bottom:12.0pt'>Hi,<br><br>I have installed a fresh FS on a DigitalOcean VPS (CentOS 6.5 64bit).<br>FreeSWITCH Version 1.5.15b+git~20150303T230402Z~86c68d906a~64bit (git<br>86c68d9 2015-03-03 23:04:02Z 64bit)<br><br>I'm using mod_cml_cdr to process call logs into DB using a PHP script ($xml<br>= simplexml_load_string($xml_string);) <br><br>The problem is that the xml parsing is failing because the generated POST<br>XML CDR string received on my web is NOT url-encoded as should be.<br>I verified that encoding is enabled: <param name="encode" value="true"/><br>(see full conf file below).<br><br>This un-encoded line from the posted xml CDR is one example for what is<br>causing the xml parsing error:<br><sip_full_from>"99252627"<br><<a href="sip:1234@11.11.11.11">sip:1234@11.11.11.11</a>>;tag=y3Xr3g6HZZtBQ</sip_full_from>.<br><br>On other FS I get it encoded with no xml errors:<br><sip_full_from>%3Csip%3A1234%<a href="http://40abc.com">40abc.com</a>%3E%3Btag%3DnQGk6NEXS0yYrSeyIYCbrXmge7<br>80R7J4</sip_full_from><br><br>I've reinstalled all PHP/XML/CURL related modules with no help.<br>I also tried to post to my other FS web server thinking that the local FS<br>web is decoding and then passing to the php xml script - still with no help.<br><br>Any tip/help/advise will be appreciated.<br><br>Regards<br><br>Assaf <br><br><br>This is my xml_cdr.conf.xml file:<br><br><configuration name="xml_cdr.conf" description="XML CDR CURL logger"><br> <settings><br> <!-- the url to post to if blank web posting is disabled --><br> <!-- <param name="url" value="<a href="http://localhost/cdr_curl/post.php">http://localhost/cdr_curl/post.php</a>"/> --><br><br> <!-- optional: credentials to send to web server --><br> <!-- <param name="cred" value="user:pass"/> --><br><br> <!-- the total number of retries (not counting the first 'try') to post<br>to webserver incase of failure --><br> <!-- <param name="retries" value="2"/> --><br><br> <!-- delay between retries in seconds, default is 5 seconds --><br> <!-- <param name="delay" value="1"/> --><br><br> <!-- optional: if not present we do not log every record to disk --><br> <!-- either an absolute path, a relative path assuming ${prefix}/logs or<br>a blank value will default to ${prefix}/logs/xml_cdr --><br> <param name="log-dir" value=""/><br><br> <!-- optional: if not present we do log the b leg --><br> <!-- true or false if we should create a cdr for the b leg of a call--><br> <param name="log-b-leg" value="false"/><br><br> <!-- optional: if not present, all filenames are the uuid of the call<br>--><br> <!-- true or false if a leg files are prefixed "a_" --><br> <param name="prefix-a-leg" value="true"/><br><br> <!-- encode the post data may be 'true' for url encoding, 'false' for no<br>encoding or 'base64' for base64 encoding --><br> <param name="encode" value="true"/><br><br> <!-- optional: set to true to disable Expect: 100-continue lighttpd<br>requires this setting --> <br> <!--<param name="disable-100-continue" value="true"/>--> <br><br> <!-- optional: full path to the error log dir for failed web posts if<br>not specified its the same as log-dir --><br> <!-- either an absolute path, a relative path assuming ${prefix}/logs or<br>a blank or omitted value will default to ${prefix}/logs/xml_cdr --><br> <!-- <param name="err-log-dir" value="/tmp"/> --><br><br> <!-- optional: if enabled this will disable CA root certificate checks<br>by libcurl --><br> <!-- note: default value is disabled. only enable if you want this! --><br> <!-- <param name="ignore-cacert-check" value="true" /> --><br><br> </settings><br></configuration> <o:p></o:p></p></div></blockquote></div><p class=MsoNormal><o:p> </o:p></p></div></div></body></html>