<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><a href="https://freeswitch.org/jira/browse/FS-7258" class="">https://freeswitch.org/jira/browse/FS-7258</a><br class=""><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Mar 11, 2015, at 4:53 AM, Assaf Dahary <<a href="mailto:adahary@gmail.com" class="">adahary@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">Hi,<br class=""><br class="">I have installed a fresh FS on a DigitalOcean VPS (CentOS 6.5 64bit).<br class="">FreeSWITCH Version 1.5.15b+git~20150303T230402Z~86c68d906a~64bit (git<br class="">86c68d9 2015-03-03 23:04:02Z 64bit)<br class=""><br class="">I'm using mod_cml_cdr to process call logs into DB using a PHP script ($xml<br class="">= simplexml_load_string($xml_string);) <br class=""><br class="">The problem is that the xml parsing is failing because the generated POST<br class="">XML CDR string received on my web is NOT url-encoded as should be.<br class="">I verified that encoding is enabled: <param name="encode" value="true"/><br class="">(see full conf file below).<br class=""><br class="">This un-encoded line from the posted xml CDR is one example for what is<br class="">causing the xml parsing error:<br class=""><sip_full_from>"99252627"<br class=""><<a href="sip:1234@11.11.11.11" class="">sip:1234@11.11.11.11</a>>;tag=y3Xr3g6HZZtBQ</sip_full_from>.<br class=""><br class="">On other FS I get it encoded with no xml errors:<br class=""><sip_full_from>%3Csip%3A1234%<a href="http://40abc.com" class="">40abc.com</a>%3E%3Btag%3DnQGk6NEXS0yYrSeyIYCbrXmge7<br class="">80R7J4</sip_full_from><br class=""><br class="">I've reinstalled all PHP/XML/CURL related modules with no help.<br class="">I also tried to post to my other FS web server thinking that the local FS<br class="">web is decoding and then passing to the php xml script - still with no help.<br class=""><br class="">Any tip/help/advise will be appreciated.<br class=""><br class="">Regards<br class=""><br class="">Assaf <br class=""><br class=""><br class="">This is my xml_cdr.conf.xml file:<br class=""><br class=""><configuration name="xml_cdr.conf" description="XML CDR CURL logger"><br class=""> <settings><br class=""> <!-- the url to post to if blank web posting is disabled --><br class=""> <!-- <param name="url" value="<a href="http://localhost/cdr_curl/post.php" class="">http://localhost/cdr_curl/post.php</a>"/> --><br class=""><br class=""> <!-- optional: credentials to send to web server --><br class=""> <!-- <param name="cred" value="user:pass"/> --><br class=""><br class=""> <!-- the total number of retries (not counting the first 'try') to post<br class="">to webserver incase of failure --><br class=""> <!-- <param name="retries" value="2"/> --><br class=""><br class=""> <!-- delay between retries in seconds, default is 5 seconds --><br class=""> <!-- <param name="delay" value="1"/> --><br class=""><br class=""> <!-- optional: if not present we do not log every record to disk --><br class=""> <!-- either an absolute path, a relative path assuming ${prefix}/logs or<br class="">a blank value will default to ${prefix}/logs/xml_cdr --><br class=""> <param name="log-dir" value=""/><br class=""><br class=""> <!-- optional: if not present we do log the b leg --><br class=""> <!-- true or false if we should create a cdr for the b leg of a call--><br class=""> <param name="log-b-leg" value="false"/><br class=""><br class=""> <!-- optional: if not present, all filenames are the uuid of the call<br class="">--><br class=""> <!-- true or false if a leg files are prefixed "a_" --><br class=""> <param name="prefix-a-leg" value="true"/><br class=""><br class=""> <!-- encode the post data may be 'true' for url encoding, 'false' for no<br class="">encoding or 'base64' for base64 encoding --><br class=""> <param name="encode" value="true"/><br class=""><br class=""> <!-- optional: set to true to disable Expect: 100-continue lighttpd<br class="">requires this setting --> <br class=""> <!--<param name="disable-100-continue" value="true"/>--> <br class=""><br class=""> <!-- optional: full path to the error log dir for failed web posts if<br class="">not specified its the same as log-dir --><br class=""> <!-- either an absolute path, a relative path assuming ${prefix}/logs or<br class="">a blank or omitted value will default to ${prefix}/logs/xml_cdr --><br class=""> <!-- <param name="err-log-dir" value="/tmp"/> --><br class=""><br class=""> <!-- optional: if enabled this will disable CA root certificate checks<br class="">by libcurl --><br class=""> <!-- note: default value is disabled. only enable if you want this! --><br class=""> <!-- <param name="ignore-cacert-check" value="true" /> --><br class=""><br class=""> </settings><br class=""></configuration> <br class=""><br class=""></div></blockquote></div><br class=""></div></body></html>