mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-08 08:51:50 +00:00
Start getting mod_cdr w/ mysql to build on windows. Still more to do on this.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2080 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
3bc5fd502b
commit
e9a3ad4877
@ -41,7 +41,7 @@
|
|||||||
<Tool
|
<Tool
|
||||||
Name="VCCLCompilerTool"
|
Name="VCCLCompilerTool"
|
||||||
Optimization="0"
|
Optimization="0"
|
||||||
AdditionalIncludeDirectories=""$(InputDir)..\..\..\include";"$(InputDir)include";"$(InputDir)..\..\..\..\libs\include""
|
AdditionalIncludeDirectories=""$(InputDir)..\..\..\include";"$(InputDir)include";"$(InputDir)..\..\..\..\libs\include";"C:\Program Files\MySQL\MySQL Server 5.0\include""
|
||||||
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;MOD_EXPORTS"
|
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;MOD_EXPORTS"
|
||||||
MinimalRebuild="true"
|
MinimalRebuild="true"
|
||||||
BasicRuntimeChecks="3"
|
BasicRuntimeChecks="3"
|
||||||
@ -122,7 +122,7 @@
|
|||||||
/>
|
/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCCLCompilerTool"
|
Name="VCCLCompilerTool"
|
||||||
AdditionalIncludeDirectories=""$(InputDir)..\..\..\include";"$(InputDir)include";"$(InputDir)..\..\..\..\libs\include""
|
AdditionalIncludeDirectories=""$(InputDir)..\..\..\include";"$(InputDir)include";"$(InputDir)..\..\..\..\libs\include";"C:\Program Files\MySQL\MySQL Server 5.0\include""
|
||||||
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;MOD_EXPORTS"
|
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;MOD_EXPORTS"
|
||||||
RuntimeLibrary="2"
|
RuntimeLibrary="2"
|
||||||
UsePrecompiledHeader="0"
|
UsePrecompiledHeader="0"
|
||||||
@ -177,6 +177,170 @@
|
|||||||
Name="VCPostBuildEventTool"
|
Name="VCPostBuildEventTool"
|
||||||
/>
|
/>
|
||||||
</Configuration>
|
</Configuration>
|
||||||
|
<Configuration
|
||||||
|
Name="Debug with MySql|Win32"
|
||||||
|
OutputDirectory="Debug"
|
||||||
|
IntermediateDirectory="$(ConfigurationName)"
|
||||||
|
ConfigurationType="2"
|
||||||
|
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
|
||||||
|
CharacterSet="2"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreBuildEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCustomBuildTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXMLDataGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebServiceProxyGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCMIDLTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
Optimization="0"
|
||||||
|
AdditionalIncludeDirectories=""$(InputDir)..\..\..\include";"$(InputDir)include";"$(InputDir)..\..\..\..\libs\include";"C:\Program Files\MySQL\MySQL Server 5.0\include""
|
||||||
|
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;MOD_EXPORTS"
|
||||||
|
MinimalRebuild="true"
|
||||||
|
BasicRuntimeChecks="3"
|
||||||
|
RuntimeLibrary="3"
|
||||||
|
UsePrecompiledHeader="0"
|
||||||
|
WarningLevel="4"
|
||||||
|
WarnAsError="true"
|
||||||
|
Detect64BitPortabilityProblems="true"
|
||||||
|
DebugInformationFormat="4"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManagedResourceCompilerTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCResourceCompilerTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreLinkEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCLinkerTool"
|
||||||
|
AdditionalDependencies="mysqlclient.lib"
|
||||||
|
OutputFile="..\..\..\..\w32\vsnet\$(OutDir)/mod/mod_cdr.dll"
|
||||||
|
LinkIncremental="2"
|
||||||
|
AdditionalLibraryDirectories="..\..\..\..\w32\vsnet\Debug;"C:\Program Files\MySQL\MySQL Server 5.0\lib\debug""
|
||||||
|
GenerateDebugInformation="true"
|
||||||
|
ProgramDatabaseFile="$(OutDir)/mod_cdr.pdb"
|
||||||
|
SubSystem="2"
|
||||||
|
ImportLibrary="$(OutDir)/mod_cdr.lib"
|
||||||
|
TargetMachine="1"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCALinkTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManifestTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXDCMakeTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCBscMakeTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCFxCopTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCAppVerifierTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebDeploymentTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPostBuildEventTool"
|
||||||
|
/>
|
||||||
|
</Configuration>
|
||||||
|
<Configuration
|
||||||
|
Name="Release with MySql|Win32"
|
||||||
|
OutputDirectory="Release"
|
||||||
|
IntermediateDirectory="$(ConfigurationName)"
|
||||||
|
ConfigurationType="2"
|
||||||
|
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
|
||||||
|
CharacterSet="2"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreBuildEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCustomBuildTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXMLDataGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebServiceProxyGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCMIDLTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
AdditionalIncludeDirectories=""$(InputDir)..\..\..\include";"$(InputDir)include";"$(InputDir)..\..\..\..\libs\include";"C:\Program Files\MySQL\MySQL Server 5.0\include""
|
||||||
|
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;MOD_EXPORTS"
|
||||||
|
RuntimeLibrary="2"
|
||||||
|
UsePrecompiledHeader="0"
|
||||||
|
WarningLevel="4"
|
||||||
|
WarnAsError="true"
|
||||||
|
Detect64BitPortabilityProblems="true"
|
||||||
|
DebugInformationFormat="3"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManagedResourceCompilerTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCResourceCompilerTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreLinkEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCLinkerTool"
|
||||||
|
AdditionalDependencies="mysqlclient.lib"
|
||||||
|
OutputFile="..\..\..\..\w32\vsnet\$(OutDir)/mod/mod_cdr.dll"
|
||||||
|
LinkIncremental="1"
|
||||||
|
AdditionalLibraryDirectories=""..\..\..\..\w32\vsnet\Release";"C:\Program Files\MySQL\MySQL Server 5.0\lib\opt""
|
||||||
|
GenerateDebugInformation="true"
|
||||||
|
SubSystem="2"
|
||||||
|
OptimizeReferences="2"
|
||||||
|
EnableCOMDATFolding="2"
|
||||||
|
ImportLibrary="$(OutDir)/mod_cdr.lib"
|
||||||
|
TargetMachine="1"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCALinkTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManifestTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXDCMakeTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCBscMakeTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCFxCopTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCAppVerifierTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebDeploymentTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPostBuildEventTool"
|
||||||
|
/>
|
||||||
|
</Configuration>
|
||||||
</Configurations>
|
</Configurations>
|
||||||
<References>
|
<References>
|
||||||
</References>
|
</References>
|
||||||
@ -206,6 +370,26 @@
|
|||||||
RelativePath=".\mod_cdr.cpp"
|
RelativePath=".\mod_cdr.cpp"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\mysqlcdr.cpp"
|
||||||
|
>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Debug|Win32"
|
||||||
|
ExcludedFromBuild="true"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Release|Win32"
|
||||||
|
ExcludedFromBuild="true"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath=".\pddcdr.cpp"
|
RelativePath=".\pddcdr.cpp"
|
||||||
>
|
>
|
||||||
@ -232,6 +416,10 @@
|
|||||||
RelativePath=".\csvcdr.h"
|
RelativePath=".\csvcdr.h"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\mysqlcdr.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath=".\pddcdr.h"
|
RelativePath=".\pddcdr.h"
|
||||||
>
|
>
|
||||||
|
@ -1,31 +1,40 @@
|
|||||||
/*
|
/*
|
||||||
* FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application Call Detail Recorder module
|
* FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application Call Detail Recorder module
|
||||||
*
|
* Copyright 2006, Author: Yossi Neiman of Cartis Solutions, Inc. <freeswitch AT cartissolutions.com>
|
||||||
* Copyright 2006, Author: Yossi Neiman, president of Cartis Solutions, Inc.
|
*
|
||||||
* <freeswitch AT cartissolutions.com>
|
* Version: MPL 1.1
|
||||||
*
|
*
|
||||||
* Description: This C++ source file describes the MysqlCDR class which handles formatting a CDR out to
|
* The contents of this file are subject to the Mozilla Public License Version
|
||||||
* a MySQL 4.1.x or greater server using prepared statements.
|
* 1.1 (the "License"); 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/
|
||||||
* Version: MPL 1.1
|
*
|
||||||
* The contents of this file are subject to the Mozilla Public License Version
|
* Software distributed under the License is distributed on an "AS IS" basis,
|
||||||
* 1.1 (the "License"); you may not use this file except in compliance with
|
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||||
* the License. You may obtain a copy of the License at
|
* for the specific language governing rights and limitations under the
|
||||||
* http://www.mozilla.org/MPL/
|
* License.
|
||||||
*
|
*
|
||||||
* Software distributed under the License is distributed on an "AS IS" basis,
|
* The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application Call Detail Recorder module
|
||||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
*
|
||||||
* for the specific language governing rights and limitations under the
|
* The Initial Developer of the Original Code is
|
||||||
* License
|
* Yossi Neiman <freeswitch AT cartissolutions.com>
|
||||||
*
|
* Portions created by the Initial Developer are Copyright (C)
|
||||||
* The Core API is the FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application by
|
* the Initial Developer. All Rights Reserved.
|
||||||
* Anthony Minnesale II <anthmct@yahoo.com>
|
*
|
||||||
*
|
* Contributor(s):
|
||||||
* mysqlcdr.cpp
|
*
|
||||||
*
|
* Yossi Neiman <freeswitch AT cartissolutions.com>
|
||||||
*/
|
*
|
||||||
|
* Description: This C++ source file describes the MysqlCDR class which handles formatting a CDR out to
|
||||||
|
* a MySQL 4.1.x or greater server using prepared statements.
|
||||||
|
*
|
||||||
|
* mysqlcdr.cpp
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifdef WIN32
|
||||||
|
#include <Winsock2.h>
|
||||||
|
#endif
|
||||||
#include <mysql.h>
|
#include <mysql.h>
|
||||||
#include <switch.h>
|
#include <switch.h>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
@ -1,30 +1,36 @@
|
|||||||
/*
|
/*
|
||||||
* FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application Call Detail Recorder module
|
* FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application Call Detail Recorder module
|
||||||
*
|
* Copyright 2006, Author: Yossi Neiman of Cartis Solutions, Inc. <freeswitch AT cartissolutions.com>
|
||||||
* Copyright 2006, Author: Yossi Neiman, president of Cartis Solutions, Inc.
|
*
|
||||||
* <freeswitch AT cartissolutions.com>
|
* Version: MPL 1.1
|
||||||
*
|
*
|
||||||
* Description: This C++ header file describes the MysqlCDR class which handles formatting a CDR out to
|
* The contents of this file are subject to the Mozilla Public License Version
|
||||||
* a MySQL 4.1.x or greater server using prepared statements.
|
* 1.1 (the "License"); 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/
|
||||||
* Version: MPL 1.1
|
*
|
||||||
* The contents of this file are subject to the Mozilla Public License Version
|
* Software distributed under the License is distributed on an "AS IS" basis,
|
||||||
* 1.1 (the "License"); you may not use this file except in compliance with
|
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||||
* the License. You may obtain a copy of the License at
|
* for the specific language governing rights and limitations under the
|
||||||
* http://www.mozilla.org/MPL/
|
* License.
|
||||||
*
|
*
|
||||||
* Software distributed under the License is distributed on an "AS IS" basis,
|
* The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application Call Detail Recorder module
|
||||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
*
|
||||||
* for the specific language governing rights and limitations under the
|
* The Initial Developer of the Original Code is
|
||||||
* License
|
* Yossi Neiman <freeswitch AT cartissolutions.com>
|
||||||
*
|
* Portions created by the Initial Developer are Copyright (C)
|
||||||
* The Core API is the FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application by
|
* the Initial Developer. All Rights Reserved.
|
||||||
* Anthony Minnesale II <anthmct@yahoo.com>
|
*
|
||||||
*
|
* Contributor(s):
|
||||||
* mysqlcdr.h
|
*
|
||||||
*
|
* Yossi Neiman <freeswitch AT cartissolutions.com>
|
||||||
*/
|
*
|
||||||
|
* Description: This C++ header file describes the MysqlCDR class which handles formatting a CDR out to
|
||||||
|
* a MySQL 4.1.x or greater server using prepared statements.
|
||||||
|
*
|
||||||
|
* mysqlcdr.h
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
#include "baseregistry.h"
|
#include "baseregistry.h"
|
||||||
#include <list>
|
#include <list>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user