<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[Freeswitch-trunk][16807] </title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<div id="header">FreeSWITCH Subversion</div>
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://fisheye.freeswitch.org/changelog/FreeSWITCH?cs=16807">16807</a></dd>
<dt>Author</dt> <dd>cseket</dd>
<dt>Date</dt> <dd>2010-02-25 02:13:42 -0600 (Thu, 25 Feb 2010)</dd>
</dl>

<h3>Log Message</h3>
<pre>copy mod_xml_cdr to make a separate module</pre>

<h3>Added Paths</h3>
<ul>
<li>freeswitch/branches/cseket/src/mod/event_handlers/mod_json_cdr/</li>
<li><a href="#freeswitchbranchescseketsrcmodevent_handlersmod_json_cdrMakefile">freeswitch/branches/cseket/src/mod/event_handlers/mod_json_cdr/Makefile</a></li>
<li><a href="#freeswitchbranchescseketsrcmodevent_handlersmod_json_cdrmod_json_cdr2008vcproj">freeswitch/branches/cseket/src/mod/event_handlers/mod_json_cdr/mod_json_cdr.2008.vcproj</a></li>
<li><a href="#freeswitchbranchescseketsrcmodevent_handlersmod_json_cdrmod_json_cdrc">freeswitch/branches/cseket/src/mod/event_handlers/mod_json_cdr/mod_json_cdr.c</a></li>
<li><a href="#freeswitchbranchescseketsrcmodevent_handlersmod_json_cdrmod_json_cdrvcproj">freeswitch/branches/cseket/src/mod/event_handlers/mod_json_cdr/mod_json_cdr.vcproj</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="freeswitchbranchescseketsrcmodevent_handlersmod_json_cdrMakefilefromrev16806freeswitchbranchescseketsrcmodxml_intmod_xml_cdrMakefile"></a>
<div class="copfile"><h4>Copied: freeswitch/branches/cseket/src/mod/event_handlers/mod_json_cdr/Makefile (from rev 16806, freeswitch/branches/cseket/src/mod/xml_int/mod_xml_cdr/Makefile) (0 => 16807)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/cseket/src/mod/event_handlers/mod_json_cdr/Makefile                                (rev 0)
+++ freeswitch/branches/cseket/src/mod/event_handlers/mod_json_cdr/Makefile        2010-02-25 08:13:42 UTC (rev 16807)
</span><span class="lines">@@ -0,0 +1,27 @@
</span><ins>+json-c=json-c-0.8
+BASE=../../../..
+WANT_CURL=yes
+
+JSON_DIR=$(switch_srcdir)/libs/$(json-c)
+JSON_BUILDDIR=$(switch_builddir)/libs/$(json-c)
+
+JSONLA=$(JSON_BUILDDIR)/libjson.la
+
+LOCAL_CFLAGS=-I$(JSON_DIR)
+LOCAL_LIBADD=$(JSONLA)
+
+include $(BASE)/build/modmake.rules
+
+$(JSON_DIR):
+        $(GETLIB) $(json-c).tar.gz
+
+$(JSON_BUILDDIR)/Makefile: $(JSON_DIR)
+        mkdir -p $(JSON_BUILDDIR)
+        cd $(JSON_BUILDDIR) &amp;&amp; $(DEFAULT_VARS) $(JSON_DIR)/configure $(DEFAULT_ARGS) --srcdir=$(JSON_DIR) CPPFLAGS= LDFLAGS=
+        $(TOUCH_TARGET)
+
+$(JSONLA): $(JSON_BUILDDIR)/Makefile
+        cd $(JSON_BUILDDIR) &amp;&amp; $(MAKE)
+        $(TOUCH_TARGET)
+
+
</ins></span></pre></div>
<a id="freeswitchbranchescseketsrcmodevent_handlersmod_json_cdrmod_json_cdr2008vcprojfromrev16806freeswitchbranchescseketsrcmodxml_intmod_xml_cdrmod_xml_cdr2008vcproj"></a>
<div class="copfile"><h4>Copied: freeswitch/branches/cseket/src/mod/event_handlers/mod_json_cdr/mod_json_cdr.2008.vcproj (from rev 16806, freeswitch/branches/cseket/src/mod/xml_int/mod_xml_cdr/mod_xml_cdr.2008.vcproj) (0 => 16807)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/cseket/src/mod/event_handlers/mod_json_cdr/mod_json_cdr.2008.vcproj                                (rev 0)
+++ freeswitch/branches/cseket/src/mod/event_handlers/mod_json_cdr/mod_json_cdr.2008.vcproj        2010-02-25 08:13:42 UTC (rev 16807)
</span><span class="lines">@@ -0,0 +1,289 @@
</span><ins>+&lt;?xml version=&quot;1.0&quot; encoding=&quot;Windows-1252&quot;?&gt;
+&lt;VisualStudioProject
+        ProjectType=&quot;Visual C++&quot;
+        Version=&quot;9.00&quot;
+        Name=&quot;mod_xml_cdr&quot;
+        ProjectGUID=&quot;{08DAD348-9E0A-4A2E-97F1-F1E7E24A7836}&quot;
+        RootNamespace=&quot;mod_xml_cdr&quot;
+        Keyword=&quot;Win32Proj&quot;
+        TargetFrameworkVersion=&quot;131072&quot;
+        &gt;
+        &lt;Platforms&gt;
+                &lt;Platform
+                        Name=&quot;Win32&quot;
+                /&gt;
+                &lt;Platform
+                        Name=&quot;x64&quot;
+                /&gt;
+        &lt;/Platforms&gt;
+        &lt;ToolFiles&gt;
+        &lt;/ToolFiles&gt;
+        &lt;Configurations&gt;
+                &lt;Configuration
+                        Name=&quot;Debug|Win32&quot;
+                        ConfigurationType=&quot;2&quot;
+                        InheritedPropertySheets=&quot;..\..\..\..\w32\module_debug.vsprops;..\..\..\..\w32\curl.vsprops&quot;
+                        CharacterSet=&quot;2&quot;
+                        &gt;
+                        &lt;Tool
+                                Name=&quot;VCPreBuildEventTool&quot;
+                        /&gt;
+                        &lt;Tool
+                                Name=&quot;VCCustomBuildTool&quot;
+                        /&gt;
+                        &lt;Tool
+                                Name=&quot;VCXMLDataGeneratorTool&quot;
+                        /&gt;
+                        &lt;Tool
+                                Name=&quot;VCWebServiceProxyGeneratorTool&quot;
+                        /&gt;
+                        &lt;Tool
+                                Name=&quot;VCMIDLTool&quot;
+                        /&gt;
+                        &lt;Tool
+                                Name=&quot;VCCLCompilerTool&quot;
+                                AdditionalIncludeDirectories=&quot;&quot;
+                                UsePrecompiledHeader=&quot;0&quot;
+                        /&gt;
+                        &lt;Tool
+                                Name=&quot;VCManagedResourceCompilerTool&quot;
+                        /&gt;
+                        &lt;Tool
+                                Name=&quot;VCResourceCompilerTool&quot;
+                        /&gt;
+                        &lt;Tool
+                                Name=&quot;VCPreLinkEventTool&quot;
+                        /&gt;
+                        &lt;Tool
+                                Name=&quot;VCLinkerTool&quot;
+                                RandomizedBaseAddress=&quot;1&quot;
+                                DataExecutionPrevention=&quot;0&quot;
+                        /&gt;
+                        &lt;Tool
+                                Name=&quot;VCALinkTool&quot;
+                        /&gt;
+                        &lt;Tool
+                                Name=&quot;VCManifestTool&quot;
+                        /&gt;
+                        &lt;Tool
+                                Name=&quot;VCXDCMakeTool&quot;
+                        /&gt;
+                        &lt;Tool
+                                Name=&quot;VCBscMakeTool&quot;
+                        /&gt;
+                        &lt;Tool
+                                Name=&quot;VCFxCopTool&quot;
+                        /&gt;
+                        &lt;Tool
+                                Name=&quot;VCAppVerifierTool&quot;
+                        /&gt;
+                        &lt;Tool
+                                Name=&quot;VCPostBuildEventTool&quot;
+                        /&gt;
+                &lt;/Configuration&gt;
+                &lt;Configuration
+                        Name=&quot;Debug|x64&quot;
+                        ConfigurationType=&quot;2&quot;
+                        InheritedPropertySheets=&quot;..\..\..\..\w32\module_debug.vsprops;..\..\..\..\w32\curl.vsprops&quot;
+                        CharacterSet=&quot;2&quot;
+                        &gt;
+                        &lt;Tool
+                                Name=&quot;VCPreBuildEventTool&quot;
+                        /&gt;
+                        &lt;Tool
+                                Name=&quot;VCCustomBuildTool&quot;
+                        /&gt;
+                        &lt;Tool
+                                Name=&quot;VCXMLDataGeneratorTool&quot;
+                        /&gt;
+                        &lt;Tool
+                                Name=&quot;VCWebServiceProxyGeneratorTool&quot;
+                        /&gt;
+                        &lt;Tool
+                                Name=&quot;VCMIDLTool&quot;
+                                TargetEnvironment=&quot;3&quot;
+                        /&gt;
+                        &lt;Tool
+                                Name=&quot;VCCLCompilerTool&quot;
+                                AdditionalIncludeDirectories=&quot;&quot;
+                                UsePrecompiledHeader=&quot;0&quot;
+                        /&gt;
+                        &lt;Tool
+                                Name=&quot;VCManagedResourceCompilerTool&quot;
+                        /&gt;
+                        &lt;Tool
+                                Name=&quot;VCResourceCompilerTool&quot;
+                        /&gt;
+                        &lt;Tool
+                                Name=&quot;VCPreLinkEventTool&quot;
+                        /&gt;
+                        &lt;Tool
+                                Name=&quot;VCLinkerTool&quot;
+                                OutputFile=&quot;$(SolutionDir)$(PlatformName)\$(ConfigurationName)/mod/$(ProjectName).dll&quot;
+                                RandomizedBaseAddress=&quot;1&quot;
+                                DataExecutionPrevention=&quot;0&quot;
+                                TargetMachine=&quot;17&quot;
+                        /&gt;
+                        &lt;Tool
+                                Name=&quot;VCALinkTool&quot;
+                        /&gt;
+                        &lt;Tool
+                                Name=&quot;VCManifestTool&quot;
+                        /&gt;
+                        &lt;Tool
+                                Name=&quot;VCXDCMakeTool&quot;
+                        /&gt;
+                        &lt;Tool
+                                Name=&quot;VCBscMakeTool&quot;
+                        /&gt;
+                        &lt;Tool
+                                Name=&quot;VCFxCopTool&quot;
+                        /&gt;
+                        &lt;Tool
+                                Name=&quot;VCAppVerifierTool&quot;
+                        /&gt;
+                        &lt;Tool
+                                Name=&quot;VCPostBuildEventTool&quot;
+                        /&gt;
+                &lt;/Configuration&gt;
+                &lt;Configuration
+                        Name=&quot;Release|Win32&quot;
+                        ConfigurationType=&quot;2&quot;
+                        InheritedPropertySheets=&quot;..\..\..\..\w32\module_release.vsprops;..\..\..\..\w32\curl.vsprops&quot;
+                        CharacterSet=&quot;2&quot;
+                        &gt;
+                        &lt;Tool
+                                Name=&quot;VCPreBuildEventTool&quot;
+                        /&gt;
+                        &lt;Tool
+                                Name=&quot;VCCustomBuildTool&quot;
+                        /&gt;
+                        &lt;Tool
+                                Name=&quot;VCXMLDataGeneratorTool&quot;
+                        /&gt;
+                        &lt;Tool
+                                Name=&quot;VCWebServiceProxyGeneratorTool&quot;
+                        /&gt;
+                        &lt;Tool
+                                Name=&quot;VCMIDLTool&quot;
+                        /&gt;
+                        &lt;Tool
+                                Name=&quot;VCCLCompilerTool&quot;
+                                AdditionalIncludeDirectories=&quot;&quot;
+                                UsePrecompiledHeader=&quot;0&quot;
+                        /&gt;
+                        &lt;Tool
+                                Name=&quot;VCManagedResourceCompilerTool&quot;
+                        /&gt;
+                        &lt;Tool
+                                Name=&quot;VCResourceCompilerTool&quot;
+                        /&gt;
+                        &lt;Tool
+                                Name=&quot;VCPreLinkEventTool&quot;
+                        /&gt;
+                        &lt;Tool
+                                Name=&quot;VCLinkerTool&quot;
+                                AdditionalLibraryDirectories=&quot;&quot;
+                                RandomizedBaseAddress=&quot;1&quot;
+                                DataExecutionPrevention=&quot;0&quot;
+                        /&gt;
+                        &lt;Tool
+                                Name=&quot;VCALinkTool&quot;
+                        /&gt;
+                        &lt;Tool
+                                Name=&quot;VCManifestTool&quot;
+                        /&gt;
+                        &lt;Tool
+                                Name=&quot;VCXDCMakeTool&quot;
+                        /&gt;
+                        &lt;Tool
+                                Name=&quot;VCBscMakeTool&quot;
+                        /&gt;
+                        &lt;Tool
+                                Name=&quot;VCFxCopTool&quot;
+                        /&gt;
+                        &lt;Tool
+                                Name=&quot;VCAppVerifierTool&quot;
+                        /&gt;
+                        &lt;Tool
+                                Name=&quot;VCPostBuildEventTool&quot;
+                        /&gt;
+                &lt;/Configuration&gt;
+                &lt;Configuration
+                        Name=&quot;Release|x64&quot;
+                        ConfigurationType=&quot;2&quot;
+                        InheritedPropertySheets=&quot;..\..\..\..\w32\module_release.vsprops;..\..\..\..\w32\curl.vsprops&quot;
+                        CharacterSet=&quot;2&quot;
+                        &gt;
+                        &lt;Tool
+                                Name=&quot;VCPreBuildEventTool&quot;
+                        /&gt;
+                        &lt;Tool
+                                Name=&quot;VCCustomBuildTool&quot;
+                        /&gt;
+                        &lt;Tool
+                                Name=&quot;VCXMLDataGeneratorTool&quot;
+                        /&gt;
+                        &lt;Tool
+                                Name=&quot;VCWebServiceProxyGeneratorTool&quot;
+                        /&gt;
+                        &lt;Tool
+                                Name=&quot;VCMIDLTool&quot;
+                                TargetEnvironment=&quot;3&quot;
+                        /&gt;
+                        &lt;Tool
+                                Name=&quot;VCCLCompilerTool&quot;
+                                AdditionalIncludeDirectories=&quot;&quot;
+                                UsePrecompiledHeader=&quot;0&quot;
+                        /&gt;
+                        &lt;Tool
+                                Name=&quot;VCManagedResourceCompilerTool&quot;
+                        /&gt;
+                        &lt;Tool
+                                Name=&quot;VCResourceCompilerTool&quot;
+                        /&gt;
+                        &lt;Tool
+                                Name=&quot;VCPreLinkEventTool&quot;
+                        /&gt;
+                        &lt;Tool
+                                Name=&quot;VCLinkerTool&quot;
+                                OutputFile=&quot;$(SolutionDir)$(PlatformName)\$(ConfigurationName)/mod/$(ProjectName).dll&quot;
+                                AdditionalLibraryDirectories=&quot;&quot;
+                                RandomizedBaseAddress=&quot;1&quot;
+                                DataExecutionPrevention=&quot;0&quot;
+                                TargetMachine=&quot;17&quot;
+                        /&gt;
+                        &lt;Tool
+                                Name=&quot;VCALinkTool&quot;
+                        /&gt;
+                        &lt;Tool
+                                Name=&quot;VCManifestTool&quot;
+                        /&gt;
+                        &lt;Tool
+                                Name=&quot;VCXDCMakeTool&quot;
+                        /&gt;
+                        &lt;Tool
+                                Name=&quot;VCBscMakeTool&quot;
+                        /&gt;
+                        &lt;Tool
+                                Name=&quot;VCFxCopTool&quot;
+                        /&gt;
+                        &lt;Tool
+                                Name=&quot;VCAppVerifierTool&quot;
+                        /&gt;
+                        &lt;Tool
+                                Name=&quot;VCPostBuildEventTool&quot;
+                        /&gt;
+                &lt;/Configuration&gt;
+        &lt;/Configurations&gt;
+        &lt;References&gt;
+        &lt;/References&gt;
+        &lt;Files&gt;
+                &lt;File
+                        RelativePath=&quot;.\mod_xml_cdr.c&quot;
+                        &gt;
+                &lt;/File&gt;
+        &lt;/Files&gt;
+        &lt;Globals&gt;
+        &lt;/Globals&gt;
+&lt;/VisualStudioProject&gt;
</ins></span></pre></div>
<a id="freeswitchbranchescseketsrcmodevent_handlersmod_json_cdrmod_json_cdrcfromrev16806freeswitchbranchescseketsrcmodxml_intmod_xml_cdrmod_xml_cdrc"></a>
<div class="copfile"><h4>Copied: freeswitch/branches/cseket/src/mod/event_handlers/mod_json_cdr/mod_json_cdr.c (from rev 16806, freeswitch/branches/cseket/src/mod/xml_int/mod_xml_cdr/mod_xml_cdr.c) (0 => 16807)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/cseket/src/mod/event_handlers/mod_json_cdr/mod_json_cdr.c                                (rev 0)
+++ freeswitch/branches/cseket/src/mod/event_handlers/mod_json_cdr/mod_json_cdr.c        2010-02-25 08:13:42 UTC (rev 16807)
</span><span class="lines">@@ -0,0 +1,1060 @@
</span><ins>+/* 
+ * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
+ * Copyright (C) 2005-2010, Anthony Minessale II &lt;anthm@freeswitch.org&gt;
+ *
+ * Version: MPL 1.1
+ *
+ * The contents of this file are subject to the Mozilla Public License Version
+ * 1.1 (the &quot;License&quot;); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ * http://www.mozilla.org/MPL/
+ *
+ * Software distributed under the License is distributed on an &quot;AS IS&quot; basis,
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+ * for the specific language governing rights and limitations under the
+ * License.
+ *
+ * The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
+ *
+ * The Initial Developer of the Original Code is
+ * Anthony Minessale II &lt;anthm@freeswitch.org&gt;
+ * Portions created by the Initial Developer are Copyright (C)
+ * the Initial Developer. All Rights Reserved.
+ *
+ * Contributor(s):
+ * 
+ * Brian West &lt;brian@freeswitch.org&gt;
+ * Bret McDanel &lt;trixter AT 0xdecafbad.com&gt;
+ * Justin Cassidy &lt;xachenant@hotmail.com&gt;
+ *
+ * mod_xml_cdr.c -- XML CDR Module to files or curl
+ *
+ */
+#include &lt;sys/stat.h&gt;
+#include &lt;switch.h&gt;
+#include &lt;curl/curl.h&gt;
+#include &lt;json.h&gt;
+
+#define MAX_URLS 20
+
+#define ENCODING_NONE 0
+#define ENCODING_DEFAULT 1
+#define ENCODING_BASE64 2
+#define ENCODING_TEXTXML 2
+
+static struct {
+        char *cred;
+        char *urls[MAX_URLS + 1];
+        int url_count;
+        int url_index;
+        switch_thread_rwlock_t *log_path_lock;
+        char *base_log_dir;
+        char *base_err_log_dir;
+        char *log_dir;
+        char *err_log_dir;
+        uint32_t delay;
+        uint32_t retries;
+        uint32_t shutdown;
+        uint32_t enable_cacert_check;
+        char *ssl_cert_file;
+        char *ssl_key_file;
+        char *ssl_key_password;
+        char *ssl_version;
+        char *ssl_cacert_file;
+        uint32_t enable_ssl_verifyhost;
+        int encode;
+        int log_http_and_disk;
+        int log_b;
+        int prefix_a;
+        int disable100continue;
+        int rotate;
+        int auth_scheme;
+        int json;
+        switch_memory_pool_t *pool;
+} globals;
+
+SWITCH_MODULE_LOAD_FUNCTION(mod_xml_cdr_load);
+SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_xml_cdr_shutdown);
+SWITCH_MODULE_DEFINITION(mod_xml_cdr, mod_xml_cdr_load, mod_xml_cdr_shutdown, NULL);
+
+/* this function would have access to the HTML returned by the webserver, we don't need it 
+ * and the default curl activity is to print to stdout, something not as desirable
+ * so we have a dummy function here
+ */
+static size_t httpCallBack(char *buffer, size_t size, size_t nitems, void *outstream)
+{
+        return size * nitems;
+}
+
+static switch_status_t set_xml_cdr_log_dirs()
+{
+        switch_time_exp_t tm;
+        char *path = NULL;
+        char date[80] = &quot;&quot;;
+        switch_size_t retsize;
+        switch_status_t status = SWITCH_STATUS_SUCCESS, dir_status;
+
+        switch_time_exp_lt(&amp;tm, switch_micro_time_now());
+        switch_strftime_nocheck(date, &amp;retsize, sizeof(date), &quot;%Y-%m-%d-%H-%M-%S&quot;, &amp;tm);
+
+        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, &quot;Rotating log file paths\n&quot;);
+
+        if (!zstr(globals.base_log_dir)) {
+                if (globals.rotate) {
+                        if ((path = switch_mprintf(&quot;%s%s%s&quot;, globals.base_log_dir, SWITCH_PATH_SEPARATOR, date))) {
+                                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, &quot;Rotating log file path to %s\n&quot;, path);
+
+                                dir_status = SWITCH_STATUS_SUCCESS;
+                                if (switch_directory_exists(path, globals.pool) != SWITCH_STATUS_SUCCESS) {
+                                        dir_status = switch_dir_make(path, SWITCH_FPROT_OS_DEFAULT, globals.pool);
+                                }
+
+                                if (dir_status == SWITCH_STATUS_SUCCESS) {
+                                        switch_thread_rwlock_wrlock(globals.log_path_lock);
+                                        switch_safe_free(globals.log_dir);
+                                        globals.log_dir = path;
+                                        switch_thread_rwlock_unlock(globals.log_path_lock);
+                                } else {
+                                        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, &quot;Failed to create new mod_xml_cdr log_dir path\n&quot;);
+                                        switch_safe_free(path);
+                                        status = SWITCH_STATUS_FALSE;
+                                }
+                        } else {
+                                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, &quot;Failed to generate new mod_xml_cdr log_dir path\n&quot;);
+                                status = SWITCH_STATUS_FALSE;
+                        }
+                } else {
+                        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, &quot;Setting log file path to %s\n&quot;, globals.base_log_dir);
+                        if ((path = switch_safe_strdup(globals.base_log_dir))) {
+                                switch_thread_rwlock_wrlock(globals.log_path_lock);
+                                switch_safe_free(globals.log_dir);
+                                globals.log_dir = path;
+                                switch_thread_rwlock_unlock(globals.log_path_lock);
+                        } else {
+                                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, &quot;Failed to set log_dir path\n&quot;);
+                                status = SWITCH_STATUS_FALSE;
+                        }
+                }
+        }
+
+        if (!zstr(globals.base_err_log_dir)) {
+                if (globals.rotate) {
+                        if ((path = switch_mprintf(&quot;%s%s%s&quot;, globals.base_err_log_dir, SWITCH_PATH_SEPARATOR, date))) {
+                                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, &quot;Rotating err log file path to %s\n&quot;, path);
+
+                                dir_status = SWITCH_STATUS_SUCCESS;
+                                if (switch_directory_exists(path, globals.pool) != SWITCH_STATUS_SUCCESS) {
+                                        dir_status = switch_dir_make(path, SWITCH_FPROT_OS_DEFAULT, globals.pool);
+                                }
+
+                                if (dir_status == SWITCH_STATUS_SUCCESS) {
+                                        switch_thread_rwlock_wrlock(globals.log_path_lock);
+                                        switch_safe_free(globals.err_log_dir);
+                                        globals.err_log_dir = path;
+                                        switch_thread_rwlock_unlock(globals.log_path_lock);
+                                } else {
+                                        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, &quot;Failed to create new mod_xml_cdr err_log_dir path\n&quot;);
+                                        switch_safe_free(path);
+                                        status = SWITCH_STATUS_FALSE;
+                                }
+                        } else {
+                                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, &quot;Failed to generate new mod_xml_cdr err_log_dir path\n&quot;);
+                                status = SWITCH_STATUS_FALSE;
+                        }
+                } else {
+                        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, &quot;Setting err log file path to %s\n&quot;, globals.base_err_log_dir);
+                        if ((path = switch_safe_strdup(globals.base_err_log_dir))) {
+                                switch_thread_rwlock_wrlock(globals.log_path_lock);
+                                switch_safe_free(globals.err_log_dir);
+                                globals.err_log_dir = path;
+                                switch_thread_rwlock_unlock(globals.log_path_lock);
+                        } else {
+                                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, &quot;Failed to set err_log_dir path\n&quot;);
+                                status = SWITCH_STATUS_FALSE;
+                        }
+                }
+        }
+
+        return status;
+}
+
+#define JSON_ENSURE_SUCCESS(obj) if (is_error(obj)) { return; }
+SWITCH_DECLARE(void) set_json_profile_data(struct json_object *json, switch_caller_profile_t *caller_profile)
+{
+        struct json_object *param = NULL;
+
+        param = json_object_new_string((char *)caller_profile-&gt;username);
+        JSON_ENSURE_SUCCESS(param);
+        json_object_object_add(json, &quot;username&quot;, param);
+
+        param = json_object_new_string((char *)caller_profile-&gt;dialplan);
+        JSON_ENSURE_SUCCESS(param);
+        json_object_object_add(json, &quot;dialplan&quot;, param);
+
+        param = json_object_new_string((char *)caller_profile-&gt;caller_id_name);
+        JSON_ENSURE_SUCCESS(param);
+        json_object_object_add(json, &quot;caller_id_name&quot;, param);
+
+        param = json_object_new_string((char *)caller_profile-&gt;ani);
+        JSON_ENSURE_SUCCESS(param);
+        json_object_object_add(json, &quot;ani&quot;, param);
+
+        param = json_object_new_string((char *)caller_profile-&gt;aniii);
+        JSON_ENSURE_SUCCESS(param);
+        json_object_object_add(json, &quot;aniii&quot;, param);
+
+        param = json_object_new_string((char *)caller_profile-&gt;caller_id_number);
+        JSON_ENSURE_SUCCESS(param);
+        json_object_object_add(json, &quot;caller_id_number&quot;, param);
+
+        param = json_object_new_string((char *)caller_profile-&gt;network_addr);
+        JSON_ENSURE_SUCCESS(param);
+        json_object_object_add(json, &quot;network_addr&quot;, param);
+
+        param = json_object_new_string((char *)caller_profile-&gt;rdnis);
+        JSON_ENSURE_SUCCESS(param);
+        json_object_object_add(json, &quot;rdnis&quot;, param);
+
+        param = json_object_new_string(caller_profile-&gt;destination_number);
+        JSON_ENSURE_SUCCESS(param);
+        json_object_object_add(json, &quot;destination_number&quot;, param);
+
+        param = json_object_new_string(caller_profile-&gt;uuid);
+        JSON_ENSURE_SUCCESS(param);
+        json_object_object_add(json, &quot;uuid&quot;, param);
+
+        param = json_object_new_string((char *)caller_profile-&gt;source);
+        JSON_ENSURE_SUCCESS(param);
+        json_object_object_add(json, &quot;source&quot;, param);
+
+        param = json_object_new_string((char *)caller_profile-&gt;context);
+        JSON_ENSURE_SUCCESS(param);
+        json_object_object_add(json, &quot;context&quot;, param);
+
+        param = json_object_new_string(caller_profile-&gt;chan_name);
+        JSON_ENSURE_SUCCESS(param);
+        json_object_object_add(json, &quot;chan_name&quot;, param);
+
+}
+
+SWITCH_DECLARE(void) set_json_chan_vars(struct json_object *json, switch_channel_t *channel)
+{
+        struct json_object *variable = NULL;
+        switch_event_header_t *hi = switch_channel_variable_first(channel);
+
+        if (!hi)
+                return;
+
+        for (; hi; hi = hi-&gt;next) {
+                if (!zstr(hi-&gt;name) &amp;&amp; !zstr(hi-&gt;value)) {
+                        char *data;
+                        switch_size_t dlen = strlen(hi-&gt;value) * 3;
+
+                        if ((data = malloc(dlen))) {
+                                memset(data, 0, dlen);
+                                switch_url_encode(hi-&gt;value, data, dlen);
+
+                                variable = json_object_new_string(data);
+                                if (!is_error(variable)) {
+                                        json_object_object_add(json, hi-&gt;name, variable);
+                                }
+                                free(data);
+                        }
+                }
+        }
+        switch_channel_variable_last(channel);
+
+        return;
+}
+
+
+
+SWITCH_DECLARE(switch_status_t) generate_json_cdr(switch_core_session_t *session, struct json_object **json_cdr)
+{
+
+        struct json_object *cdr = json_object_new_object();
+        switch_channel_t *channel = switch_core_session_get_channel(session);
+        switch_caller_profile_t *caller_profile;
+        struct json_object *variables, *j_main_cp, *j_caller_profile, *j_caller_extension, *j_times, *time_tag,
+                *j_application, *j_callflow, *j_inner_extension, *j_apps, *j_o, *j_channel_data, *j_field;
+        switch_app_log_t *app_log;
+        char tmp[512], *f;
+        
+        if (is_error(cdr)) {
+                return SWITCH_STATUS_FALSE;
+        }
+
+        j_channel_data = json_object_new_object();
+        if (is_error(j_channel_data)) {
+                goto error;
+        }
+        json_object_object_add(cdr, &quot;channel_data&quot;, j_channel_data);
+
+        
+        j_field = json_object_new_string((char *) switch_channel_state_name(switch_channel_get_state(channel)));
+        json_object_object_add(j_channel_data, &quot;state&quot;, j_field);
+
+        j_field = json_object_new_string(switch_channel_direction(channel) == SWITCH_CALL_DIRECTION_OUTBOUND ? &quot;outbound&quot; : &quot;inbound&quot;);
+
+        json_object_object_add(j_channel_data, &quot;direction&quot;, j_field);
+
+
+        switch_snprintf(tmp, sizeof(tmp), &quot;%d&quot;, switch_channel_get_state(channel));
+        j_field = json_object_new_string((char *) tmp);
+        json_object_object_add(j_channel_data, &quot;state_number&quot;, j_field);
+        
+
+        if ((f = switch_channel_get_flag_string(channel))) {
+                j_field = json_object_new_string((char *) f);
+                json_object_object_add(j_channel_data, &quot;flags&quot;, j_field);
+                free(f);
+        }
+
+        if ((f = switch_channel_get_cap_string(channel))) {
+                j_field = json_object_new_string((char *) f);
+                json_object_object_add(j_channel_data, &quot;caps&quot;, j_field);
+                free(f);
+        }
+
+
+        variables = json_object_new_object();
+        json_object_object_add(cdr, &quot;variables&quot;, variables);
+
+        if (is_error(variables)) {
+                goto error;
+        }
+
+        set_json_chan_vars(variables, channel);
+
+
+        if ((app_log = switch_core_session_get_app_log(session))) {
+                switch_app_log_t *ap;
+
+                j_apps = json_object_new_object();
+
+                if (is_error(j_apps)) {
+                        goto error;
+                }
+
+                json_object_object_add(cdr, &quot;app_log&quot;, j_apps);
+
+                for (ap = app_log; ap; ap = ap-&gt;next) {
+                        j_application = json_object_new_object();
+
+                        if (is_error(j_application)) {
+                                goto error;
+                        }
+
+                        json_object_object_add(j_application, &quot;app_name&quot;, json_object_new_string(ap-&gt;app));
+                        json_object_object_add(j_application, &quot;app_data&quot;, json_object_new_string(ap-&gt;arg));
+
+                        json_object_object_add(j_apps, &quot;application&quot;, j_application);
+                }
+        }
+
+
+        caller_profile = switch_channel_get_caller_profile(channel);
+
+        while (caller_profile) {
+
+                j_callflow = json_object_new_object();
+
+                if (is_error(j_callflow)) {
+                        goto error;
+                }
+
+                json_object_object_add(cdr, &quot;callflow&quot;, j_callflow);
+
+                if (!zstr(caller_profile-&gt;dialplan)) {
+                        json_object_object_add(j_callflow, &quot;dialplan&quot;, json_object_new_string((char *)caller_profile-&gt;dialplan));
+                }
+
+                if (!zstr(caller_profile-&gt;profile_index)) {
+                        json_object_object_add(j_callflow, &quot;profile_index&quot;, json_object_new_string((char *)caller_profile-&gt;profile_index));
+                }
+
+                if (caller_profile-&gt;caller_extension) {
+                        switch_caller_application_t *ap;
+
+                        j_caller_extension = json_object_new_object();
+
+                        if (is_error(j_caller_extension)) {
+                                goto error;
+                        }
+
+                        json_object_object_add(j_callflow, &quot;extension&quot;, j_caller_extension);
+
+                        json_object_object_add(j_caller_extension, &quot;name&quot;, json_object_new_string(caller_profile-&gt;caller_extension-&gt;extension_name));
+                        json_object_object_add(j_caller_extension, &quot;number&quot;, json_object_new_string(caller_profile-&gt;caller_extension-&gt;extension_number));
+
+                        if (caller_profile-&gt;caller_extension-&gt;current_application) {
+                                json_object_object_add(j_caller_extension, &quot;current_app&quot;, json_object_new_string(caller_profile-&gt;caller_extension-&gt;current_application-&gt;application_name));
+                        }
+
+                        for (ap = caller_profile-&gt;caller_extension-&gt;applications; ap; ap = ap-&gt;next) {
+                                j_application = json_object_new_object();
+
+                                if (is_error(j_application)) {
+                                        goto error;
+                                }
+
+
+                                json_object_object_add(j_caller_extension, &quot;application&quot;, j_application);
+
+                                if (ap == caller_profile-&gt;caller_extension-&gt;current_application) {
+                                        json_object_object_add(j_application, &quot;last_executed&quot;, json_object_new_string(&quot;true&quot;));
+                                }
+                                json_object_object_add(j_application, &quot;app_name&quot;, json_object_new_string(ap-&gt;application_name));
+                                json_object_object_add(j_application, &quot;app_data&quot;, json_object_new_string(ap-&gt;application_data));
+                        }
+
+                        if (caller_profile-&gt;caller_extension-&gt;children) {
+                                switch_caller_profile_t *cp = NULL;
+                                for (cp = caller_profile-&gt;caller_extension-&gt;children; cp; cp = cp-&gt;next) {
+
+                                        if (!cp-&gt;caller_extension) {
+                                                continue;
+                                        }
+
+                                        j_inner_extension = json_object_new_object();
+                                        if (is_error(j_inner_extension)) {
+                                                goto error;
+                                        }
+
+                                        json_object_object_add(j_caller_extension, &quot;sub_extensions&quot;, j_inner_extension);
+
+
+                                        j_caller_extension = json_object_new_object();
+                                        if (is_error(j_caller_extension)) {
+                                                goto error;
+                                        }
+
+                                        json_object_object_add(j_inner_extension, &quot;extension&quot;, j_caller_extension);
+
+                                        json_object_object_add(j_caller_extension, &quot;name&quot;, json_object_new_string(cp-&gt;caller_extension-&gt;extension_name));
+                                        json_object_object_add(j_caller_extension, &quot;number&quot;, json_object_new_string(cp-&gt;caller_extension-&gt;extension_number));
+
+                                        json_object_object_add(j_caller_extension, &quot;dialplan&quot;, json_object_new_string((char *)cp-&gt;dialplan));
+
+                                        if (cp-&gt;caller_extension-&gt;current_application) {
+                                                json_object_object_add(j_caller_extension, &quot;current_app&quot;, json_object_new_string(cp-&gt;caller_extension-&gt;current_application-&gt;application_name));
+                                        }
+
+                                        for (ap = cp-&gt;caller_extension-&gt;applications; ap; ap = ap-&gt;next) {
+                                                j_application = json_object_new_object();
+                                                
+                                                if (is_error(j_application)) {
+                                                        goto error;
+                                                }
+                                                json_object_object_add(j_caller_extension, &quot;application&quot;, j_application);
+
+                                                if (ap == cp-&gt;caller_extension-&gt;current_application) {
+                                                        json_object_object_add(j_application, &quot;last_executed&quot;, json_object_new_string(&quot;true&quot;));
+                                                }
+                                                json_object_object_add(j_application, &quot;app_name&quot;, json_object_new_string(ap-&gt;application_name));
+                                                json_object_object_add(j_application, &quot;app_data&quot;, json_object_new_string(ap-&gt;application_data));
+                                        }
+                                }
+                        }
+                }
+
+                j_main_cp = json_object_new_object();
+                if (is_error(j_main_cp)) {
+                        goto error;
+                }
+
+                json_object_object_add(j_callflow, &quot;caller_profile&quot;, j_main_cp);
+
+                set_json_profile_data(j_main_cp, caller_profile);
+
+                if (caller_profile-&gt;originator_caller_profile) {
+                        switch_caller_profile_t *cp = NULL;
+
+                        j_o = json_object_new_object();
+                        if (is_error(j_o)) {
+                                goto error;
+                        }
+                        
+                        json_object_object_add(j_main_cp, &quot;originator&quot;, j_o);
+
+                        for (cp = caller_profile-&gt;originator_caller_profile; cp; cp = cp-&gt;next) {
+                                j_caller_profile = json_object_new_object();
+                                if (is_error(j_caller_profile)) {
+                                        goto error;
+                                }
+
+                                json_object_object_add(j_o, &quot;originator_caller_profile&quot;, j_caller_profile);
+
+                                set_json_profile_data(j_caller_profile, cp);
+                        }
+                }
+
+                if (caller_profile-&gt;originatee_caller_profile) {
+                        switch_caller_profile_t *cp = NULL;
+
+                        j_o = json_object_new_object();
+                        if (is_error(j_o)) {
+                                goto error;
+                        }
+
+                        json_object_object_add(j_main_cp, &quot;originatee&quot;, j_o);
+
+                        for (cp = caller_profile-&gt;originatee_caller_profile; cp; cp = cp-&gt;next) {
+
+                                j_caller_profile = json_object_new_object();
+                                if (is_error(j_caller_profile)) {
+                                        goto error;
+                                }
+                                
+                                json_object_object_add(j_o, &quot;originatee_caller_profile&quot;, j_caller_profile);
+                                set_json_profile_data(j_caller_profile, cp);
+                        }
+                }
+
+                if (caller_profile-&gt;times) {
+
+                        j_times = json_object_new_object();
+                        if (is_error(j_times)) {
+                                goto error;
+                        }
+
+                        json_object_object_add(j_callflow, &quot;times&quot;, j_times);
+
+                        switch_snprintf(tmp, sizeof(tmp), &quot;%&quot; SWITCH_TIME_T_FMT, caller_profile-&gt;times-&gt;created);
+                        time_tag = json_object_new_string(tmp);
+                        if (is_error(time_tag)) {
+                                goto error;
+                        }
+                        json_object_object_add(j_times, &quot;created_time&quot;, time_tag);
+
+                        switch_snprintf(tmp, sizeof(tmp), &quot;%&quot; SWITCH_TIME_T_FMT, caller_profile-&gt;times-&gt;profile_created);
+                        time_tag = json_object_new_string(tmp);
+                        if (is_error(time_tag)) {
+                                goto error;
+                        }
+                        json_object_object_add(j_times, &quot;profile_created_time&quot;, time_tag);
+
+                        switch_snprintf(tmp, sizeof(tmp), &quot;%&quot; SWITCH_TIME_T_FMT, caller_profile-&gt;times-&gt;progress);
+                        time_tag = json_object_new_string(tmp);
+                        if (is_error(time_tag)) {
+                                goto error;
+                        }
+                        json_object_object_add(j_times, &quot;progress_time&quot;, time_tag);
+
+                        switch_snprintf(tmp, sizeof(tmp), &quot;%&quot; SWITCH_TIME_T_FMT, caller_profile-&gt;times-&gt;progress_media);
+                        time_tag = json_object_new_string(tmp);
+                        if (is_error(time_tag)) {
+                                goto error;
+                        }
+                        json_object_object_add(j_times, &quot;progress_media_time&quot;, time_tag);
+
+
+                        switch_snprintf(tmp, sizeof(tmp), &quot;%&quot; SWITCH_TIME_T_FMT, caller_profile-&gt;times-&gt;answered);
+                        time_tag = json_object_new_string(tmp);
+                        if (is_error(time_tag)) {
+                                goto error;
+                        }
+                        json_object_object_add(j_times, &quot;answered_time&quot;, time_tag);
+
+                        switch_snprintf(tmp, sizeof(tmp), &quot;%&quot; SWITCH_TIME_T_FMT, caller_profile-&gt;times-&gt;hungup);
+                        time_tag = json_object_new_string(tmp);
+                        if (is_error(time_tag)) {
+                                goto error;
+                        }
+                        json_object_object_add(j_times, &quot;hangup_time&quot;, time_tag);
+
+                        switch_snprintf(tmp, sizeof(tmp), &quot;%&quot; SWITCH_TIME_T_FMT, caller_profile-&gt;times-&gt;resurrected);
+                        time_tag = json_object_new_string(tmp);
+                        if (is_error(time_tag)) {
+                                goto error;
+                        }
+                        json_object_object_add(j_times, &quot;resurrect_time&quot;, time_tag);
+
+                        switch_snprintf(tmp, sizeof(tmp), &quot;%&quot; SWITCH_TIME_T_FMT, caller_profile-&gt;times-&gt;transferred);
+                        time_tag = json_object_new_string(tmp);
+                        if (is_error(time_tag)) {
+                                goto error;
+                        }
+                        json_object_object_add(j_times, &quot;transfer_time&quot;, time_tag);
+
+                }
+
+                caller_profile = caller_profile-&gt;next;
+        }
+
+        *json_cdr = cdr;
+
+        return SWITCH_STATUS_SUCCESS;
+        
+  error:
+
+        if (cdr) {
+                json_object_put(cdr);
+        }
+
+        return SWITCH_STATUS_FALSE;
+}
+
+
+static switch_status_t my_on_reporting(switch_core_session_t *session)
+{
+        switch_xml_t cdr = NULL;
+        char *xml_text = NULL;
+        char *path = NULL;
+        char *curl_xml_text = NULL;
+        const char *logdir = NULL;
+        char *xml_text_escaped = NULL;
+        int fd = -1;
+        uint32_t cur_try;
+        long httpRes;
+        CURL *curl_handle = NULL;
+        struct curl_slist *headers = NULL;
+        struct curl_slist *slist = NULL;
+        switch_channel_t *channel = switch_core_session_get_channel(session);
+        switch_status_t status = SWITCH_STATUS_FALSE;
+        int is_b;
+        const char *a_prefix = &quot;&quot;;
+        struct json_object *json_cdr = NULL;
+
+        if (globals.shutdown) {
+                return SWITCH_STATUS_SUCCESS;
+        }
+
+        is_b = channel &amp;&amp; switch_channel_get_originator_caller_profile(channel);
+        if (!globals.log_b &amp;&amp; is_b) {
+                return SWITCH_STATUS_SUCCESS;
+        }
+        if (!is_b &amp;&amp; globals.prefix_a)
+                a_prefix = &quot;a_&quot;;
+
+        if (globals.json) {
+                if (generate_json_cdr(session, &amp;json_cdr) != SWITCH_STATUS_SUCCESS) {
+                        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, &quot;Error Generating Data!\n&quot;);
+                        return SWITCH_STATUS_FALSE;
+                }
+
+                xml_text = json_object_to_json_string(json_cdr);
+        }
+        else {
+                if (switch_ivr_generate_xml_cdr(session, &amp;cdr) != SWITCH_STATUS_SUCCESS) {
+                        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, &quot;Error Generating Data!\n&quot;);
+                        return SWITCH_STATUS_FALSE;
+                }
+
+                /* build the XML */
+                xml_text = switch_xml_toxml(cdr, SWITCH_TRUE);
+        }
+        if (!xml_text) {
+                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, &quot;Memory Error!\n&quot;);
+                goto error;
+        }
+
+        switch_thread_rwlock_rdlock(globals.log_path_lock);
+
+        if (!(logdir = switch_channel_get_variable(channel, &quot;xml_cdr_base&quot;))) {
+                logdir = globals.log_dir;
+        }
+
+        if (!zstr(logdir) &amp;&amp; (globals.log_http_and_disk || !globals.url_count)) {
+                path = switch_mprintf(&quot;%s%s%s%s.cdr.xml&quot;, logdir, SWITCH_PATH_SEPARATOR, a_prefix, switch_core_session_get_uuid(session));
+                switch_thread_rwlock_unlock(globals.log_path_lock);
+                if (path) {
+#ifdef _MSC_VER
+                        if ((fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR)) &gt; -1) {
+#else
+                        if ((fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH)) &gt; -1) {
+#endif
+                                int wrote;
+                                wrote = write(fd, xml_text, (unsigned) strlen(xml_text));
+                                close(fd);
+                                fd = -1;
+                        } else {
+                                char ebuf[512] = { 0 };
+#ifdef WIN32
+                                strerror_s(ebuf, sizeof(ebuf), errno);
+#else
+                                strerror_r(errno, ebuf, sizeof(ebuf));
+#endif
+                                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, &quot;Error writing [%s][%s]\n&quot;, path, ebuf);
+                        }
+                        switch_safe_free(path);
+                }
+        } else {
+                switch_thread_rwlock_unlock(globals.log_path_lock);
+        }
+
+        /* try to post it to the web server */
+        if (globals.url_count) {
+                char *destUrl = NULL;
+                curl_handle = curl_easy_init();
+
+                if (globals.encode == ENCODING_TEXTXML) {
+                        headers = curl_slist_append(headers, &quot;Content-Type: text/xml&quot;);
+                } else if (globals.encode) {
+                        switch_size_t need_bytes = strlen(xml_text) * 3;
+
+                        xml_text_escaped = malloc(need_bytes);
+                        switch_assert(xml_text_escaped);
+                        memset(xml_text_escaped, 0, need_bytes);
+                        if (globals.encode == ENCODING_DEFAULT) {
+                                headers = curl_slist_append(headers, &quot;Content-Type: application/x-www-form-urlencoded&quot;);
+                                switch_url_encode(xml_text, xml_text_escaped, need_bytes);
+                        } else {
+                                headers = curl_slist_append(headers, &quot;Content-Type: application/x-www-form-base64-encoded&quot;);
+                                switch_b64_encode((unsigned char *) xml_text, need_bytes / 3, (unsigned char *) xml_text_escaped, need_bytes);
+                        }
+                        if (!json_cdr) {
+                                switch_safe_free(xml_text);
+                        }
+
+                        xml_text = xml_text_escaped;
+                } else {
+                        headers = curl_slist_append(headers, &quot;Content-Type: application/x-www-form-plaintext&quot;);
+                }
+
+                if (globals.encode == ENCODING_TEXTXML) {
+                        curl_xml_text = xml_text;
+                } else if (!(curl_xml_text = switch_mprintf(&quot;cdr=%s&quot;, xml_text))) {
+                        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, &quot;Memory Error!\n&quot;);
+                        goto error;
+                }
+
+                if (!zstr(globals.cred)) {
+                        curl_easy_setopt(curl_handle, CURLOPT_HTTPAUTH, globals.auth_scheme);
+                        curl_easy_setopt(curl_handle, CURLOPT_USERPWD, globals.cred);
+                }
+
+                curl_easy_setopt(curl_handle, CURLOPT_HTTPHEADER, headers);
+                curl_easy_setopt(curl_handle, CURLOPT_POST, 1);
+                curl_easy_setopt(curl_handle, CURLOPT_POSTFIELDS, curl_xml_text);
+                curl_easy_setopt(curl_handle, CURLOPT_USERAGENT, &quot;freeswitch-xml/1.0&quot;);
+                curl_easy_setopt(curl_handle, CURLOPT_WRITEFUNCTION, httpCallBack);
+
+                if (globals.disable100continue) {
+                        slist = curl_slist_append(slist, &quot;Expect:&quot;);
+                        curl_easy_setopt(curl_handle, CURLOPT_HTTPHEADER, slist);
+                }
+
+                if (globals.ssl_cert_file) {
+                        curl_easy_setopt(curl_handle, CURLOPT_SSLCERT, globals.ssl_cert_file);
+                }
+
+                if (globals.ssl_key_file) {
+                        curl_easy_setopt(curl_handle, CURLOPT_SSLKEY, globals.ssl_key_file);
+                }
+
+                if (globals.ssl_key_password) {
+                        curl_easy_setopt(curl_handle, CURLOPT_SSLKEYPASSWD, globals.ssl_key_password);
+                }
+
+                if (globals.ssl_version) {
+                        if (!strcasecmp(globals.ssl_version, &quot;SSLv3&quot;)) {
+                                curl_easy_setopt(curl_handle, CURLOPT_SSLVERSION, CURL_SSLVERSION_SSLv3);
+                        } else if (!strcasecmp(globals.ssl_version, &quot;TLSv1&quot;)) {
+                                curl_easy_setopt(curl_handle, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1);
+                        }
+                }
+
+                if (globals.ssl_cacert_file) {
+                        curl_easy_setopt(curl_handle, CURLOPT_CAINFO, globals.ssl_cacert_file);
+                }
+
+                /* these were used for testing, optionally they may be enabled if someone desires
+                   curl_easy_setopt(curl_handle, CURLOPT_TIMEOUT, 120); // tcp timeout
+                   curl_easy_setopt(curl_handle, CURLOPT_FOLLOWLOCATION, 1); // 302 recursion level
+                 */
+
+                for (cur_try = 0; cur_try &lt; globals.retries; cur_try++) {
+                        if (cur_try &gt; 0) {
+                                switch_yield(globals.delay * 1000000);
+                        }
+
+                        destUrl = switch_mprintf(&quot;%s?uuid=%s&quot;, globals.urls[globals.url_index], switch_core_session_get_uuid(session));
+                        curl_easy_setopt(curl_handle, CURLOPT_URL, destUrl);
+
+                        if (!strncasecmp(destUrl, &quot;https&quot;, 5)) {
+                                curl_easy_setopt(curl_handle, CURLOPT_SSL_VERIFYPEER, 0);
+                                curl_easy_setopt(curl_handle, CURLOPT_SSL_VERIFYHOST, 0);
+                        }
+
+                        if (globals.enable_cacert_check) {
+                                curl_easy_setopt(curl_handle, CURLOPT_SSL_VERIFYPEER, TRUE);
+                        }
+
+                        if (globals.enable_ssl_verifyhost) {
+                                curl_easy_setopt(curl_handle, CURLOPT_SSL_VERIFYHOST, 2);
+                        }
+
+                        curl_easy_perform(curl_handle);
+                        curl_easy_getinfo(curl_handle, CURLINFO_RESPONSE_CODE, &amp;httpRes);
+                        switch_safe_free(destUrl);
+                        if (httpRes == 200) {
+                                goto success;
+                        } else {
+                                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, &quot;Got error [%ld] posting to web server [%s]\n&quot;,
+                                                                  httpRes, globals.urls[globals.url_index]);
+                                globals.url_index++;
+                                switch_assert(globals.url_count &lt;= MAX_URLS);
+                                if (globals.url_index &gt;= globals.url_count) {
+                                        globals.url_index = 0;
+                                }
+                                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, &quot;Retry will be with url [%s]\n&quot;, globals.urls[globals.url_index]);
+                        }
+                }
+                curl_easy_cleanup(curl_handle);
+                curl_slist_free_all(headers);
+                curl_slist_free_all(slist);
+                slist = NULL;
+                headers = NULL;
+                curl_handle = NULL;
+
+                /* if we are here the web post failed for some reason */
+                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, &quot;Unable to post to web server, writing to file\n&quot;);
+
+                switch_thread_rwlock_rdlock(globals.log_path_lock);
+                path = switch_mprintf(&quot;%s%s%s%s.cdr.xml&quot;, globals.err_log_dir, SWITCH_PATH_SEPARATOR, a_prefix, switch_core_session_get_uuid(session));
+                switch_thread_rwlock_unlock(globals.log_path_lock);
+                if (path) {
+#ifdef _MSC_VER
+                        if ((fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR)) &gt; -1) {
+#else
+                        if ((fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH)) &gt; -1) {
+#endif
+                                int wrote;
+                                wrote = write(fd, xml_text, (unsigned) strlen(xml_text));
+                                close(fd);
+                                fd = -1;
+                        } else {
+                                char ebuf[512] = { 0 };
+#ifdef WIN32
+                                strerror_s(ebuf, sizeof(ebuf), errno);
+#else
+                                strerror_r(errno, ebuf, sizeof(ebuf));
+#endif
+                                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, &quot;Error![%s]\n&quot;, ebuf);
+                        }
+                }
+        }
+
+  success:
+        status = SWITCH_STATUS_SUCCESS;
+
+  error:
+        if (curl_handle) {
+                curl_easy_cleanup(curl_handle);
+        }
+        if (headers) {
+                curl_slist_free_all(headers);
+        }
+        if (slist) {
+                curl_slist_free_all(slist);
+        }
+        if (curl_xml_text != xml_text) {
+                switch_safe_free(curl_xml_text);
+        }
+        
+        if (json_cdr) {
+                json_object_put(json_cdr);
+                switch_safe_free(xml_text_escaped);
+        } else {
+                switch_safe_free(xml_text);
+        }
+
+        switch_safe_free(path);
+        switch_xml_free(cdr);
+
+        return status;
+}
+
+static void event_handler(switch_event_t *event)
+{
+        const char *sig = switch_event_get_header(event, &quot;Trapped-Signal&quot;);
+
+        if (sig &amp;&amp; !strcmp(sig, &quot;HUP&quot;)) {
+                if (globals.rotate) {
+                        set_xml_cdr_log_dirs();
+                }
+        }
+}
+
+static switch_state_handler_table_t state_handlers = {
+        /*.on_init */ NULL,
+        /*.on_routing */ NULL,
+        /*.on_execute */ NULL,
+        /*.on_hangup */ NULL,
+        /*.on_exchange_media */ NULL,
+        /*.on_soft_execute */ NULL,
+        /*.on_consume_media */ NULL,
+        /*.on_hibernate */ NULL,
+        /*.on_reset */ NULL,
+        /*.on_park */ NULL,
+        /*.on_reporting */ my_on_reporting
+};
+
+SWITCH_MODULE_LOAD_FUNCTION(mod_xml_cdr_load)
+{
+        char *cf = &quot;xml_cdr.conf&quot;;
+        switch_xml_t cfg, xml, settings, param;
+        switch_status_t status = SWITCH_STATUS_SUCCESS;
+
+        /* test global state handlers */
+        switch_core_add_state_handler(&amp;state_handlers);
+
+        *module_interface = switch_loadable_module_create_module_interface(pool, modname);
+
+        if (switch_event_bind(modname, SWITCH_EVENT_TRAP, SWITCH_EVENT_SUBCLASS_ANY, event_handler, NULL) != SWITCH_STATUS_SUCCESS) {
+                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, &quot;Couldn't bind!\n&quot;);
+                return SWITCH_STATUS_GENERR;
+        }
+
+        memset(&amp;globals, 0, sizeof(globals));
+        globals.log_http_and_disk = 0;
+        globals.log_b = 1;
+        globals.disable100continue = 0;
+        globals.pool = pool;
+        globals.auth_scheme = CURLAUTH_BASIC;
+
+        switch_thread_rwlock_create(&amp;globals.log_path_lock, pool);
+
+        /* parse the config */
+        if (!(xml = switch_xml_open_cfg(cf, &amp;cfg, NULL))) {
+                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, &quot;Open of %s failed\n&quot;, cf);
+                return SWITCH_STATUS_TERM;
+        }
+
+        if ((settings = switch_xml_child(cfg, &quot;settings&quot;))) {
+                for (param = switch_xml_child(settings, &quot;param&quot;); param; param = param-&gt;next) {
+                        char *var = (char *) switch_xml_attr_soft(param, &quot;name&quot;);
+                        char *val = (char *) switch_xml_attr_soft(param, &quot;value&quot;);
+
+                        if (!strcasecmp(var, &quot;cred&quot;) &amp;&amp; !zstr(val)) {
+                                globals.cred = switch_core_strdup(globals.pool, val);
+                        } else if (!strcasecmp(var, &quot;url&quot;) &amp;&amp; !zstr(val)) {
+                                if (globals.url_count &gt;= MAX_URLS) {
+                                        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, &quot;maximum urls configured!\n&quot;);
+                                } else {
+                                        globals.urls[globals.url_count++] = switch_core_strdup(globals.pool, val);
+                                }
+                        } else if (!strcasecmp(var, &quot;log-http-and-disk&quot;)) {
+                                globals.log_http_and_disk = switch_true(val);
+                        } else if (!strcasecmp(var, &quot;delay&quot;) &amp;&amp; !zstr(val)) {
+                                globals.delay = (uint32_t) atoi(val);
+                        } else if (!strcasecmp(var, &quot;log-b-leg&quot;)) {
+                                globals.log_b = switch_true(val);
+                        } else if (!strcasecmp(var, &quot;prefix-a-leg&quot;)) {
+                                globals.prefix_a = switch_true(val);
+                        } else if (!strcasecmp(var, &quot;disable-100-continue&quot;) &amp;&amp; switch_true(val)) {
+                                globals.disable100continue = 1;
+                        } else if (!strcasecmp(var, &quot;encode&quot;) &amp;&amp; !zstr(val)) {
+                                if (!strcasecmp(val, &quot;base64&quot;)) {
+                                        globals.encode = ENCODING_BASE64;
+                                } else if (!strcasecmp(val, &quot;textxml&quot;)) {
+                                        globals.encode = ENCODING_TEXTXML;
+                                } else {
+                                        globals.encode = switch_true(val) ? ENCODING_DEFAULT : ENCODING_NONE;
+                                }
+                        } else if (!strcasecmp(var, &quot;retries&quot;) &amp;&amp; !zstr(val)) {
+                                globals.retries = (uint32_t) atoi(val);
+                        } else if (!strcasecmp(var, &quot;rotate&quot;) &amp;&amp; !zstr(val)) {
+                                globals.rotate = switch_true(val);
+                        } else if (!strcasecmp(var, &quot;log-dir&quot;)) {
+                                if (zstr(val)) {
+                                        globals.base_log_dir = switch_mprintf(&quot;%s%sxml_cdr&quot;, SWITCH_GLOBAL_dirs.log_dir, SWITCH_PATH_SEPARATOR);
+                                } else {
+                                        if (switch_is_file_path(val)) {
+                                                globals.base_log_dir = switch_core_strdup(globals.pool, val);
+                                        } else {
+                                                globals.base_log_dir = switch_mprintf(&quot;%s%s%s&quot;, SWITCH_GLOBAL_dirs.log_dir, SWITCH_PATH_SEPARATOR, val);
+                                        }
+                                }
+                        } else if (!strcasecmp(var, &quot;err-log-dir&quot;)) {
+                                if (zstr(val)) {
+                                        globals.base_err_log_dir = switch_mprintf(&quot;%s%sxml_cdr&quot;, SWITCH_GLOBAL_dirs.log_dir, SWITCH_PATH_SEPARATOR);
+                                } else {
+                                        if (switch_is_file_path(val)) {
+                                                globals.base_err_log_dir = switch_core_strdup(globals.pool, val);
+                                        } else {
+                                                globals.base_err_log_dir = switch_mprintf(&quot;%s%s%s&quot;, SWITCH_GLOBAL_dirs.log_dir, SWITCH_PATH_SEPARATOR, val);
+                                        }
+                                }
+                        } else if (!strcasecmp(var, &quot;enable-cacert-check&quot;) &amp;&amp; switch_true(val)) {
+                                globals.enable_cacert_check = 1;
+                        } else if (!strcasecmp(var, &quot;ssl-cert-path&quot;)) {
+                                globals.ssl_cert_file = val;
+                        } else if (!strcasecmp(var, &quot;ssl-key-path&quot;)) {
+                                globals.ssl_key_file = val;
+                        } else if (!strcasecmp(var, &quot;ssl-key-password&quot;)) {
+                                globals.ssl_key_password = val;
+                        } else if (!strcasecmp(var, &quot;ssl-version&quot;)) {
+                                globals.ssl_version = val;
+                        } else if (!strcasecmp(var, &quot;ssl-cacert-file&quot;)) {
+                                globals.ssl_cacert_file = val;
+                        } else if (!strcasecmp(var, &quot;enable-ssl-verifyhost&quot;) &amp;&amp; switch_true(val)) {
+                                globals.enable_ssl_verifyhost = 1;
+                        } else if (!strcasecmp(var, &quot;auth-scheme&quot;)) {
+                                if (*val == '=') {
+                                        globals.auth_scheme = 0;
+                                        val++;
+                                }
+
+                                if (!strcasecmp(val, &quot;basic&quot;)) {
+                                        globals.auth_scheme |= CURLAUTH_BASIC;
+                                } else if (!strcasecmp(val, &quot;digest&quot;)) {
+                                        globals.auth_scheme |= CURLAUTH_DIGEST;
+                                } else if (!strcasecmp(val, &quot;NTLM&quot;)) {
+                                        globals.auth_scheme |= CURLAUTH_NTLM;
+                                } else if (!strcasecmp(val, &quot;GSS-NEGOTIATE&quot;)) {
+                                        globals.auth_scheme |= CURLAUTH_GSSNEGOTIATE;
+                                } else if (!strcasecmp(val, &quot;any&quot;)) {
+                                        globals.auth_scheme = CURLAUTH_ANY;
+                                }
+                        } else if (!strcasecmp(var, &quot;json&quot;)) {
+                                globals.json = switch_true(val);
+                        }
+
+                        if (zstr(globals.base_err_log_dir)) {
+                                if (!zstr(globals.base_log_dir)) {
+                                        globals.base_err_log_dir = switch_core_strdup(globals.pool, globals.base_log_dir);
+                                } else {
+                                        globals.base_err_log_dir = switch_core_sprintf(globals.pool, &quot;%s%sxml_cdr&quot;, SWITCH_GLOBAL_dirs.log_dir, SWITCH_PATH_SEPARATOR);
+                                }
+                        }
+                }
+        }
+        if (globals.retries &lt; 0) {
+                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, &quot;Retries is negative, setting to 0\n&quot;);
+                globals.retries = 0;
+        }
+
+        if (globals.retries &amp;&amp; globals.delay &lt;= 0) {
+                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, &quot;Retries set but delay 0 setting to 5000ms\n&quot;);
+                globals.delay = 5000;
+        }
+
+        globals.retries++;
+
+        set_xml_cdr_log_dirs();
+
+        switch_xml_free(xml);
+        return status;
+}
+
+SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_xml_cdr_shutdown)
+{
+
+        globals.shutdown = 1;
+
+        switch_core_remove_state_handler(&amp;state_handlers);
+        return SWITCH_STATUS_SUCCESS;
+}
+
+/* For Emacs:
+ * Local Variables:
+ * mode:c
+ * indent-tabs-mode:t
+ * tab-width:4
+ * c-basic-offset:4
+ * End:
+ * For VIM:
+ * vim:set softtabstop=4 shiftwidth=4 tabstop=4:
+ */
</ins></span></pre></div>
<a id="freeswitchbranchescseketsrcmodevent_handlersmod_json_cdrmod_json_cdrvcprojfromrev16806freeswitchbranchescseketsrcmodxml_intmod_xml_cdrmod_xml_cdrvcproj"></a>
<div class="copfile"><h4>Copied: freeswitch/branches/cseket/src/mod/event_handlers/mod_json_cdr/mod_json_cdr.vcproj (from rev 16806, freeswitch/branches/cseket/src/mod/xml_int/mod_xml_cdr/mod_xml_cdr.vcproj) (0 => 16807)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/cseket/src/mod/event_handlers/mod_json_cdr/mod_json_cdr.vcproj                                (rev 0)
+++ freeswitch/branches/cseket/src/mod/event_handlers/mod_json_cdr/mod_json_cdr.vcproj        2010-02-25 08:13:42 UTC (rev 16807)
</span><span class="lines">@@ -0,0 +1,60 @@
</span><ins>+&lt;?xml version=&quot;1.0&quot; encoding=&quot;Windows-1252&quot;?&gt;
+&lt;VisualStudioProject
+        ProjectType=&quot;Visual C++&quot;
+        Version=&quot;8.00&quot;
+        Name=&quot;mod_xml_cdr&quot;
+        ProjectGUID=&quot;{08DAD348-9E0A-4A2E-97F1-F1E7E24A7836}&quot;
+        RootNamespace=&quot;mod_xml_cdr&quot;
+        Keyword=&quot;Win32Proj&quot;
+        &gt;
+        &lt;Platforms&gt;
+                &lt;Platform
+                        Name=&quot;Win32&quot;
+                /&gt;
+        &lt;/Platforms&gt;
+        &lt;ToolFiles&gt;
+        &lt;/ToolFiles&gt;
+        &lt;Configurations&gt;
+                &lt;Configuration
+                        Name=&quot;Debug|Win32&quot;
+                        ConfigurationType=&quot;2&quot;
+                        InheritedPropertySheets=&quot;..\..\..\..\w32\module_debug.vsprops;..\..\..\..\w32\curl.vsprops&quot;
+                        CharacterSet=&quot;2&quot;
+                        &gt;
+                        &lt;Tool
+                                Name=&quot;VCCLCompilerTool&quot;
+                                AdditionalIncludeDirectories=&quot;&quot;
+                                UsePrecompiledHeader=&quot;0&quot;
+                        /&gt;
+                        &lt;Tool
+                                Name=&quot;VCLinkerTool&quot;
+                        /&gt;
+                &lt;/Configuration&gt;
+                &lt;Configuration
+                        Name=&quot;Release|Win32&quot;
+                        ConfigurationType=&quot;2&quot;
+                        InheritedPropertySheets=&quot;..\..\..\..\w32\module_release.vsprops;..\..\..\..\w32\curl.vsprops&quot;
+                        CharacterSet=&quot;2&quot;
+                        &gt;
+                        &lt;Tool
+                                Name=&quot;VCCLCompilerTool&quot;
+                                AdditionalIncludeDirectories=&quot;&quot;
+                                UsePrecompiledHeader=&quot;0&quot;
+                        /&gt;
+                        &lt;Tool
+                                Name=&quot;VCLinkerTool&quot;
+                                AdditionalLibraryDirectories=&quot;&quot;
+                        /&gt;
+                &lt;/Configuration&gt;
+        &lt;/Configurations&gt;
+        &lt;References&gt;
+        &lt;/References&gt;
+        &lt;Files&gt;
+                &lt;File
+                        RelativePath=&quot;.\mod_xml_cdr.c&quot;
+                        &gt;
+                &lt;/File&gt;
+        &lt;/Files&gt;
+        &lt;Globals&gt;
+        &lt;/Globals&gt;
+&lt;/VisualStudioProject&gt;
</ins></span></pre>
</div>
</div>
<div id="footer">See you at ClueCon</div>

</body>
</html>