Freeswitch-trunk
Threads by month
- ----- 2026 -----
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2025 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2009 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2008 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2007 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2006 -----
- December
- November
- October
- September
- August
- July
- June
August 2006
- 4 participants
- 168 discussions
Author: mikej
Date: Sun Aug 27 22:01:41 2006
New Revision: 2414
Modified:
freeswitch/trunk/libs/win32/util.vbs
Log:
use different bat file names so multi proc systems can download more than one lib at a time without failing.
Modified: freeswitch/trunk/libs/win32/util.vbs
==============================================================================
--- freeswitch/trunk/libs/win32/util.vbs (original)
+++ freeswitch/trunk/libs/win32/util.vbs Sun Aug 27 22:01:41 2006
@@ -25,7 +25,7 @@
Else
UseWgetEXE=false
End If
-
+Randomize
Set objArgs = WScript.Arguments
quote=Chr(34)
ScriptDir=Left(WScript.ScriptFullName,Len(WScript.ScriptFullName)-Len(WScript.ScriptName))
@@ -91,19 +91,20 @@
End Sub
Sub UnCompress(Archive, DestFolder)
+ batname = "tmp" & CStr(Int(10000*Rnd)) & ".bat"
wscript.echo("Extracting: " & Archive)
- Set MyFile = fso.CreateTextFile(UtilsDir & "tmpcmd.Bat", True)
+ Set MyFile = fso.CreateTextFile(UtilsDir & batname, True)
MyFile.WriteLine("@" & quote & UtilsDir & "7za.exe" & quote & " x " & quote & Archive & quote & " -y -o" & quote & DestFolder & quote )
MyFile.Close
- Set oExec = WshShell.Exec(UtilsDir & "tmpcmd.Bat")
+ Set oExec = WshShell.Exec(UtilsDir & batname)
Do
WScript.Echo OExec.StdOut.ReadLine()
Loop While Not OExec.StdOut.atEndOfStream
If FSO.FileExists(Left(Archive, Len(Archive)-3))Then
- Set MyFile = fso.CreateTextFile(UtilsDir & "tmpcmd.Bat", True)
+ Set MyFile = fso.CreateTextFile(UtilsDir & batname, True)
MyFile.WriteLine("@" & quote & UtilsDir & "7za.exe" & quote & " x " & quote & Left(Archive, Len(Archive)-3) & quote & " -y -o" & quote & DestFolder & quote )
MyFile.Close
- Set oExec = WshShell.Exec(UtilsDir & "tmpcmd.Bat")
+ Set oExec = WshShell.Exec(UtilsDir & batname)
Do
WScript.Echo OExec.StdOut.ReadLine()
Loop While Not OExec.StdOut.atEndOfStream
@@ -111,10 +112,10 @@
FSO.DeleteFile Left(Archive, Len(Archive)-3) ,true
End If
If FSO.FileExists(Left(Archive, Len(Archive)-3) & "tar")Then
- Set MyFile = fso.CreateTextFile(UtilsDir & "tmpcmd.Bat", True)
+ Set MyFile = fso.CreateTextFile(UtilsDir & batname, True)
MyFile.WriteLine("@" & quote & UtilsDir & "7za.exe" & quote & " x " & quote & Left(Archive, Len(Archive)-3) & "tar" & quote & " -y -o" & quote & DestFolder & quote )
MyFile.Close
- Set oExec = WshShell.Exec(UtilsDir & "tmpcmd.Bat")
+ Set oExec = WshShell.Exec(UtilsDir & batname)
Do
WScript.Echo OExec.StdOut.ReadLine()
Loop While Not OExec.StdOut.atEndOfStream
@@ -123,6 +124,9 @@
End If
WScript.Sleep(500)
+ If FSO.FileExists(UtilsDir & batname)Then
+ FSO.DeleteFile UtilsDir & batname, True
+ End If
End Sub
Sub Wget(URL, DestFolder)
@@ -134,11 +138,12 @@
Wscript.echo("Downloading: " & URL)
If UseWgetEXE Then
- Set MyFile = fso.CreateTextFile(UtilsDir & "tmpcmd.Bat", True)
+ batname = "tmp" & CStr(Int(10000*Rnd)) & ".bat"
+ Set MyFile = fso.CreateTextFile(UtilsDir & batname, True)
MyFile.WriteLine("@cd " & quote & DestFolder & quote)
MyFile.WriteLine("@" & quote & UtilsDir & "wget.exe" & quote & " " & URL)
MyFile.Close
- Set oExec = WshShell.Exec(UtilsDir & "tmpcmd.Bat")
+ Set oExec = WshShell.Exec(UtilsDir & batname)
Do
WScript.Echo OExec.StdOut.ReadLine()
Loop While Not OExec.StdOut.atEndOfStream
1
0
28 Aug '06
Author: mikej
Date: Sun Aug 27 21:35:49 2006
New Revision: 2413
Modified:
freeswitch/trunk/libs/win32/js/fdlibm.vcproj
freeswitch/trunk/libs/win32/js/js.vcproj
freeswitch/trunk/libs/win32/pcre/libpcre.vcproj
freeswitch/trunk/libs/win32/sqlite/sqlite.vcproj
Log:
cleanup msvc build targets and remove incremental build settings from libs.
Modified: freeswitch/trunk/libs/win32/js/fdlibm.vcproj
==============================================================================
--- freeswitch/trunk/libs/win32/js/fdlibm.vcproj (original)
+++ freeswitch/trunk/libs/win32/js/fdlibm.vcproj Sun Aug 27 21:35:49 2006
@@ -43,10 +43,10 @@
Optimization="0"
PreprocessorDefinitions="_DEBUG;WIN32;_X86_=1;_WINDOWS;_IEEE_LIBM"
RuntimeLibrary="3"
- PrecompiledHeaderFile=".\..\Debug/fdlibm.pch"
- AssemblerListingLocation=".\..\Debug/"
- ObjectFile=".\..\Debug/"
- ProgramDataBaseFileName=".\..\Debug/"
+ PrecompiledHeaderFile="$(IntDir)\fdlibm.pch"
+ AssemblerListingLocation=""
+ ObjectFile="$(IntDir)\"
+ ProgramDataBaseFileName="$(IntDir)\vc80.pdb"
WarningLevel="3"
SuppressStartupBanner="true"
DebugInformationFormat="1"
@@ -116,10 +116,10 @@
StringPooling="true"
RuntimeLibrary="2"
EnableFunctionLevelLinking="true"
- PrecompiledHeaderFile=".\..\Release/fdlibm.pch"
- AssemblerListingLocation=".\..\Release/"
- ObjectFile=".\..\Release/"
- ProgramDataBaseFileName=".\..\Release/"
+ PrecompiledHeaderFile="$(IntDir)\fdlibm.pch"
+ AssemblerListingLocation=""
+ ObjectFile="$(IntDir)\"
+ ProgramDataBaseFileName="$(IntDir)\vc80.pdb"
WarningLevel="3"
SuppressStartupBanner="true"
/>
Modified: freeswitch/trunk/libs/win32/js/js.vcproj
==============================================================================
--- freeswitch/trunk/libs/win32/js/js.vcproj (original)
+++ freeswitch/trunk/libs/win32/js/js.vcproj Sun Aug 27 21:35:49 2006
@@ -53,10 +53,10 @@
StringPooling="true"
RuntimeLibrary="2"
EnableFunctionLevelLinking="true"
- PrecompiledHeaderFile=".\Release/js.pch"
- AssemblerListingLocation=".\Release/"
- ObjectFile=".\Release/"
- ProgramDataBaseFileName=".\Release/"
+ PrecompiledHeaderFile="$(IntDir)\js.pch"
+ AssemblerListingLocation=""
+ ObjectFile="$(IntDir)\"
+ ProgramDataBaseFileName="$(IntDir)\vc80.pdb"
WarningLevel="3"
SuppressStartupBanner="true"
/>
@@ -150,10 +150,10 @@
PreprocessorDefinitions="_DEBUG;DEBUG;_X86_=1;_WINDOWS;WIN32;XP_WIN;JSFILE;EXPORT_JS_API;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;JS_THREADSAFE"
MinimalRebuild="true"
RuntimeLibrary="3"
- PrecompiledHeaderFile=".\Debug/js.pch"
- AssemblerListingLocation=".\Debug/"
- ObjectFile=".\Debug/"
- ProgramDataBaseFileName=".\Debug/"
+ PrecompiledHeaderFile="$(IntDir)\js.pch"
+ AssemblerListingLocation=""
+ ObjectFile="$(IntDir)\"
+ ProgramDataBaseFileName="$(IntDir)\vc80.pdb"
WarningLevel="3"
SuppressStartupBanner="true"
DebugInformationFormat="3"
Modified: freeswitch/trunk/libs/win32/pcre/libpcre.vcproj
==============================================================================
--- freeswitch/trunk/libs/win32/pcre/libpcre.vcproj (original)
+++ freeswitch/trunk/libs/win32/pcre/libpcre.vcproj Sun Aug 27 21:35:49 2006
@@ -252,7 +252,7 @@
Name="VCLinkerTool"
AdditionalDependencies="odbc32.lib odbccp32.lib"
OutputFile="$(OutDir)\$(ProjectName).dll"
- LinkIncremental="2"
+ LinkIncremental="1"
SuppressStartupBanner="true"
ModuleDefinitionFile="$(InputDir)..\..\pcre-6.4\pcre.def"
GenerateDebugInformation="true"
Modified: freeswitch/trunk/libs/win32/sqlite/sqlite.vcproj
==============================================================================
--- freeswitch/trunk/libs/win32/sqlite/sqlite.vcproj (original)
+++ freeswitch/trunk/libs/win32/sqlite/sqlite.vcproj Sun Aug 27 21:35:49 2006
@@ -49,7 +49,7 @@
UsePrecompiledHeader="0"
WarningLevel="0"
Detect64BitPortabilityProblems="true"
- DebugInformationFormat="4"
+ DebugInformationFormat="3"
/>
<Tool
Name="VCManagedResourceCompilerTool"
@@ -177,7 +177,7 @@
UsePrecompiledHeader="0"
WarningLevel="0"
Detect64BitPortabilityProblems="true"
- DebugInformationFormat="4"
+ DebugInformationFormat="3"
/>
<Tool
Name="VCManagedResourceCompilerTool"
@@ -190,6 +190,7 @@
/>
<Tool
Name="VCLinkerTool"
+ LinkIncremental="1"
ModuleDefinitionFile="../../sqlite-source-3_3_6/sqlite3.def"
GenerateDebugInformation="true"
ProgramDatabaseFile="$(IntDir)\$(ProjectName).pdb"
@@ -267,6 +268,7 @@
/>
<Tool
Name="VCLinkerTool"
+ LinkIncremental="1"
ModuleDefinitionFile="../../sqlite-source-3_3_6/sqlite3.def"
ImportLibrary="$(IntDir)/$(TargetName).lib"
/>
1
0
[commit] r2411 - in freeswitch/trunk: . w32/Console w32/Library w32/vsnet
by Freeswitch SVN 27 Aug '06
by Freeswitch SVN 27 Aug '06
27 Aug '06
Author: mikej
Date: Sun Aug 27 17:00:28 2006
New Revision: 2411
Added:
freeswitch/trunk/w32/Console/
freeswitch/trunk/w32/Console/FreeSwitchConsole.vcproj
freeswitch/trunk/w32/Console/FreeSwitchConsole.vcproj.user
freeswitch/trunk/w32/Library/
freeswitch/trunk/w32/Library/FreeSwitchCore.vcproj
Removed:
freeswitch/trunk/w32/vsnet/
Modified:
freeswitch/trunk/Freeswitch.sln
Log:
windows build cleanup. Remove unused files.
Modified: freeswitch/trunk/Freeswitch.sln
==============================================================================
--- freeswitch/trunk/Freeswitch.sln (original)
+++ freeswitch/trunk/Freeswitch.sln Sun Aug 27 17:00:28 2006
@@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 9.00
# Visual Studio 2005
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "FreeSwitchConsole", "w32\vsnet\FreeSwitchConsole.vcproj", "{1AF3A893-F7BE-43DD-B697-8AB2397C0D67}"
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "FreeSwitchConsole", "w32\Console\FreeSwitchConsole.vcproj", "{1AF3A893-F7BE-43DD-B697-8AB2397C0D67}"
ProjectSection(ProjectDependencies) = postProject
{202D7A4E-760D-4D0E-AFA1-D7459CED30FF} = {202D7A4E-760D-4D0E-AFA1-D7459CED30FF}
{F057DA7F-79E5-4B00-845C-EF446EF055E3} = {F057DA7F-79E5-4B00-845C-EF446EF055E3}
@@ -9,7 +9,7 @@
{101130D1-3EA6-4ED2-B65D-CEB5243A20ED} = {101130D1-3EA6-4ED2-B65D-CEB5243A20ED}
EndProjectSection
EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "FreeSwitchCoreLib", "w32\vsnet\FreeSwitchCore.vcproj", "{202D7A4E-760D-4D0E-AFA1-D7459CED30FF}"
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "FreeSwitchCoreLib", "w32\Library\FreeSwitchCore.vcproj", "{202D7A4E-760D-4D0E-AFA1-D7459CED30FF}"
ProjectSection(ProjectDependencies) = postProject
{50AD0E28-B8D7-4FCC-8FC3-599F6AC69761} = {50AD0E28-B8D7-4FCC-8FC3-599F6AC69761}
{8D04B550-D240-4A44-8A18-35DA3F7038D9} = {8D04B550-D240-4A44-8A18-35DA3F7038D9}
Added: freeswitch/trunk/w32/Console/FreeSwitchConsole.vcproj
==============================================================================
--- (empty file)
+++ freeswitch/trunk/w32/Console/FreeSwitchConsole.vcproj Sun Aug 27 17:00:28 2006
@@ -0,0 +1,258 @@
+<?xml version="1.0" encoding="Windows-1252"?>
+<VisualStudioProject
+ ProjectType="Visual C++"
+ Version="8.00"
+ Name="FreeSwitchConsole"
+ ProjectGUID="{1AF3A893-F7BE-43DD-B697-8AB2397C0D67}"
+ RootNamespace="FreeSwitchConsole"
+ Keyword="Win32Proj"
+ >
+ <Platforms>
+ <Platform
+ Name="Win32"
+ />
+ </Platforms>
+ <ToolFiles>
+ </ToolFiles>
+ <Configurations>
+ <Configuration
+ Name="Debug|Win32"
+ OutputDirectory="$(ConfigurationName)"
+ IntermediateDirectory="$(ConfigurationName)"
+ ConfigurationType="1"
+ InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
+ CharacterSet="2"
+ BuildLogFile="$(IntDir)\BuildLog $(ProjectName).htm"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ Optimization="0"
+ AdditionalIncludeDirectories=""$(InputDir)include";"$(InputDir)..\libs\include""
+ PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
+ MinimalRebuild="true"
+ BasicRuntimeChecks="3"
+ RuntimeLibrary="3"
+ UsePrecompiledHeader="0"
+ WarningLevel="4"
+ WarnAsError="true"
+ Detect64BitPortabilityProblems="true"
+ DebugInformationFormat="3"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ />
+ <Tool
+ Name="VCLinkerTool"
+ OutputFile="$(SolutionDir)$(ConfigurationName)/FreeSwitch.exe"
+ LinkIncremental="1"
+ AdditionalLibraryDirectories="$(OutDir)"
+ GenerateDebugInformation="true"
+ ProgramDatabaseFile="$(OutDir)/FreeSwitchConsole.pdb"
+ SubSystem="1"
+ 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|Win32"
+ OutputDirectory="$(ConfigurationName)"
+ IntermediateDirectory="$(ConfigurationName)"
+ ConfigurationType="1"
+ InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
+ CharacterSet="2"
+ BuildLogFile="$(IntDir)\BuildLog $(ProjectName).htm"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ AdditionalIncludeDirectories=""$(InputDir)include";"$(InputDir)..\libs\include""
+ PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
+ RuntimeLibrary="2"
+ UsePrecompiledHeader="0"
+ WarningLevel="4"
+ WarnAsError="true"
+ Detect64BitPortabilityProblems="true"
+ DebugInformationFormat="3"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ />
+ <Tool
+ Name="VCLinkerTool"
+ OutputFile="$(SolutionDir)$(ConfigurationName)/FreeSwitch.exe"
+ LinkIncremental="1"
+ AdditionalLibraryDirectories="$(OutDir)"
+ GenerateDebugInformation="true"
+ ProgramDatabaseFile="$(OutDir)/FreeSwitchConsole.pdb"
+ SubSystem="1"
+ OptimizeReferences="2"
+ EnableCOMDATFolding="2"
+ 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>
+ <References>
+ </References>
+ <Files>
+ <Filter
+ Name="Source Files"
+ Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx"
+ UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
+ >
+ <File
+ RelativePath="..\..\src\switch.c"
+ >
+ </File>
+ </Filter>
+ <Filter
+ Name="Header Files"
+ Filter="h;hpp;hxx;hm;inl;inc;xsd"
+ UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
+ >
+ <File
+ RelativePath="..\..\src\include\switch.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\src\include\switch_buffer.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\src\include\switch_caller.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\src\include\switch_channel.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\src\include\switch_config.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\src\include\switch_console.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\src\include\switch_core.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\src\include\switch_frame.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\src\include\switch_loadable_module.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\src\include\switch_module_interfaces.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\src\include\switch_types.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\src\include\switch_utils.h"
+ >
+ </File>
+ </Filter>
+ <Filter
+ Name="Resource Files"
+ Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx"
+ UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
+ >
+ </Filter>
+ </Files>
+ <Globals>
+ </Globals>
+</VisualStudioProject>
Added: freeswitch/trunk/w32/Console/FreeSwitchConsole.vcproj.user
==============================================================================
--- (empty file)
+++ freeswitch/trunk/w32/Console/FreeSwitchConsole.vcproj.user Sun Aug 27 17:00:28 2006
@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="Windows-1252"?>
+<VisualStudioUserFile
+ ProjectType="Visual C++"
+ Version="8.00"
+ ShowAllFiles="false"
+ >
+ <Configurations>
+ <Configuration
+ Name="Debug|Win32"
+ >
+ <DebugSettings
+ Command="$(TargetPath)"
+ WorkingDirectory="$(OutDir)"
+ CommandArguments=""
+ Attach="false"
+ DebuggerType="3"
+ Remote="1"
+ RemoteMachine="MIL-MJERRIS"
+ RemoteCommand=""
+ HttpUrl=""
+ PDBPath=""
+ SQLDebugging=""
+ Environment=""
+ EnvironmentMerge="true"
+ DebuggerFlavor="0"
+ MPIRunCommand=""
+ MPIRunArguments=""
+ MPIRunWorkingDirectory=""
+ ApplicationCommand=""
+ ApplicationArguments=""
+ ShimCommand=""
+ MPIAcceptMode=""
+ MPIAcceptFilter=""
+ />
+ </Configuration>
+ <Configuration
+ Name="Release|Win32"
+ >
+ <DebugSettings
+ Command="$(TargetPath)"
+ WorkingDirectory="$(OutDir)"
+ CommandArguments=""
+ Attach="false"
+ DebuggerType="3"
+ Remote="1"
+ RemoteMachine="MIL-MJERRIS"
+ RemoteCommand=""
+ HttpUrl=""
+ PDBPath=""
+ SQLDebugging=""
+ Environment=""
+ EnvironmentMerge="true"
+ DebuggerFlavor="0"
+ MPIRunCommand=""
+ MPIRunArguments=""
+ MPIRunWorkingDirectory=""
+ ApplicationCommand=""
+ ApplicationArguments=""
+ ShimCommand=""
+ MPIAcceptMode=""
+ MPIAcceptFilter=""
+ />
+ </Configuration>
+ </Configurations>
+</VisualStudioUserFile>
Added: freeswitch/trunk/w32/Library/FreeSwitchCore.vcproj
==============================================================================
--- (empty file)
+++ freeswitch/trunk/w32/Library/FreeSwitchCore.vcproj Sun Aug 27 17:00:28 2006
@@ -0,0 +1,420 @@
+<?xml version="1.0" encoding="Windows-1252"?>
+<VisualStudioProject
+ ProjectType="Visual C++"
+ Version="8.00"
+ Name="FreeSwitchCoreLib"
+ ProjectGUID="{202D7A4E-760D-4D0E-AFA1-D7459CED30FF}"
+ RootNamespace="FreeSwitchCoreLib"
+ Keyword="Win32Proj"
+ >
+ <Platforms>
+ <Platform
+ Name="Win32"
+ />
+ </Platforms>
+ <ToolFiles>
+ </ToolFiles>
+ <Configurations>
+ <Configuration
+ Name="Debug|Win32"
+ OutputDirectory="$(ConfigurationName)"
+ IntermediateDirectory="$(ConfigurationName)"
+ ConfigurationType="2"
+ InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
+ CharacterSet="2"
+ BuildLogFile="$(IntDir)\BuildLog $(ProjectName).htm"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ CommandLine=""
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ Optimization="0"
+ AdditionalIncludeDirectories="..\..\src\include;..\..\libs\include;..\..\libs\srtp\include;..\..\libs\srtp\crypto\include;"..\..\libs\libresample-0.1.3\include""
+ PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;FREESWITCHCORE_EXPORTS"
+ MinimalRebuild="true"
+ BasicRuntimeChecks="3"
+ RuntimeLibrary="3"
+ UsePrecompiledHeader="2"
+ PrecompiledHeaderThrough="switch.h"
+ PrecompiledHeaderFile="$(IntDir)\$(TargetName).pch"
+ BrowseInformation="0"
+ WarningLevel="4"
+ WarnAsError="true"
+ Detect64BitPortabilityProblems="true"
+ DebugInformationFormat="3"
+ ForcedIncludeFiles=""
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ />
+ <Tool
+ Name="VCLinkerTool"
+ LinkLibraryDependencies="true"
+ AdditionalDependencies="Ws2_32.lib Mswsock.lib Rpcrt4.lib"
+ OutputFile="$(SolutionDir)$(ConfigurationName)/FreeSwitch.dll"
+ LinkIncremental="1"
+ AdditionalLibraryDirectories=""$(InputDir)..\..\libs\apr\$(OutDir)";"$(InputDir)..\..\libs\sqlite\$(OutDir) DLL";"$(InputDir)..\..\libs\apr-util\$(OutDir)";"$(InputDir)..\..\libs\apr-iconv\$(OutDir)";"$(InputDir)..\..\libs\libresample\win";"$(InputDir)..\..\libs\srtp\$(OutDir)""
+ AddModuleNamesToAssembly=""
+ GenerateDebugInformation="true"
+ ProgramDatabaseFile="$(OutDir)/FreeSwitchCore.pdb"
+ SubSystem="2"
+ OptimizeReferences="0"
+ EnableCOMDATFolding="0"
+ ImportLibrary="$(OutDir)/FreeSwitchCore.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"
+ CommandLine="xcopy $(SolutionDir)conf\*.* $(SolutionDir)$(OutDir)\conf\ /C /D /Y
if not exist $(SolutionDir)$(OutDir)\db md $(SolutionDir)$(OutDir)\db
if not exist $(SolutionDir)$(OutDir)\log md $(SolutionDir)$(OutDir)\log
if not exist $(SolutionDir)$(OutDir)\log md $(SolutionDir)$(OutDir)\htdocs

"
+ />
+ </Configuration>
+ <Configuration
+ Name="Release|Win32"
+ OutputDirectory="$(ConfigurationName)"
+ IntermediateDirectory="$(ConfigurationName)"
+ ConfigurationType="2"
+ InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
+ CharacterSet="2"
+ BuildLogFile="$(IntDir)\BuildLog $(ProjectName).htm"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ CommandLine=""
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ AdditionalIncludeDirectories="..\..\src\include;..\..\libs\include;..\..\libs\srtp\include;..\..\libs\srtp\crypto\include;"..\..\libs\libresample-0.1.3\include""
+ PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;FREESWITCHCORE_EXPORTS;CRASH_PROT"
+ RuntimeLibrary="2"
+ UsePrecompiledHeader="2"
+ PrecompiledHeaderThrough="switch.h"
+ PrecompiledHeaderFile="$(IntDir)\$(TargetName).pch"
+ BrowseInformation="0"
+ WarningLevel="4"
+ WarnAsError="true"
+ Detect64BitPortabilityProblems="true"
+ DebugInformationFormat="3"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ />
+ <Tool
+ Name="VCLinkerTool"
+ LinkLibraryDependencies="true"
+ AdditionalDependencies="Ws2_32.lib Mswsock.lib Rpcrt4.lib"
+ OutputFile="$(SolutionDir)$(ConfigurationName)/FreeSwitch.dll"
+ LinkIncremental="1"
+ AdditionalLibraryDirectories=""$(InputDir)..\..\libs\apr\$(OutDir)";"$(InputDir)..\..\libs\sqlite\$(OutDir) DLL";"$(InputDir)..\..\libs\apr-util\$(OutDir)";"$(InputDir)..\..\libs\apr-iconv\$(OutDir)";"$(InputDir)..\..\libs\libresample\win";"$(InputDir)..\..\libs\srtp\$(OutDir)""
+ GenerateDebugInformation="true"
+ ProgramDatabaseFile="$(OutDir)/FreeSwitchCore.pdb"
+ SubSystem="2"
+ OptimizeReferences="2"
+ EnableCOMDATFolding="2"
+ ImportLibrary="$(OutDir)/FreeSwitchCore.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"
+ CommandLine="xcopy $(SolutionDir)conf\*.* $(SolutionDir)$(OutDir)\conf\ /C /D /Y
if not exist $(SolutionDir)$(OutDir)\db md $(SolutionDir)$(OutDir)\db
if not exist $(SolutionDir)$(OutDir)\log md $(SolutionDir)$(OutDir)\log
if not exist $(SolutionDir)$(OutDir)\log md $(SolutionDir)$(OutDir)\htdocs

"
+ />
+ </Configuration>
+ </Configurations>
+ <References>
+ </References>
+ <Files>
+ <Filter
+ Name="Source Files"
+ Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx"
+ UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
+ >
+ <File
+ RelativePath="..\..\src\switch_buffer.c"
+ >
+ <FileConfiguration
+ Name="Debug|Win32"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ UsePrecompiledHeader="1"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Release|Win32"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ UsePrecompiledHeader="1"
+ />
+ </FileConfiguration>
+ </File>
+ <File
+ RelativePath="..\..\src\switch_caller.c"
+ >
+ </File>
+ <File
+ RelativePath="..\..\src\switch_channel.c"
+ >
+ </File>
+ <File
+ RelativePath="..\..\src\switch_config.c"
+ >
+ </File>
+ <File
+ RelativePath="..\..\src\switch_console.c"
+ >
+ </File>
+ <File
+ RelativePath="..\..\src\switch_core.c"
+ >
+ </File>
+ <File
+ RelativePath="..\..\src\switch_event.c"
+ >
+ </File>
+ <File
+ RelativePath="..\..\src\switch_ivr.c"
+ >
+ </File>
+ <File
+ RelativePath="..\..\src\switch_loadable_module.c"
+ >
+ </File>
+ <File
+ RelativePath="..\..\src\switch_log.c"
+ >
+ </File>
+ <File
+ RelativePath="..\..\src\switch_resample.c"
+ >
+ </File>
+ <File
+ RelativePath="..\..\src\switch_rtp.c"
+ >
+ </File>
+ <File
+ RelativePath="..\..\src\switch_stun.c"
+ >
+ </File>
+ <File
+ RelativePath="..\..\src\switch_utils.c"
+ >
+ </File>
+ <File
+ RelativePath="..\..\src\switch_xml.c"
+ >
+ </File>
+ </Filter>
+ <Filter
+ Name="Header Files"
+ Filter="h;hpp;hxx;hm;inl;inc;xsd"
+ UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
+ >
+ <File
+ RelativePath="..\..\src\include\switch.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\src\include\switch_apr.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\src\include\switch_buffer.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\src\include\switch_caller.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\src\include\switch_channel.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\src\include\switch_config.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\src\include\switch_console.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\src\include\switch_core.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\src\include\switch_event.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\src\include\switch_frame.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\src\include\switch_ivr.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\src\include\switch_loadable_module.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\src\include\switch_log.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\src\include\switch_module_interfaces.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\src\include\switch_platform.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\src\include\switch_resample.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\src\include\switch_rtp.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\src\include\switch_sqlite.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\src\include\switch_stun.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\src\include\switch_types.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\src\include\switch_utils.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\src\include\switch_xml.h"
+ >
+ </File>
+ </Filter>
+ <Filter
+ Name="Resource Files"
+ Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx"
+ UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
+ >
+ </Filter>
+ <Filter
+ Name="Generated Header Files"
+ >
+ <File
+ RelativePath="..\..\src\include\switch_version.h.in"
+ >
+ <FileConfiguration
+ Name="Debug|Win32"
+ >
+ <Tool
+ Name="VCCustomBuildTool"
+ Description="Generating switch_version.h"
+ CommandLine="cscript /nologo "$(ProjectDir)..\..\libs\win32\util.vbs" Version "$(ProjectDir)" "$(ProjectDir)..\..\" "$(ProjectDir)..\..\src\include\switch_version.h.in" "$(ProjectDir)..\..\src\include\switch_version.h"
"
+ AdditionalDependencies="..\..\src\include\switch.h;..\..\src\include\switch_apr.h;..\..\src\include\switch_buffer.h;..\..\src\include\switch_caller.h;..\..\src\include\switch_channel.h;..\..\src\include\switch_console.h;..\..\src\include\switch_core.h;..\..\src\include\switch_event.h;..\..\src\include\switch_frame.h;..\..\src\include\switch_ivr.h;..\..\src\include\switch_loadable_module.h;..\..\src\include\switch_log.h;..\..\src\include\switch_module_interfaces.h;..\..\src\include\switch_platform.h;..\..\src\include\switch_resample.h;..\..\src\include\switch_rtp.h;..\..\src\include\switch_sqlite.h;..\..\src\include\switch_stun.h;..\..\src\include\switch_types.h;..\..\src\include\switch_utils.h;..\..\src\include\switch_xml.h;..\..\src\switch_buffer.c;..\..\src\switch_caller.c;..\..\src\switch_channel.c;..\..\src\switch_config.c;..\..\src\switch_console.c;..\..\src\switch_core.c;..\..\src\switch_event.c;..\..\src\switch_ivr.c;..\..\src\switch_loadable_module.c;..\..\src\switch_log.c;..\..\src\switch_resample.c;..\..\src\switch_rtp.c;..\..\src\switch_stun.c;..\..\src\switch_utils.c;..\..\src\switch_xml.c"
+ Outputs="..\..\src\include\switch_version.h"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Release|Win32"
+ >
+ <Tool
+ Name="VCCustomBuildTool"
+ Description="Generating switch_version.h"
+ CommandLine="cscript /nologo "$(ProjectDir)..\..\libs\win32\util.vbs" Version "$(ProjectDir)" "$(ProjectDir)..\..\" "$(ProjectDir)..\..\src\include\switch_version.h.in" "$(ProjectDir)..\..\src\include\switch_version.h"
"
+ AdditionalDependencies="..\..\src\include\switch.h;..\..\src\include\switch_apr.h;..\..\src\include\switch_buffer.h;..\..\src\include\switch_caller.h;..\..\src\include\switch_channel.h;..\..\src\include\switch_console.h;..\..\src\include\switch_core.h;..\..\src\include\switch_event.h;..\..\src\include\switch_frame.h;..\..\src\include\switch_ivr.h;..\..\src\include\switch_loadable_module.h;..\..\src\include\switch_log.h;..\..\src\include\switch_module_interfaces.h;..\..\src\include\switch_platform.h;..\..\src\include\switch_resample.h;..\..\src\include\switch_rtp.h;..\..\src\include\switch_sqlite.h;..\..\src\include\switch_stun.h;..\..\src\include\switch_types.h;..\..\src\include\switch_utils.h;..\..\src\include\switch_xml.h;..\..\src\switch_buffer.c;..\..\src\switch_caller.c;..\..\src\switch_channel.c;..\..\src\switch_config.c;..\..\src\switch_console.c;..\..\src\switch_core.c;..\..\src\switch_event.c;..\..\src\switch_ivr.c;..\..\src\switch_loadable_module.c;..\..\src\switch_log.c;..\..\src\switch_resample.c;..\..\src\switch_rtp.c;..\..\src\switch_stun.c;..\..\src\switch_utils.c;..\..\src\switch_xml.c"
+ Outputs="..\..\src\include\switch_version.h"
+ />
+ </FileConfiguration>
+ </File>
+ </Filter>
+ </Files>
+ <Globals>
+ </Globals>
+</VisualStudioProject>
1
0
27 Aug '06
Author: mikej
Date: Sun Aug 27 16:37:01 2006
New Revision: 2410
Modified:
freeswitch/trunk/Freeswitch.sln
freeswitch/trunk/libs/win32/util.vbs
freeswitch/trunk/w32/vsnet/FreeSwitchCore.vcproj
Log:
move creation of the version header file to use util.vbs
Modified: freeswitch/trunk/Freeswitch.sln
==============================================================================
--- freeswitch/trunk/Freeswitch.sln (original)
+++ freeswitch/trunk/Freeswitch.sln Sun Aug 27 16:37:01 2006
@@ -11,7 +11,6 @@
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "FreeSwitchCoreLib", "w32\vsnet\FreeSwitchCore.vcproj", "{202D7A4E-760D-4D0E-AFA1-D7459CED30FF}"
ProjectSection(ProjectDependencies) = postProject
- {FE191916-DEDD-43B3-B28C-D09C9088C586} = {FE191916-DEDD-43B3-B28C-D09C9088C586}
{50AD0E28-B8D7-4FCC-8FC3-599F6AC69761} = {50AD0E28-B8D7-4FCC-8FC3-599F6AC69761}
{8D04B550-D240-4A44-8A18-35DA3F7038D9} = {8D04B550-D240-4A44-8A18-35DA3F7038D9}
{F057DA7F-79E5-4B00-845C-EF446EF055E3} = {F057DA7F-79E5-4B00-845C-EF446EF055E3}
@@ -154,8 +153,6 @@
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "docs", "docs\docs.vcproj", "{1A1FF289-4FD6-4285-A422-D31DD67A4723}"
EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "FreeSwitchVersion", "w32\vsnet\FreeSwitchVersion.vcproj", "{FE191916-DEDD-43B3-B28C-D09C9088C586}"
-EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "mod_dialplan_xml", "src\mod\dialplans\mod_dialplan_xml\mod_dialplan_xml.vcproj", "{07113B25-D3AF-4E04-BA77-4CD1171F022C}"
ProjectSection(ProjectDependencies) = postProject
{202D7A4E-760D-4D0E-AFA1-D7459CED30FF} = {202D7A4E-760D-4D0E-AFA1-D7459CED30FF}
@@ -592,10 +589,6 @@
{FE3540C5-3303-46E0-A69E-D92F775687F1}.Release|Win32.Build.0 = Release|Win32
{1A1FF289-4FD6-4285-A422-D31DD67A4723}.Debug|Win32.ActiveCfg = Debug|Win32
{1A1FF289-4FD6-4285-A422-D31DD67A4723}.Release|Win32.ActiveCfg = Release|Win32
- {FE191916-DEDD-43B3-B28C-D09C9088C586}.Debug|Win32.ActiveCfg = Debug|Win32
- {FE191916-DEDD-43B3-B28C-D09C9088C586}.Debug|Win32.Build.0 = Debug|Win32
- {FE191916-DEDD-43B3-B28C-D09C9088C586}.Release|Win32.ActiveCfg = Release|Win32
- {FE191916-DEDD-43B3-B28C-D09C9088C586}.Release|Win32.Build.0 = Release|Win32
{07113B25-D3AF-4E04-BA77-4CD1171F022C}.Debug|Win32.ActiveCfg = Debug|Win32
{07113B25-D3AF-4E04-BA77-4CD1171F022C}.Debug|Win32.Build.0 = Debug|Win32
{07113B25-D3AF-4E04-BA77-4CD1171F022C}.Release|Win32.ActiveCfg = Release|Win32
Modified: freeswitch/trunk/libs/win32/util.vbs
==============================================================================
--- freeswitch/trunk/libs/win32/util.vbs (original)
+++ freeswitch/trunk/libs/win32/util.vbs Sun Aug 27 16:37:01 2006
@@ -45,6 +45,9 @@
Wget objArgs(1), Showpath(objArgs(2))
Case "GetUnzip"
WgetUnCompress objArgs(1), Showpath(objArgs(2))
+ Case "Version"
+ 'CreateVersion(tmpFolder, VersionDir, includebase, includedest)
+ CreateVersion Showpath(objArgs(1)), Showpath(objArgs(2)), objArgs(3), objArgs(4)
End Select
End If
@@ -180,3 +183,62 @@
Set f = FSO.GetFolder(folderspec)
showpath = f.path & "\"
End Function
+
+Sub FindReplaceInFile(FileName, sFind, sReplace)
+ Const OpenAsASCII = 0 ' Opens the file as ASCII (TristateFalse)
+ Const OpenAsUnicode = -1 ' Opens the file as Unicode (TristateTrue)
+ Const OpenAsDefault = -2 ' Opens the file using the system default
+
+ Const OverwriteIfExist = -1
+ Const FailIfNotExist = 0
+ Const ForReading = 1
+
+ Set fOrgFile = FSO.OpenTextFile(FileName, ForReading, FailIfNotExist, OpenAsASCII)
+ sText = fOrgFile.ReadAll
+ fOrgFile.Close
+ sText = Replace(sText, sFind, sReplace)
+ Set fNewFile = FSO.CreateTextFile(FileName, OverwriteIfExist, OpenAsASCII)
+ fNewFile.WriteLine sText
+ fNewFile.Close
+End Sub
+
+Sub CreateVersion(tmpFolder, VersionDir, includebase, includedest)
+ Dim oExec
+ If Right(tmpFolder, 1) <> "\" Then tmpFolder = tmpFolder & "\" End If
+ If Not FSO.FileExists(tmpFolder & "svnversion.exe") Then
+ Wget ToolsBase & "svnversion.exe", tmpFolder
+ End If
+ Dim sLastFile
+ Const OverwriteIfExist = -1
+ Const ForReading = 1
+ VersionCmd="svnversion " & quote & VersionDir & "." & quote & " -n"
+ Set MyFile = fso.CreateTextFile(tmpFolder & "tmpVersion.Bat", True)
+ MyFile.WriteLine("@" & "cd " & quote & tmpFolder & quote )
+ MyFile.WriteLine("@" & VersionCmd)
+ MyFile.Close
+ Set oExec = WshShell.Exec(tmpFolder & "tmpVersion.Bat")
+ Do
+ strFromProc = OExec.StdOut.ReadLine()
+ VERSION=strFromProc
+ Loop While Not OExec.StdOut.atEndOfStream
+ sLastVersion = ""
+ Set sLastFile = FSO.OpenTextFile(tmpFolder & "lastversion", ForReading, true, OpenAsASCII)
+ If Not sLastFile.atEndOfStream Then
+ sLastVersion = sLastFile.ReadLine()
+ End If
+ sLastFile.Close
+
+ If VERSION = "" Then
+ VERSION = "UNKNOWN"
+ End If
+
+ If VERSION <> sLastVersion Then
+ Set MyFile = fso.CreateTextFile(tmpFolder & "lastversion", True)
+ MyFile.WriteLine(VERSION)
+ MyFile.Close
+
+ FSO.CopyFile includebase, includedest, true
+ FindReplaceInFile includedest, "@SVN_VERSION@", VERSION
+ End If
+
+End Sub
Modified: freeswitch/trunk/w32/vsnet/FreeSwitchCore.vcproj
==============================================================================
--- freeswitch/trunk/w32/vsnet/FreeSwitchCore.vcproj (original)
+++ freeswitch/trunk/w32/vsnet/FreeSwitchCore.vcproj Sun Aug 27 16:37:01 2006
@@ -384,6 +384,36 @@
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
>
</Filter>
+ <Filter
+ Name="Generated Header Files"
+ >
+ <File
+ RelativePath="..\..\src\include\switch_version.h.in"
+ >
+ <FileConfiguration
+ Name="Debug|Win32"
+ >
+ <Tool
+ Name="VCCustomBuildTool"
+ Description="Generating switch_version.h"
+ CommandLine="cscript /nologo "$(ProjectDir)..\..\libs\win32\util.vbs" Version "$(ProjectDir)" "$(ProjectDir)..\..\" "$(ProjectDir)..\..\src\include\switch_version.h.in" "$(ProjectDir)..\..\src\include\switch_version.h"
"
+ AdditionalDependencies="..\..\src\include\switch.h;..\..\src\include\switch_apr.h;..\..\src\include\switch_buffer.h;..\..\src\include\switch_caller.h;..\..\src\include\switch_channel.h;..\..\src\include\switch_console.h;..\..\src\include\switch_core.h;..\..\src\include\switch_event.h;..\..\src\include\switch_frame.h;..\..\src\include\switch_ivr.h;..\..\src\include\switch_loadable_module.h;..\..\src\include\switch_log.h;..\..\src\include\switch_module_interfaces.h;..\..\src\include\switch_platform.h;..\..\src\include\switch_resample.h;..\..\src\include\switch_rtp.h;..\..\src\include\switch_sqlite.h;..\..\src\include\switch_stun.h;..\..\src\include\switch_types.h;..\..\src\include\switch_utils.h;..\..\src\include\switch_xml.h;..\..\src\switch_buffer.c;..\..\src\switch_caller.c;..\..\src\switch_channel.c;..\..\src\switch_config.c;..\..\src\switch_console.c;..\..\src\switch_core.c;..\..\src\switch_event.c;..\..\src\switch_ivr.c;..\..\src\switch_loadable_module.c;..\..\src\switch_log.c;..\..\src\switch_resample.c;..\..\src\switch_rtp.c;..\..\src\switch_stun.c;..\..\src\switch_utils.c;..\..\src\switch_xml.c"
+ Outputs="..\..\src\include\switch_version.h"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Release|Win32"
+ >
+ <Tool
+ Name="VCCustomBuildTool"
+ Description="Generating switch_version.h"
+ CommandLine="cscript /nologo "$(ProjectDir)..\..\libs\win32\util.vbs" Version "$(ProjectDir)" "$(ProjectDir)..\..\" "$(ProjectDir)..\..\src\include\switch_version.h.in" "$(ProjectDir)..\..\src\include\switch_version.h"
"
+ AdditionalDependencies="..\..\src\include\switch.h;..\..\src\include\switch_apr.h;..\..\src\include\switch_buffer.h;..\..\src\include\switch_caller.h;..\..\src\include\switch_channel.h;..\..\src\include\switch_console.h;..\..\src\include\switch_core.h;..\..\src\include\switch_event.h;..\..\src\include\switch_frame.h;..\..\src\include\switch_ivr.h;..\..\src\include\switch_loadable_module.h;..\..\src\include\switch_log.h;..\..\src\include\switch_module_interfaces.h;..\..\src\include\switch_platform.h;..\..\src\include\switch_resample.h;..\..\src\include\switch_rtp.h;..\..\src\include\switch_sqlite.h;..\..\src\include\switch_stun.h;..\..\src\include\switch_types.h;..\..\src\include\switch_utils.h;..\..\src\include\switch_xml.h;..\..\src\switch_buffer.c;..\..\src\switch_caller.c;..\..\src\switch_channel.c;..\..\src\switch_config.c;..\..\src\switch_console.c;..\..\src\switch_core.c;..\..\src\switch_event.c;..\..\src\switch_ivr.c;..\..\src\switch_loadable_module.c;..\..\src\switch_log.c;..\..\src\switch_resample.c;..\..\src\switch_rtp.c;..\..\src\switch_stun.c;..\..\src\switch_utils.c;..\..\src\switch_xml.c"
+ Outputs="..\..\src\include\switch_version.h"
+ />
+ </FileConfiguration>
+ </File>
+ </Filter>
</Files>
<Globals>
</Globals>
1
0
Author: mikej
Date: Sun Aug 27 16:08:04 2006
New Revision: 2409
Modified:
freeswitch/trunk/libs/win32/Download APR-Iconv.vcproj
freeswitch/trunk/libs/win32/Download APR-Util.vcproj
freeswitch/trunk/libs/win32/Download APR.vcproj
freeswitch/trunk/libs/win32/Download CURL.vcproj
freeswitch/trunk/libs/win32/Download EXOSIP.vcproj
freeswitch/trunk/libs/win32/Download HOWL.vcproj
freeswitch/trunk/libs/win32/Download IKSEMEL.vcproj
freeswitch/trunk/libs/win32/Download LIBRESAMPLE.vcproj
freeswitch/trunk/libs/win32/Download LIBSNDFILE.vcproj
freeswitch/trunk/libs/win32/Download PCRE.vcproj
freeswitch/trunk/libs/win32/Download PORTAUDIO.vcproj
freeswitch/trunk/libs/win32/Download SPEEX.vcproj
freeswitch/trunk/libs/win32/Download SPIDERMONKEY.vcproj
freeswitch/trunk/libs/win32/Download SQLITE.vcproj
freeswitch/trunk/libs/win32/Download XMLRPC.vcproj
Log:
quote directory names for directories with spaces in their names.
Modified: freeswitch/trunk/libs/win32/Download APR-Iconv.vcproj
==============================================================================
--- freeswitch/trunk/libs/win32/Download APR-Iconv.vcproj (original)
+++ freeswitch/trunk/libs/win32/Download APR-Iconv.vcproj Sun Aug 27 16:08:04 2006
@@ -25,6 +25,9 @@
BuildLogFile="$(IntDir)\BuildLog $(ProjectName).htm"
>
<Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
Name="VCCustomBuildTool"
/>
<Tool
@@ -44,6 +47,9 @@
BuildLogFile="$(IntDir)\BuildLog $(ProjectName).htm"
>
<Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
Name="VCCustomBuildTool"
/>
<Tool
@@ -66,7 +72,7 @@
<Tool
Name="VCCustomBuildTool"
Description="Downloading APR-Iconv."
- CommandLine="if not exist $(ProjectDir)..\apr-iconv-1.1.1 cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/apr-iconv-1.1.1.tar.gz $(ProjectDir).."
+ CommandLine="if not exist "$(ProjectDir)..\apr-iconv-1.1.1" cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/apr-iconv-1.1.1.tar.gz "$(ProjectDir).."
"
Outputs="$(ProjectDir)..\apr-iconv-1.1.1"
/>
</FileConfiguration>
@@ -76,7 +82,7 @@
<Tool
Name="VCCustomBuildTool"
Description="Downloading APR-Iconv."
- CommandLine="if not exist $(ProjectDir)..\apr-iconv-1.1.1 cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/apr-iconv-1.1.1.tar.gz $(ProjectDir).."
+ CommandLine="if not exist "$(ProjectDir)..\apr-iconv-1.1.1" cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/apr-iconv-1.1.1.tar.gz "$(ProjectDir).."
"
Outputs="$(ProjectDir)..\apr-iconv-1.1.1"
/>
</FileConfiguration>
Modified: freeswitch/trunk/libs/win32/Download APR-Util.vcproj
==============================================================================
--- freeswitch/trunk/libs/win32/Download APR-Util.vcproj (original)
+++ freeswitch/trunk/libs/win32/Download APR-Util.vcproj Sun Aug 27 16:08:04 2006
@@ -72,7 +72,7 @@
<Tool
Name="VCCustomBuildTool"
Description="Downloading APR-Util."
- CommandLine="if not exist $(ProjectDir)..\apr-util-1.2.7 cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/apr-util-1.2.7.tar.gz $(ProjectDir)..
"
+ CommandLine="if not exist "$(ProjectDir)..\apr-util-1.2.7" cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/apr-util-1.2.7.tar.gz "$(ProjectDir).."
"
Outputs="$(ProjectDir)..\apr-util-1.2.7"
/>
</FileConfiguration>
@@ -82,7 +82,7 @@
<Tool
Name="VCCustomBuildTool"
Description="Downloading APR-Util."
- CommandLine="if not exist $(ProjectDir)..\apr-util-1.2.7 cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/apr-util-1.2.7.tar.gz $(ProjectDir)..
"
+ CommandLine="if not exist "$(ProjectDir)..\apr-util-1.2.7" cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/apr-util-1.2.7.tar.gz "$(ProjectDir).."
"
Outputs="$(ProjectDir)..\apr-util-1.2.7"
/>
</FileConfiguration>
Modified: freeswitch/trunk/libs/win32/Download APR.vcproj
==============================================================================
--- freeswitch/trunk/libs/win32/Download APR.vcproj (original)
+++ freeswitch/trunk/libs/win32/Download APR.vcproj Sun Aug 27 16:08:04 2006
@@ -26,7 +26,6 @@
>
<Tool
Name="VCPreBuildEventTool"
- Description=""
CommandLine=""
/>
<Tool
@@ -52,7 +51,6 @@
>
<Tool
Name="VCPreBuildEventTool"
- Description=""
CommandLine=""
/>
<Tool
@@ -78,7 +76,7 @@
<Tool
Name="VCCustomBuildTool"
Description="Downloading APR."
- CommandLine="if not exist $(ProjectDir)..\apr-1.2.7 cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/apr-1.2.7.tar.gz $(ProjectDir).."
+ CommandLine="if not exist "$(ProjectDir)..\apr-1.2.7" cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/apr-1.2.7.tar.gz "$(ProjectDir).."
"
Outputs="$(ProjectDir)..\apr-1.2.7"
/>
</FileConfiguration>
@@ -88,7 +86,7 @@
<Tool
Name="VCCustomBuildTool"
Description="Downloading APR."
- CommandLine="if not exist $(ProjectDir)..\apr-1.2.7 cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/apr-1.2.7.tar.gz $(ProjectDir).."
+ CommandLine="if not exist "$(ProjectDir)..\apr-1.2.7" cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/apr-1.2.7.tar.gz "$(ProjectDir).."
"
Outputs="$(ProjectDir)..\apr-1.2.7"
/>
</FileConfiguration>
Modified: freeswitch/trunk/libs/win32/Download CURL.vcproj
==============================================================================
--- freeswitch/trunk/libs/win32/Download CURL.vcproj (original)
+++ freeswitch/trunk/libs/win32/Download CURL.vcproj Sun Aug 27 16:08:04 2006
@@ -76,7 +76,7 @@
<Tool
Name="VCCustomBuildTool"
Description="Downloading CURL."
- CommandLine="if not exist $(ProjectDir)..\curl-7.15.2 cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/curl-7.15.2.tar.gz $(ProjectDir)..
"
+ CommandLine="if not exist "$(ProjectDir)..\curl-7.15.2" cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/curl-7.15.2.tar.gz "$(ProjectDir).."
"
Outputs="$(ProjectDir)..\curl-7.15.2"
/>
</FileConfiguration>
@@ -86,7 +86,7 @@
<Tool
Name="VCCustomBuildTool"
Description="Downloading CURL."
- CommandLine="if not exist $(ProjectDir)..\curl-7.15.2 cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/curl-7.15.2.tar.gz $(ProjectDir)..
"
+ CommandLine="if not exist "$(ProjectDir)..\curl-7.15.2" cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/curl-7.15.2.tar.gz "$(ProjectDir).."
"
Outputs="$(ProjectDir)..\curl-7.15.2"
/>
</FileConfiguration>
Modified: freeswitch/trunk/libs/win32/Download EXOSIP.vcproj
==============================================================================
--- freeswitch/trunk/libs/win32/Download EXOSIP.vcproj (original)
+++ freeswitch/trunk/libs/win32/Download EXOSIP.vcproj Sun Aug 27 16:08:04 2006
@@ -76,7 +76,7 @@
<Tool
Name="VCCustomBuildTool"
Description="Downloading EXOSIP."
- CommandLine="if not exist $(ProjectDir)..\libosip2-2.2.2 cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/libosip2-2.2.2.tar.gz $(ProjectDir)..
if not exist $(ProjectDir)..\libeXosip2-2.2.2 cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/libeXosip2-2.2.2.tar.gz $(ProjectDir)..
"
+ CommandLine="if not exist "$(ProjectDir)..\libosip2-2.2.2" cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/libosip2-2.2.2.tar.gz "$(ProjectDir).."
if not exist "$(ProjectDir)..\libeXosip2-2.2.2" cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/libeXosip2-2.2.2.tar.gz "$(ProjectDir).".
"
Outputs="$(ProjectDir)..\libosip2-2.2.2;$(ProjectDir)..\libeXosip2-2.2.2"
/>
</FileConfiguration>
@@ -86,7 +86,7 @@
<Tool
Name="VCCustomBuildTool"
Description="Downloading EXOSIP."
- CommandLine="if not exist $(ProjectDir)..\libosip2-2.2.2 cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/libosip2-2.2.2.tar.gz $(ProjectDir)..
if not exist $(ProjectDir)..\libeXosip2-2.2.2 cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/libeXosip2-2.2.2.tar.gz $(ProjectDir)..
"
+ CommandLine="if not exist "$(ProjectDir)..\libosip2-2.2.2" cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/libosip2-2.2.2.tar.gz "$(ProjectDir).."
if not exist "$(ProjectDir)..\libeXosip2-2.2.2" cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/libeXosip2-2.2.2.tar.gz "$(ProjectDir).".
"
Outputs="$(ProjectDir)..\libosip2-2.2.2;$(ProjectDir)..\libeXosip2-2.2.2"
/>
</FileConfiguration>
Modified: freeswitch/trunk/libs/win32/Download HOWL.vcproj
==============================================================================
--- freeswitch/trunk/libs/win32/Download HOWL.vcproj (original)
+++ freeswitch/trunk/libs/win32/Download HOWL.vcproj Sun Aug 27 16:08:04 2006
@@ -76,7 +76,7 @@
<Tool
Name="VCCustomBuildTool"
Description="Downloading HOWL."
- CommandLine="if not exist $(ProjectDir)..\howl-1.0.0 cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/howl-1.0.0.tar.gz $(ProjectDir)..
"
+ CommandLine="if not exist "$(ProjectDir)..\howl-1.0.0" cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/howl-1.0.0.tar.gz "$(ProjectDir).."
"
Outputs="$(ProjectDir)..\howl-1.0.0"
/>
</FileConfiguration>
@@ -86,7 +86,7 @@
<Tool
Name="VCCustomBuildTool"
Description="Downloading HOWL."
- CommandLine="if not exist $(ProjectDir)..\howl-1.0.0 cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/howl-1.0.0.tar.gz $(ProjectDir)..
"
+ CommandLine="if not exist "$(ProjectDir)..\howl-1.0.0" cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/howl-1.0.0.tar.gz "$(ProjectDir).."
"
Outputs="$(ProjectDir)..\howl-1.0.0"
/>
</FileConfiguration>
Modified: freeswitch/trunk/libs/win32/Download IKSEMEL.vcproj
==============================================================================
--- freeswitch/trunk/libs/win32/Download IKSEMEL.vcproj (original)
+++ freeswitch/trunk/libs/win32/Download IKSEMEL.vcproj Sun Aug 27 16:08:04 2006
@@ -76,7 +76,7 @@
<Tool
Name="VCCustomBuildTool"
Description="Downloading IKSEMEL."
- CommandLine="if not exist $(ProjectDir)..\iksemel-1.2 cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/iksemel-1.2.tar.gz $(ProjectDir)..
"
+ CommandLine="if not exist "$(ProjectDir)..\iksemel-1.2" cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/iksemel-1.2.tar.gz "$(ProjectDir).."
"
Outputs="$(ProjectDir)..\iksemel-1.2"
/>
</FileConfiguration>
@@ -86,7 +86,7 @@
<Tool
Name="VCCustomBuildTool"
Description="Downloading IKSEMEL."
- CommandLine="if not exist $(ProjectDir)..\iksemel-1.2 cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/iksemel-1.2.tar.gz $(ProjectDir)..
"
+ CommandLine="if not exist "$(ProjectDir)..\iksemel-1.2" cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/iksemel-1.2.tar.gz "$(ProjectDir).."
"
Outputs="$(ProjectDir)..\iksemel-1.2"
/>
</FileConfiguration>
Modified: freeswitch/trunk/libs/win32/Download LIBRESAMPLE.vcproj
==============================================================================
--- freeswitch/trunk/libs/win32/Download LIBRESAMPLE.vcproj (original)
+++ freeswitch/trunk/libs/win32/Download LIBRESAMPLE.vcproj Sun Aug 27 16:08:04 2006
@@ -72,7 +72,7 @@
<Tool
Name="VCCustomBuildTool"
Description="Downloading LIBRESAMPLE."
- CommandLine="if not exist $(ProjectDir)..\libresample-0.1.3 cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/libresample-0.1.3.zip $(ProjectDir)..
"
+ CommandLine="if not exist "$(ProjectDir)..\libresample-0.1.3" cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/libresample-0.1.3.zip "$(ProjectDir).."
"
Outputs="$(ProjectDir)..\libresample-0.1.3"
/>
</FileConfiguration>
@@ -82,7 +82,7 @@
<Tool
Name="VCCustomBuildTool"
Description="Downloading LIBRESAMPLE."
- CommandLine="if not exist $(ProjectDir)..\libresample-0.1.3 cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/libresample-0.1.3.zip $(ProjectDir)..
"
+ CommandLine="if not exist "$(ProjectDir)..\libresample-0.1.3" cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/libresample-0.1.3.zip "$(ProjectDir).."
"
Outputs="$(ProjectDir)..\libresample-0.1.3"
/>
</FileConfiguration>
Modified: freeswitch/trunk/libs/win32/Download LIBSNDFILE.vcproj
==============================================================================
--- freeswitch/trunk/libs/win32/Download LIBSNDFILE.vcproj (original)
+++ freeswitch/trunk/libs/win32/Download LIBSNDFILE.vcproj Sun Aug 27 16:08:04 2006
@@ -76,7 +76,7 @@
<Tool
Name="VCCustomBuildTool"
Description="Downloading LIBSNDFILE."
- CommandLine="if not exist $(ProjectDir)..\libsndfile-1.0.16 cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/libsndfile-1.0.16.tar.gz $(ProjectDir)..
"
+ CommandLine="if not exist "$(ProjectDir)..\libsndfile-1.0.16" cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/libsndfile-1.0.16.tar.gz "$(ProjectDir).."
"
Outputs="$(ProjectDir)..\libsndfile-1.0.16"
/>
</FileConfiguration>
@@ -86,7 +86,7 @@
<Tool
Name="VCCustomBuildTool"
Description="Downloading LIBSNDFILE."
- CommandLine="if not exist $(ProjectDir)..\libsndfile-1.0.16 cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/libsndfile-1.0.16.tar.gz $(ProjectDir)..
"
+ CommandLine="if not exist "$(ProjectDir)..\libsndfile-1.0.16" cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/libsndfile-1.0.16.tar.gz "$(ProjectDir).."
"
Outputs="$(ProjectDir)..\libsndfile-1.0.16"
/>
</FileConfiguration>
Modified: freeswitch/trunk/libs/win32/Download PCRE.vcproj
==============================================================================
--- freeswitch/trunk/libs/win32/Download PCRE.vcproj (original)
+++ freeswitch/trunk/libs/win32/Download PCRE.vcproj Sun Aug 27 16:08:04 2006
@@ -72,7 +72,7 @@
<Tool
Name="VCCustomBuildTool"
Description="Downloading PCRE."
- CommandLine="if not exist $(ProjectDir)..\pcre-6.4 cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/pcre-6.4.tar.gz $(ProjectDir)..
"
+ CommandLine="if not exist "$(ProjectDir)..\pcre-6.4" cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/pcre-6.4.tar.gz "$(ProjectDir).."
"
Outputs="$(ProjectDir)..\pcre-6.4"
/>
</FileConfiguration>
@@ -82,7 +82,7 @@
<Tool
Name="VCCustomBuildTool"
Description="Downloading PCRE."
- CommandLine="if not exist $(ProjectDir)..\pcre-6.4 cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/pcre-6.4.tar.gz $(ProjectDir)..
"
+ CommandLine="if not exist "$(ProjectDir)..\pcre-6.4" cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/pcre-6.4.tar.gz "$(ProjectDir).."
"
Outputs="$(ProjectDir)..\pcre-6.4"
/>
</FileConfiguration>
Modified: freeswitch/trunk/libs/win32/Download PORTAUDIO.vcproj
==============================================================================
--- freeswitch/trunk/libs/win32/Download PORTAUDIO.vcproj (original)
+++ freeswitch/trunk/libs/win32/Download PORTAUDIO.vcproj Sun Aug 27 16:08:04 2006
@@ -76,7 +76,7 @@
<Tool
Name="VCCustomBuildTool"
Description="Downloading PORTAUDIO."
- CommandLine="if not exist $(ProjectDir)..\portaudio_v18_1 cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/portaudio_v18_1.zip $(ProjectDir)..
"
+ CommandLine="if not exist "$(ProjectDir)..\portaudio_v18_1" cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/portaudio_v18_1.zip "$(ProjectDir).."
"
Outputs="$(ProjectDir)..\portaudio_v18_1"
/>
</FileConfiguration>
@@ -86,7 +86,7 @@
<Tool
Name="VCCustomBuildTool"
Description="Downloading PORTAUDIO."
- CommandLine="if not exist $(ProjectDir)..\portaudio_v18_1 cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/portaudio_v18_1.zip $(ProjectDir)..
"
+ CommandLine="if not exist "$(ProjectDir)..\portaudio_v18_1" cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/portaudio_v18_1.zip "$(ProjectDir).."
"
Outputs="$(ProjectDir)..\portaudio_v18_1"
/>
</FileConfiguration>
Modified: freeswitch/trunk/libs/win32/Download SPEEX.vcproj
==============================================================================
--- freeswitch/trunk/libs/win32/Download SPEEX.vcproj (original)
+++ freeswitch/trunk/libs/win32/Download SPEEX.vcproj Sun Aug 27 16:08:04 2006
@@ -76,7 +76,7 @@
<Tool
Name="VCCustomBuildTool"
Description="Downloading SPEEX."
- CommandLine="if not exist $(ProjectDir)..\speex-1.1.11.1 cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/speex-1.1.11.1.tar.gz $(ProjectDir)..
"
+ CommandLine="if not exist "$(ProjectDir)..\speex-1.1.11.1" cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/speex-1.1.11.1.tar.gz "$(ProjectDir).."
"
Outputs="$(ProjectDir)..\speex-1.1.11.1"
/>
</FileConfiguration>
@@ -86,7 +86,7 @@
<Tool
Name="VCCustomBuildTool"
Description="Downloading SPEEX."
- CommandLine="if not exist $(ProjectDir)..\speex-1.1.11.1 cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/speex-1.1.11.1.tar.gz $(ProjectDir)..
"
+ CommandLine="if not exist "$(ProjectDir)..\speex-1.1.11.1" cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/speex-1.1.11.1.tar.gz "$(ProjectDir).."
"
Outputs="$(ProjectDir)..\speex-1.1.11.1"
/>
</FileConfiguration>
Modified: freeswitch/trunk/libs/win32/Download SPIDERMONKEY.vcproj
==============================================================================
--- freeswitch/trunk/libs/win32/Download SPIDERMONKEY.vcproj (original)
+++ freeswitch/trunk/libs/win32/Download SPIDERMONKEY.vcproj Sun Aug 27 16:08:04 2006
@@ -76,7 +76,7 @@
<Tool
Name="VCCustomBuildTool"
Description="Downloading SPIDERMONKEY."
- CommandLine="if not exist $(ProjectDir)..\js20051231 cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/js20051231.zip $(ProjectDir)..
if not exist $(ProjectDir)..\nspr-4.6.1.winnt5.debug cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/nspr-4.6.1.winnt5.debug.zip $(ProjectDir)..
if not exist $(ProjectDir)..\nspr-4.6.1.winnt5.release cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/nspr-4.6.1.winnt5.release.zip $(ProjectDir)..
"
+ CommandLine="if not exist "$(ProjectDir)..\js20051231" cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/js20051231.zip "$(ProjectDir).."
if not exist "$(ProjectDir)..\nspr-4.6.1.winnt5.debug" cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/nspr-4.6.1.winnt5.debug.zip "$(ProjectDir).."
if not exist "$(ProjectDir)..\nspr-4.6.1.winnt5.release" cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/nspr-4.6.1.winnt5.release.zip "$(ProjectDir).."
"
Outputs="$(ProjectDir)..\js20051231"
/>
</FileConfiguration>
@@ -86,7 +86,7 @@
<Tool
Name="VCCustomBuildTool"
Description="Downloading SPIDERMONKEY."
- CommandLine="if not exist $(ProjectDir)..\js20051231 cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/js20051231.zip $(ProjectDir)..
if not exist $(ProjectDir)..\nspr-4.6.1.winnt5.debug cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/nspr-4.6.1.winnt5.debug.zip $(ProjectDir)..
if not exist $(ProjectDir)..\nspr-4.6.1.winnt5.release cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/nspr-4.6.1.winnt5.release.zip $(ProjectDir)..
"
+ CommandLine="if not exist "$(ProjectDir)..\js20051231" cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/js20051231.zip "$(ProjectDir).."
if not exist "$(ProjectDir)..\nspr-4.6.1.winnt5.debug" cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/nspr-4.6.1.winnt5.debug.zip "$(ProjectDir).."
if not exist "$(ProjectDir)..\nspr-4.6.1.winnt5.release" cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/nspr-4.6.1.winnt5.release.zip "$(ProjectDir).."
"
Outputs="$(ProjectDir)..\js20051231"
/>
</FileConfiguration>
Modified: freeswitch/trunk/libs/win32/Download SQLITE.vcproj
==============================================================================
--- freeswitch/trunk/libs/win32/Download SQLITE.vcproj (original)
+++ freeswitch/trunk/libs/win32/Download SQLITE.vcproj Sun Aug 27 16:08:04 2006
@@ -72,7 +72,7 @@
<Tool
Name="VCCustomBuildTool"
Description="Downloading SQLITE."
- CommandLine="if not exist $(ProjectDir)..\sqlite-source-3_3_6 cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/sqlite-source-3_3_6.zip $(ProjectDir)..
"
+ CommandLine="if not exist "$(ProjectDir)..\sqlite-source-3_3_6" cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/sqlite-source-3_3_6.zip "$(ProjectDir).."
"
Outputs="$(ProjectDir)..\sqlite-source-3_3_6"
/>
</FileConfiguration>
@@ -82,7 +82,7 @@
<Tool
Name="VCCustomBuildTool"
Description="Downloading SQLITE."
- CommandLine="if not exist $(ProjectDir)..\sqlite-source-3_3_6 cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/sqlite-source-3_3_6.zip $(ProjectDir)..
"
+ CommandLine="if not exist "$(ProjectDir)..\sqlite-source-3_3_6" cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/sqlite-source-3_3_6.zip "$(ProjectDir).."
"
Outputs="$(ProjectDir)..\sqlite-source-3_3_6"
/>
</FileConfiguration>
Modified: freeswitch/trunk/libs/win32/Download XMLRPC.vcproj
==============================================================================
--- freeswitch/trunk/libs/win32/Download XMLRPC.vcproj (original)
+++ freeswitch/trunk/libs/win32/Download XMLRPC.vcproj Sun Aug 27 16:08:04 2006
@@ -76,7 +76,7 @@
<Tool
Name="VCCustomBuildTool"
Description="Downloading XMLRPC."
- CommandLine="if not exist $(ProjectDir)..\xmlrpc-c-1.03.14 cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/xmlrpc-c-1.03.14.tgz $(ProjectDir)..
"
+ CommandLine="if not exist "$(ProjectDir)..\xmlrpc-c-1.03.14" cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/xmlrpc-c-1.03.14.tgz "$(ProjectDir).."
"
Outputs="$(ProjectDir)..\xmlrpc-c-1.03.14"
/>
</FileConfiguration>
@@ -86,7 +86,7 @@
<Tool
Name="VCCustomBuildTool"
Description="Downloading XMLRPC."
- CommandLine="if not exist $(ProjectDir)..\xmlrpc-c-1.03.14 cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/xmlrpc-c-1.03.14.tgz $(ProjectDir)..
"
+ CommandLine="if not exist "$(ProjectDir)..\xmlrpc-c-1.03.14" cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://svn.freeswitch.org/downloads/libs/xmlrpc-c-1.03.14.tgz "$(ProjectDir).."
"
Outputs="$(ProjectDir)..\xmlrpc-c-1.03.14"
/>
</FileConfiguration>
1
0
Author: mikej
Date: Sun Aug 27 13:35:38 2006
New Revision: 2408
Modified:
freeswitch/trunk/w32/vsnet/FreeSwitchCore.vcproj
Log:
remove getlibs call as this is all done in the solution file now.
Modified: freeswitch/trunk/w32/vsnet/FreeSwitchCore.vcproj
==============================================================================
--- freeswitch/trunk/w32/vsnet/FreeSwitchCore.vcproj (original)
+++ freeswitch/trunk/w32/vsnet/FreeSwitchCore.vcproj Sun Aug 27 13:35:38 2006
@@ -26,7 +26,7 @@
>
<Tool
Name="VCPreBuildEventTool"
- CommandLine="cscript /nologo "$(InputDir)getlibs.vbs" Core Debug"
+ CommandLine=""
/>
<Tool
Name="VCCustomBuildTool"
@@ -120,7 +120,7 @@
>
<Tool
Name="VCPreBuildEventTool"
- CommandLine="cscript /nologo "$(InputDir)getlibs.vbs" Core Release"
+ CommandLine=""
/>
<Tool
Name="VCCustomBuildTool"
1
0
Author: mikej
Date: Sun Aug 27 00:21:27 2006
New Revision: 2405
Modified:
freeswitch/trunk/libs/win32/util.vbs
Log:
make downloads work without adodb.stream in case it fails. Thanks to Dave Horner for the inspiration on this.
Modified: freeswitch/trunk/libs/win32/util.vbs
==============================================================================
--- freeswitch/trunk/libs/win32/util.vbs (original)
+++ freeswitch/trunk/libs/win32/util.vbs Sun Aug 27 00:21:27 2006
@@ -1,3 +1,9 @@
+'
+' Contributor(s):
+' Michael Jerris <mike(a)jerris.com>
+' David A. Horner http://dave.thehorners.com
+'----------------------------------------------
+
'On Error Resume Next
' **************
' Initialization
@@ -7,13 +13,28 @@
Set FSO = CreateObject("Scripting.FileSystemObject")
Set WshSysEnv = WshShell.Environment("SYSTEM")
Set xml = CreateObject("Microsoft.XMLHTTP")
+Dim UseWgetEXE
+
+On Error Resume Next
Set oStream = CreateObject("Adodb.Stream")
+On Error Goto 0
+
+If Not IsObject(oStream) Then
+ wscript.echo("Failed to create Adodb.Stream, using alternative download method.")
+ UseWgetEXE=true
+Else
+ UseWgetEXE=false
+End If
+
Set objArgs = WScript.Arguments
quote=Chr(34)
ScriptDir=Left(WScript.ScriptFullName,Len(WScript.ScriptFullName)-Len(WScript.ScriptName))
UtilsDir=Showpath(ScriptDir)
ToolsBase="http://svn.freeswitch.org/downloads/win32/"
+If UseWgetEXE Then
+ GetWgetEXE UtilsDir
+End If
GetCompressionTools UtilsDir
@@ -58,6 +79,14 @@
End If
End Sub
+Sub GetWgetEXE(DestFolder)
+ Dim oExec
+ If Right(DestFolder, 1) <> "\" Then DestFolder = DestFolder & "\" End If
+ If Not FSO.FileExists(DestFolder & "wget.exe") Then
+ Slow_Wget ToolsBase & "wget.exe", DestFolder
+ End If
+End Sub
+
Sub UnCompress(Archive, DestFolder)
wscript.echo("Extracting: " & Archive)
Set MyFile = fso.CreateTextFile(UtilsDir & "tmpcmd.Bat", True)
@@ -100,19 +129,51 @@
If Right(DestFolder, 1) <> "\" Then DestFolder = DestFolder & "\" End If
Wscript.echo("Downloading: " & URL)
+
+If UseWgetEXE Then
+ Set MyFile = fso.CreateTextFile(UtilsDir & "tmpcmd.Bat", True)
+ MyFile.WriteLine("@cd " & quote & DestFolder & quote)
+ MyFile.WriteLine("@" & quote & UtilsDir & "wget.exe" & quote & " " & URL)
+ MyFile.Close
+ Set oExec = WshShell.Exec(UtilsDir & "tmpcmd.Bat")
+ Do
+ WScript.Echo OExec.StdOut.ReadLine()
+ Loop While Not OExec.StdOut.atEndOfStream
+
+Else
xml.Open "GET", URL, False
xml.Send
Const adTypeBinary = 1
Const adSaveCreateOverWrite = 2
Const adSaveCreateNotExist = 1
-
+
oStream.type = adTypeBinary
oStream.open
oStream.write xml.responseBody
oStream.savetofile DestFolder & filename, adSaveCreateOverWrite
-
oStream.close
+End If
+
+End Sub
+
+Sub Slow_Wget(URL, DestFolder)
+ StartPos = InstrRev(URL, "/", -1, 1)
+ strlength = Len(URL)
+ filename=Right(URL,strlength-StartPos)
+ If Right(DestFolder, 1) <> "\" Then DestFolder = DestFolder & "\" End If
+
+ Wscript.echo("Downloading: " & URL)
+ xml.Open "GET", URL, False
+ xml.Send
+
+ const ForReading = 1 , ForWriting = 2 , ForAppending = 8
+Set MyFile = fso.OpenTextFile(DestFolder & filename ,ForWriting, True)
+For i = 1 to lenb(xml.responseBody)
+ MyFile.write Chr(Ascb(midb(xml.responseBody,i,1)))
+Next
+MyFile.Close()
+
End Sub
Function Showpath(folderspec)
1
0
[commit] r2403 - in freeswitch/trunk/src/mod/applications: mod_dptools mod_playback
by Freeswitch SVN 26 Aug '06
by Freeswitch SVN 26 Aug '06
26 Aug '06
Author: mikej
Date: Sat Aug 26 17:21:02 2006
New Revision: 2403
Modified:
freeswitch/trunk/src/mod/applications/mod_dptools/mod_dptools.c
freeswitch/trunk/src/mod/applications/mod_playback/mod_playback.c
Log:
add answer application, change playback to preanswer by default.
Modified: freeswitch/trunk/src/mod/applications/mod_dptools/mod_dptools.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_dptools/mod_dptools.c (original)
+++ freeswitch/trunk/src/mod/applications/mod_dptools/mod_dptools.c Sat Aug 26 17:21:02 2006
@@ -45,6 +45,14 @@
}
}
+static void answer_function(switch_core_session_t *session, char *data)
+{
+ switch_channel_t *channel;
+ channel = switch_core_session_get_channel(session);
+ assert(channel != NULL);
+ switch_channel_answer(channel);
+}
+
static void set_function(switch_core_session_t *session, char *data)
{
switch_channel_t *channel;
@@ -118,11 +126,19 @@
/*.application_function */ set_function
};
+static const switch_application_interface_t answer_application_interface = {
+ /*.interface_name */ "answer",
+ /*.application_function */ answer_function,
+ NULL,NULL,NULL,
+ &set_application_interface
+
+};
+
static const switch_application_interface_t strftime_application_interface = {
/*.interface_name */ "strftime",
/*.application_function */ strftime_function,
NULL,NULL,NULL,
- &set_application_interface
+ &answer_application_interface
};
Modified: freeswitch/trunk/src/mod/applications/mod_playback/mod_playback.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_playback/mod_playback.c (original)
+++ freeswitch/trunk/src/mod/applications/mod_playback/mod_playback.c Sat Aug 26 17:21:02 2006
@@ -91,7 +91,7 @@
switch_channel_hangup(channel, SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER);
}
- switch_channel_answer(channel);
+ switch_channel_pre_answer(channel);
switch_ivr_speak_text(session, engine, voice, timer_name, codec->implementation->samples_per_second, on_dtmf, text, buf, sizeof(buf));
}
1
0
[commit] r2401 - in freeswitch/trunk/src/mod: applications/mod_playback endpoints/mod_sofia
by Freeswitch SVN 26 Aug '06
by Freeswitch SVN 26 Aug '06
26 Aug '06
Author: anthm
Date: Sat Aug 26 17:13:56 2006
New Revision: 2401
Modified:
freeswitch/trunk/src/mod/applications/mod_playback/mod_playback.c
freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c
Log:
update
Modified: freeswitch/trunk/src/mod/applications/mod_playback/mod_playback.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_playback/mod_playback.c (original)
+++ freeswitch/trunk/src/mod/applications/mod_playback/mod_playback.c Sat Aug 26 17:13:56 2006
@@ -111,7 +111,7 @@
channel = switch_core_session_get_channel(session);
assert(channel != NULL);
- switch_channel_answer(channel);
+ switch_channel_pre_answer(channel);
if (switch_ivr_play_file(session, NULL, file_name, timer_name, on_dtmf, NULL, 0) != SWITCH_STATUS_SUCCESS) {
switch_channel_hangup(channel, SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER);
Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c (original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c Sat Aug 26 17:13:56 2006
@@ -180,13 +180,13 @@
static switch_status_t sofia_on_transmit(switch_core_session_t *session);
static switch_status_t sofia_outgoing_channel(switch_core_session_t *session, switch_caller_profile_t *outbound_profile,
- switch_core_session_t **new_session, switch_memory_pool_t *pool);
+ switch_core_session_t **new_session, switch_memory_pool_t *pool);
static switch_status_t sofia_read_frame(switch_core_session_t *session, switch_frame_t **frame, int timeout,
- switch_io_flag_t flags, int stream_id);
+ switch_io_flag_t flags, int stream_id);
static switch_status_t sofia_write_frame(switch_core_session_t *session, switch_frame_t *frame, int timeout,
- switch_io_flag_t flags, int stream_id);
+ switch_io_flag_t flags, int stream_id);
static switch_status_t config_sofia(int reload);
@@ -205,7 +205,7 @@
private_object_t *tech_pvt,
char *channame);
-static void terminate_session(switch_core_session_t **session, switch_call_cause_t cause);
+static void terminate_session(switch_core_session_t **session, switch_call_cause_t cause, int line);
static switch_status_t tech_choose_port(private_object_t *tech_pvt);
@@ -358,32 +358,33 @@
switch_channel_set_name(channel, name);
}
-static void terminate_session(switch_core_session_t **session, switch_call_cause_t cause)
+static void terminate_session(switch_core_session_t **session, switch_call_cause_t cause, int line)
{
+ switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Term called from line: %d\n", line);
if (*session) {
switch_channel_t *channel = switch_core_session_get_channel(*session);
switch_channel_state_t state = switch_channel_get_state(channel);
struct private_object *tech_pvt = NULL;
tech_pvt = switch_core_session_get_private(*session);
- assert(tech_pvt != NULL);
- if (state > CS_INIT && state < CS_HANGUP) {
- switch_channel_hangup(channel, cause);
- }
-
- if (!switch_test_flag(tech_pvt, TFLAG_READY)) {
+ if (tech_pvt) {
if (state > CS_INIT && state < CS_HANGUP) {
- sofia_on_hangup(*session);
+ switch_channel_hangup(channel, cause);
+ }
+
+ if (!switch_test_flag(tech_pvt, TFLAG_READY)) {
+ if (state > CS_INIT && state < CS_HANGUP) {
+ sofia_on_hangup(*session);
+ }
+ switch_core_session_destroy(session);
}
-
+ } else {
switch_core_session_destroy(session);
-
}
}
}
-
static switch_status_t tech_choose_port(private_object_t *tech_pvt)
{
char *ip = tech_pvt->profile->rtpip;
@@ -404,7 +405,7 @@
char *stun_ip = tech_pvt->profile->extrtpip + 5;
if (!stun_ip) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Stun Failed! NO STUN SERVER\n");
- terminate_session(&tech_pvt->session, SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER);
+ terminate_session(&tech_pvt->session, SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER, __LINE__);
return SWITCH_STATUS_FALSE;
}
if (switch_stun_lookup(&ip,
@@ -414,7 +415,7 @@
&err,
switch_core_session_get_pool(tech_pvt->session)) != SWITCH_STATUS_SUCCESS) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Stun Failed! %s:%d [%s]\n", stun_ip, SWITCH_STUN_DEFAULT_PORT, err);
- terminate_session(&tech_pvt->session, SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER);
+ terminate_session(&tech_pvt->session, SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER, __LINE__);
return SWITCH_STATUS_FALSE;
}
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "Stun Success [%s]:[%d]\n", ip, sdp_port);
@@ -457,9 +458,9 @@
}
/*
-State methods they get called when the state changes to the specific state
-returning SWITCH_STATUS_SUCCESS tells the core to execute the standard state method next
-so if you fully implement the state you can return SWITCH_STATUS_FALSE to skip it.
+ State methods they get called when the state changes to the specific state
+ returning SWITCH_STATUS_SUCCESS tells the core to execute the standard state method next
+ so if you fully implement the state you can return SWITCH_STATUS_FALSE to skip it.
*/
static switch_status_t sofia_on_init(switch_core_session_t *session)
{
@@ -595,7 +596,7 @@
assert(tech_pvt->codecs[tech_pvt->codec_index] != NULL);
if (tech_pvt->rtp_session) {
- return SWITCH_STATUS_SUCCESS;
+ return SWITCH_STATUS_SUCCESS;
}
@@ -608,7 +609,7 @@
NULL,
switch_core_session_get_pool(tech_pvt->session)) != SWITCH_STATUS_SUCCESS) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Can't load codec?\n");
- terminate_session(&tech_pvt->session, SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER);
+ terminate_session(&tech_pvt->session, SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER, __LINE__);
return SWITCH_STATUS_FALSE;
} else {
if (switch_core_codec_init(&tech_pvt->write_codec,
@@ -620,7 +621,7 @@
NULL,
switch_core_session_get_pool(tech_pvt->session)) != SWITCH_STATUS_SUCCESS) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Can't load codec?\n");
- terminate_session(&tech_pvt->session, SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER);
+ terminate_session(&tech_pvt->session, SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER, __LINE__);
return SWITCH_STATUS_FALSE;
} else {
int ms;
@@ -683,7 +684,7 @@
}
} else {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "RTP REPORTS ERROR: [%s]\n", err);
- terminate_session(&tech_pvt->session, SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER);
+ terminate_session(&tech_pvt->session, SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER, __LINE__);
switch_clear_flag_locked(tech_pvt, TFLAG_IO);
return SWITCH_STATUS_FALSE;
}
@@ -721,7 +722,7 @@
static switch_status_t sofia_read_frame(switch_core_session_t *session, switch_frame_t **frame, int timeout,
- switch_io_flag_t flags, int stream_id)
+ switch_io_flag_t flags, int stream_id)
{
private_object_t *tech_pvt = NULL;
size_t bytes = 0, samples = 0, frames = 0, ms = 0;
@@ -826,7 +827,7 @@
static switch_status_t sofia_write_frame(switch_core_session_t *session, switch_frame_t *frame, int timeout,
- switch_io_flag_t flags, int stream_id)
+ switch_io_flag_t flags, int stream_id)
{
private_object_t *tech_pvt;
switch_channel_t *channel = NULL;
@@ -958,17 +959,17 @@
switch (msg->message_id) {
case SWITCH_MESSAGE_INDICATE_BRIDGE:
- if (tech_pvt->rtp_session && switch_test_flag(tech_pvt, TFLAG_TIMER)) {
- switch_rtp_clear_flag(tech_pvt->rtp_session, SWITCH_RTP_FLAG_USE_TIMER);
- switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "De-activate timed RTP!\n");
- }
- break;
+ if (tech_pvt->rtp_session && switch_test_flag(tech_pvt, TFLAG_TIMER)) {
+ switch_rtp_clear_flag(tech_pvt->rtp_session, SWITCH_RTP_FLAG_USE_TIMER);
+ switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "De-activate timed RTP!\n");
+ }
+ break;
case SWITCH_MESSAGE_INDICATE_UNBRIDGE:
- if (tech_pvt->rtp_session && switch_test_flag(tech_pvt, TFLAG_TIMER)) {
- switch_rtp_set_flag(tech_pvt->rtp_session, SWITCH_RTP_FLAG_USE_TIMER);
- switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Re-activate timed RTP!\n");
- }
- break;
+ if (tech_pvt->rtp_session && switch_test_flag(tech_pvt, TFLAG_TIMER)) {
+ switch_rtp_set_flag(tech_pvt->rtp_session, SWITCH_RTP_FLAG_USE_TIMER);
+ switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Re-activate timed RTP!\n");
+ }
+ break;
case SWITCH_MESSAGE_INDICATE_PROGRESS: {
struct private_object *tech_pvt;
switch_channel_t *channel = NULL;
@@ -980,13 +981,13 @@
assert(tech_pvt != NULL);
if (!switch_test_flag(tech_pvt, TFLAG_EARLY_MEDIA)) {
+ switch_set_flag_locked(tech_pvt, TFLAG_EARLY_MEDIA);
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "Asked to send early media by %s\n", msg->from);
/* Transmit 183 Progress with SDP */
tech_choose_port(tech_pvt);
set_local_sdp(tech_pvt);
activate_rtp(tech_pvt);
- //help me this 183 line will not work. The resulting 183 has no sdp, sigh...
- nua_respond(tech_pvt->nh, SIP_183_SESSION_PROGRESS, SOATAG_LOCAL_SDP_STR(tech_pvt->local_sdp_str), TAG_END());
+ nua_respond(tech_pvt->nh, SIP_183_SESSION_PROGRESS, SOATAG_USER_SDP_STR(tech_pvt->local_sdp_str), TAG_END());
//nua_respond(tech_pvt->nh, SIP_200_OK, SOATAG_USER_SDP_STR(tech_pvt->local_sdp_str), TAG_END());
}
}
@@ -1037,7 +1038,7 @@
};
static switch_status_t sofia_outgoing_channel(switch_core_session_t *session, switch_caller_profile_t *outbound_profile,
- switch_core_session_t **new_session, switch_memory_pool_t *pool)
+ switch_core_session_t **new_session, switch_memory_pool_t *pool)
{
switch_status_t status = SWITCH_STATUS_FALSE;
switch_core_session_t *nsession;
@@ -1056,7 +1057,7 @@
if (!(tech_pvt = (struct private_object *) switch_core_session_alloc(nsession, sizeof(*tech_pvt)))) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Error Creating Session\n");
- terminate_session(&nsession, SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER);
+ terminate_session(&nsession, SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER, __LINE__);
goto done;
}
@@ -1065,7 +1066,7 @@
if (!(dest = strchr(profile_name, '/'))) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Invalid URL\n");
- terminate_session(&nsession, SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER);
+ terminate_session(&nsession, SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER, __LINE__);
goto done;
}
@@ -1073,7 +1074,7 @@
if (!(profile = (sofia_profile_t *) switch_core_hash_find(globals.profile_hash, profile_name))) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Invalid Profile\n");
- terminate_session(&nsession, SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER);
+ terminate_session(&nsession, SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER, __LINE__);
goto done;
}
@@ -1224,7 +1225,7 @@
if (match) {
tech_choose_port(tech_pvt);
activate_rtp(tech_pvt);
- switch_channel_set_variable(channel, "endpoint_disposition", "PROGRESS");
+ switch_channel_set_variable(channel, "endpoint_disposition", "EARLY MEDIA");
switch_channel_pre_answer(channel);
return;
}
@@ -1273,30 +1274,36 @@
case nua_callstate_completed:
break;
case nua_callstate_ready:
- if (session && r_sdp) {
- su_home_t home[1] = { SU_HOME_INIT(home) };
- sdp_parser_t *parser = sdp_parse(home, r_sdp, (int)strlen(r_sdp), 0);
- sdp_session_t *sdp;
- uint8_t match = 0;
+ if (session) {
+ if (r_sdp) {
+ su_home_t home[1] = { SU_HOME_INIT(home) };
+ sdp_parser_t *parser = sdp_parse(home, r_sdp, (int)strlen(r_sdp), 0);
+ sdp_session_t *sdp;
+ uint8_t match = 0;
- if (tech_pvt->num_codecs) {
- if ((sdp = sdp_session(parser))) {
- match = negotiate_sdp(session, sdp);
+ if (tech_pvt->num_codecs) {
+ if ((sdp = sdp_session(parser))) {
+ match = negotiate_sdp(session, sdp);
+ }
}
- }
- if (parser) {
- sdp_parser_free(parser);
- }
+ if (parser) {
+ sdp_parser_free(parser);
+ }
- if (home) {
- su_home_deinit(home);
- }
+ if (home) {
+ su_home_deinit(home);
+ }
- if (match) {
+ if (match) {
+ switch_channel_set_variable(channel, "endpoint_disposition", "ANSWER");
+ tech_choose_port(tech_pvt);
+ activate_rtp(tech_pvt);
+ switch_channel_answer(channel);
+ return;
+ }
+ } else if (switch_test_flag(tech_pvt, TFLAG_EARLY_MEDIA)) {
switch_channel_set_variable(channel, "endpoint_disposition", "ANSWER");
- tech_choose_port(tech_pvt);
- activate_rtp(tech_pvt);
switch_channel_answer(channel);
return;
}
@@ -1309,7 +1316,7 @@
case nua_callstate_terminated:
if (session) {
switch_set_flag_locked(tech_pvt, TFLAG_BYE);
- terminate_session(&session, SWITCH_CAUSE_NORMAL_CLEARING);
+ terminate_session(&session, SWITCH_CAUSE_NORMAL_CLEARING, __LINE__);
}
break;
}
@@ -1338,7 +1345,7 @@
if (!(tech_pvt = (private_object_t *) switch_core_session_alloc(session, sizeof(private_object_t)))) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Hey where is my memory pool?\n");
- terminate_session(&session, SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER);
+ terminate_session(&session, SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER, __LINE__);
return;
}
@@ -1522,7 +1529,8 @@
event_callback, /* Callback for processing events */
profile, /* Additional data to pass to callback */
NUTAG_URL(profile->url),
- NUTAG_EARLY_MEDIA(1),
+ NUTAG_EARLY_MEDIA(1),
+ SIPTAG_SUPPORTED_STR("100rel, precondition"),
TAG_END()); /* Last tag should always finish the sequence */
for (node = profile->aliases; node; node = node->next) {
@@ -1531,6 +1539,7 @@
profile, /* Additional data to pass to callback */
NUTAG_URL(node->url),
NUTAG_EARLY_MEDIA(1),
+ SIPTAG_SUPPORTED_STR("100rel, precondition"),
TAG_END()); /* Last tag should always finish the sequence */
}
1
0
26 Aug '06
Author: mikej
Date: Sat Aug 26 01:36:59 2006
New Revision: 2400
Added:
freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.vcproj
Modified:
freeswitch/trunk/Freeswitch.sln
Log:
add initial windows build bits for sofia-sip. This still needs the lib added to the build process and will not work with the stock sofia-sip tarball just yet. More commits to come.
Modified: freeswitch/trunk/Freeswitch.sln
==============================================================================
--- freeswitch/trunk/Freeswitch.sln (original)
+++ freeswitch/trunk/Freeswitch.sln Sat Aug 26 01:36:59 2006
@@ -386,11 +386,11 @@
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libaprutil", "libs\win32\apr-util\libaprutil.vcproj", "{F057DA7F-79E5-4B00-845C-EF446EF055E3}"
ProjectSection(ProjectDependencies) = postProject
- {E969F3E0-1043-482A-AD49-787B8356BA92} = {E969F3E0-1043-482A-AD49-787B8356BA92}
- {101130D1-3EA6-4ED2-B65D-CEB5243A20ED} = {101130D1-3EA6-4ED2-B65D-CEB5243A20ED}
- {F6C55D93-B927-4483-BB69-15AEF3DD2DFF} = {F6C55D93-B927-4483-BB69-15AEF3DD2DFF}
{C4854C1D-5478-4F87-AB62-36CCDDDBA3C7} = {C4854C1D-5478-4F87-AB62-36CCDDDBA3C7}
{5786D51D-1C6A-4BE1-8804-29954DB5258F} = {5786D51D-1C6A-4BE1-8804-29954DB5258F}
+ {F6C55D93-B927-4483-BB69-15AEF3DD2DFF} = {F6C55D93-B927-4483-BB69-15AEF3DD2DFF}
+ {101130D1-3EA6-4ED2-B65D-CEB5243A20ED} = {101130D1-3EA6-4ED2-B65D-CEB5243A20ED}
+ {E969F3E0-1043-482A-AD49-787B8356BA92} = {E969F3E0-1043-482A-AD49-787B8356BA92}
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "_Downloads", "_Downloads", "{C120A020-773F-4EA3-923F-B67AF28B750D}"
@@ -404,8 +404,8 @@
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Download APR-Util", "libs\win32\Download APR-Util.vcproj", "{E969F3E0-1043-482A-AD49-787B8356BA92}"
ProjectSection(ProjectDependencies) = postProject
- {5786D51D-1C6A-4BE1-8804-29954DB5258F} = {5786D51D-1C6A-4BE1-8804-29954DB5258F}
{C4854C1D-5478-4F87-AB62-36CCDDDBA3C7} = {C4854C1D-5478-4F87-AB62-36CCDDDBA3C7}
+ {5786D51D-1C6A-4BE1-8804-29954DB5258F} = {5786D51D-1C6A-4BE1-8804-29954DB5258F}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Download LIBRESAMPLE", "libs\win32\Download LIBRESAMPLE.vcproj", "{C3B50FF8-E49B-4589-B07A-4D7866980669}"
@@ -510,6 +510,14 @@
{B0AA13FC-636C-45A7-8EAE-663220679A75} = {B0AA13FC-636C-45A7-8EAE-663220679A75}
EndProjectSection
EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "mod_sofia", "src\mod\endpoints\mod_sofia\mod_sofia.vcproj", "{0DF3ABD0-DDC0-4265-B778-07C66780979B}"
+ ProjectSection(ProjectDependencies) = postProject
+ {202D7A4E-760D-4D0E-AFA1-D7459CED30FF} = {202D7A4E-760D-4D0E-AFA1-D7459CED30FF}
+ {F057DA7F-79E5-4B00-845C-EF446EF055E3} = {F057DA7F-79E5-4B00-845C-EF446EF055E3}
+ {F6C55D93-B927-4483-BB69-15AEF3DD2DFF} = {F6C55D93-B927-4483-BB69-15AEF3DD2DFF}
+ {101130D1-3EA6-4ED2-B65D-CEB5243A20ED} = {101130D1-3EA6-4ED2-B65D-CEB5243A20ED}
+ EndProjectSection
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
@@ -840,6 +848,8 @@
{204FA0DE-305D-4414-AE2E-F195A23F390D}.Debug|Win32.Build.0 = Debug|Win32
{204FA0DE-305D-4414-AE2E-F195A23F390D}.Release|Win32.ActiveCfg = Release|Win32
{204FA0DE-305D-4414-AE2E-F195A23F390D}.Release|Win32.Build.0 = Release|Win32
+ {0DF3ABD0-DDC0-4265-B778-07C66780979B}.Debug|Win32.ActiveCfg = Debug|Win32
+ {0DF3ABD0-DDC0-4265-B778-07C66780979B}.Release|Win32.ActiveCfg = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
@@ -871,6 +881,7 @@
{FE3540C5-3303-46E0-A69E-D92F775687F1} = {9460B5F1-0A95-41C4-BEB7-9C2C96459A7C}
{45DF84ED-D24A-4FF6-B5B0-0A9A5FDB9552} = {9460B5F1-0A95-41C4-BEB7-9C2C96459A7C}
{FFAA4C52-3A53-4F99-90C1-D59D1F0427F3} = {9460B5F1-0A95-41C4-BEB7-9C2C96459A7C}
+ {0DF3ABD0-DDC0-4265-B778-07C66780979B} = {9460B5F1-0A95-41C4-BEB7-9C2C96459A7C}
{DCC13474-28DF-47CA-A8EB-72F8CE9A78C5} = {2D57D093-3F8D-4729-AD9A-68E945C200A5}
{07113B25-D3AF-4E04-BA77-4CD1171F022C} = {C5F182F9-754A-4EC5-B50F-76ED02BE13F4}
{A27CCA23-1541-4337-81A4-F0A6413078A0} = {C5F182F9-754A-4EC5-B50F-76ED02BE13F4}
Added: freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.vcproj
==============================================================================
--- (empty file)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.vcproj Sat Aug 26 01:36:59 2006
@@ -0,0 +1,217 @@
+<?xml version="1.0" encoding="Windows-1252"?>
+<VisualStudioProject
+ ProjectType="Visual C++"
+ Version="8.00"
+ Name="mod_sofia"
+ ProjectGUID="{0DF3ABD0-DDC0-4265-B778-07C66780979B}"
+ RootNamespace="mod_sofia"
+ Keyword="Win32Proj"
+ >
+ <Platforms>
+ <Platform
+ Name="Win32"
+ />
+ </Platforms>
+ <ToolFiles>
+ </ToolFiles>
+ <Configurations>
+ <Configuration
+ Name="Debug|Win32"
+ OutputDirectory="$(ConfigurationName)"
+ IntermediateDirectory="$(ConfigurationName)"
+ ConfigurationType="2"
+ InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
+ CharacterSet="2"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ CommandLine=""
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ Optimization="0"
+ AdditionalIncludeDirectories=""$(InputDir)..\..\..\include";"$(InputDir)..\..\..\..\libs\include";"$(InputDir)..\..\..\..\libs\sofia-sip\libsofia-sip-ua\su";"$(InputDir)..\..\..\..\libs\sofia-sip\libsofia-sip-ua\nua";"$(InputDir)..\..\..\..\libs\sofia-sip\win32";"$(InputDir)..\..\..\..\libs\sofia-sip\libsofia-sip-ua\url";"$(InputDir)..\..\..\..\libs\sofia-sip\libsofia-sip-ua\sip";"$(InputDir)..\..\..\..\libs\sofia-sip\libsofia-sip-ua\msg";"$(InputDir)..\..\..\..\libs\sofia-sip\libsofia-sip-ua\sdp";"$(InputDir)..\..\..\..\libs\sofia-sip\libsofia-sip-ua\nta";"$(InputDir)..\..\..\..\libs\sofia-sip\libsofia-sip-ua\nea";"$(InputDir)..\..\..\..\libs\sofia-sip\libsofia-sip-ua\soa""
+ PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;MOD_EXPORTS"
+ MinimalRebuild="true"
+ BasicRuntimeChecks="3"
+ RuntimeLibrary="3"
+ UsePrecompiledHeader="0"
+ WarningLevel="4"
+ WarnAsError="true"
+ Detect64BitPortabilityProblems="true"
+ DebugInformationFormat="3"
+ DisableSpecificWarnings="4201"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ />
+ <Tool
+ Name="VCLinkerTool"
+ AdditionalDependencies="libsofia_sip_ua.lib"
+ OutputFile="$(SolutionDir)$(OutDir)/mod/$(InputName).dll"
+ LinkIncremental="1"
+ AdditionalLibraryDirectories=""$(ProjectDir)..\..\..\..\libs\sofia-sip\win32\libsofia-sip-ua\$(OutDir)";"..\..\..\..\w32\vsnet\$(OutDir)""
+ GenerateDebugInformation="true"
+ ProgramDatabaseFile="$(OutDir)$(TargetName).pdb"
+ SubSystem="2"
+ ImportLibrary="$(OutDir)/mod_sofia.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|Win32"
+ OutputDirectory="$(ConfigurationName)"
+ IntermediateDirectory="$(ConfigurationName)"
+ ConfigurationType="2"
+ InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
+ CharacterSet="2"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ CommandLine=""
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ AdditionalIncludeDirectories=""$(InputDir)..\..\..\include";"$(InputDir)..\..\..\..\libs\include";"$(InputDir)..\..\..\..\libs\sofia-sip\libsofia-sip-ua\su";"$(InputDir)..\..\..\..\libs\sofia-sip\libsofia-sip-ua\nua";"$(InputDir)..\..\..\..\libs\sofia-sip\win32";"$(InputDir)..\..\..\..\libs\sofia-sip\libsofia-sip-ua\url";"$(InputDir)..\..\..\..\libs\sofia-sip\libsofia-sip-ua\sip";"$(InputDir)..\..\..\..\libs\sofia-sip\libsofia-sip-ua\msg";"$(InputDir)..\..\..\..\libs\sofia-sip\libsofia-sip-ua\sdp";"$(InputDir)..\..\..\..\libs\sofia-sip\libsofia-sip-ua\nta";"$(InputDir)..\..\..\..\libs\sofia-sip\libsofia-sip-ua\nea";"$(InputDir)..\..\..\..\libs\sofia-sip\libsofia-sip-ua\soa""
+ PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;MOD_EXPORTS"
+ RuntimeLibrary="2"
+ UsePrecompiledHeader="0"
+ WarningLevel="4"
+ WarnAsError="true"
+ Detect64BitPortabilityProblems="true"
+ DebugInformationFormat="3"
+ DisableSpecificWarnings="4201"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ />
+ <Tool
+ Name="VCLinkerTool"
+ AdditionalDependencies="libsofia_sip_ua.lib"
+ OutputFile="$(SolutionDir)$(OutDir)/mod/$(InputName).dll"
+ LinkIncremental="1"
+ AdditionalLibraryDirectories=""$(ProjectDir)..\..\..\..\libs\sofia-sip\win32\libsofia-sip-ua\$(OutDir)";"..\..\..\..\w32\vsnet\$(OutDir)""
+ GenerateDebugInformation="true"
+ ProgramDatabaseFile="$(OutDir)$(TargetName).pdb"
+ SubSystem="2"
+ OptimizeReferences="2"
+ EnableCOMDATFolding="2"
+ LinkTimeCodeGeneration="1"
+ ImportLibrary="$(OutDir)/mod_sofia.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>
+ <References>
+ </References>
+ <Files>
+ <Filter
+ Name="Source Files"
+ Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx"
+ UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
+ >
+ <File
+ RelativePath=".\mod_sofia.c"
+ >
+ </File>
+ </Filter>
+ <Filter
+ Name="Header Files"
+ Filter="h;hpp;hxx;hm;inl;inc;xsd"
+ UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
+ >
+ </Filter>
+ <Filter
+ Name="Resource Files"
+ Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx"
+ UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
+ >
+ </Filter>
+ </Files>
+ <Globals>
+ </Globals>
+</VisualStudioProject>
1
0