Fixed compilation in Windows. Added project files for SS7.

git-svn-id: http://yate.null.ro/svn/yate/trunk@769 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2006-05-02 20:49:40 +00:00
parent 68bff227d7
commit a38e95ac3c
8 changed files with 295 additions and 2 deletions

View File

@ -70,7 +70,7 @@ void SignallingReceiver::attach(SignallingInterface* iface)
bool SignallingReceiver::notify(SignallingInterface::Notification event)
{
DDebug(engine(),DebugInfo,"Unhandled SignallingReceiver::notify(%d) [%p]",event,this);
DDebug(DebugInfo,"Unhandled SignallingReceiver::notify(%d) [%p]",event,this);
return false;
}

View File

@ -107,7 +107,7 @@ bool SS7MTP2::receivedPacket(const DataBlock& packet)
Debug("STUB",DebugWarn,"Please implement SS7MTP2::receivedPacket()");
if (packet.length() < 3) {
XDebug(engine(),DebugMild,"Received short packet of length %u [%p]",
packet.length(),this)
packet.length(),this);
return false;
}
const unsigned char* buf = (const unsigned char*)packet.data();

View File

@ -35,6 +35,7 @@ void SS7MTP3::attach(SS7Layer2* link)
bool SS7MTP3::receivedMSU(const SS7MSU& msu)
{
Debug("STUB",DebugWarn,"Please implement SS7MTP3::receivedMSU()");
return false;
}
/* vi: set ts=8 sw=4 sts=4 noet: */

View File

@ -17,4 +17,5 @@ int main()
Thread::msleep(100);
delete engine;
Output("SS7 library test stopped");
return 0;
}

View File

@ -168,6 +168,10 @@ SOURCE=..\engine\Thread.cpp
# End Source File
# Begin Source File
SOURCE=..\engine\URI.cpp
# End Source File
# Begin Source File
SOURCE=..\engine\YMD5.cpp
# End Source File
# End Group

109
windows/TestSS7.dsp Normal file
View File

@ -0,0 +1,109 @@
# Microsoft Developer Studio Project File - Name="TestSS7" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Console Application" 0x0103
CFG=TestSS7 - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
!MESSAGE NMAKE /f "TestSS7.mak".
!MESSAGE
!MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
!MESSAGE NMAKE /f "TestSS7.mak" CFG="TestSS7 - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
!MESSAGE "TestSS7 - Win32 Release" (based on "Win32 (x86) Console Application")
!MESSAGE "TestSS7 - Win32 Debug" (based on "Win32 (x86) Console Application")
!MESSAGE
# Begin Project
# PROP AllowPerConfigDependencies 0
# PROP Scc_ProjName ""
# PROP Scc_LocalPath ""
CPP=cl.exe
RSC=rc.exe
!IF "$(CFG)" == "TestSS7 - Win32 Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
# PROP BASE Output_Dir "Release"
# PROP BASE Intermediate_Dir "Release"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 0
# PROP Output_Dir "Release"
# PROP Intermediate_Dir "Release"
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
# ADD CPP /nologo /MD /W3 /GX /O2 /I "." /I ".." /I "../contrib/yss7" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "_MBCS" /D "LIBYSS7_STATIC" /FD /c
# SUBTRACT CPP /YX
# ADD BASE RSC /l 0x409 /d "NDEBUG"
# ADD RSC /l 0x409 /d "NDEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
# ADD LINK32 kernel32.lib /nologo /subsystem:console /machine:I386 /out:"Release/test-yss7.exe"
# SUBTRACT LINK32 /incremental:yes
!ELSEIF "$(CFG)" == "TestSS7 - Win32 Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
# PROP BASE Output_Dir "Debug"
# PROP BASE Intermediate_Dir "Debug"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 1
# PROP Output_Dir "Debug"
# PROP Intermediate_Dir "Debug"
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /I "." /I ".." /I "../contrib/yss7" /D "_DEBUG" /D "WIN32" /D "_WINDOWS" /D "_MBCS" /D "LIBYSS7_STATIC" /FD /GZ /c
# SUBTRACT CPP /YX
# ADD BASE RSC /l 0x409 /d "_DEBUG"
# ADD RSC /l 0x409 /d "_DEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
# ADD LINK32 kernel32.lib /nologo /subsystem:console /incremental:no /debug /machine:I386 /out:"Debug/test-yss7.exe" /pdbtype:sept
!ENDIF
# Begin Target
# Name "TestSS7 - Win32 Release"
# Name "TestSS7 - Win32 Debug"
# Begin Group "Source Files"
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
# Begin Source File
SOURCE="..\contrib\yss7\main-ss7test.cpp"
# End Source File
# End Group
# Begin Group "Header Files"
# PROP Default_Filter "h;hpp;hxx;hm;inl"
# End Group
# Begin Group "Resource Files"
# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
# Begin Source File
SOURCE=.\version.rc
# End Source File
# End Group
# End Target
# End Project

View File

@ -50,6 +50,9 @@ Package=<4>
Begin Project Dependency
Project_Dep_Name libyrtp
End Project Dependency
Begin Project Dependency
Project_Dep_Name libyss7
End Project Dependency
}}}
###############################################################################
@ -222,6 +225,24 @@ Package=<4>
###############################################################################
Project: "TestSS7"=.\TestSS7.dsp - Package Owner=<4>
Package=<5>
{{{
}}}
Package=<4>
{{{
Begin Project Dependency
Project_Dep_Name Libyate
End Project Dependency
Begin Project Dependency
Project_Dep_Name libyss7
End Project Dependency
}}}
###############################################################################
Project: "YATE"=.\YATE.dsp - Package Owner=<4>
Package=<5>
@ -753,6 +774,21 @@ Package=<4>
###############################################################################
Project: "libyss7"=.\libyss7.dsp - Package Owner=<4>
Package=<5>
{{{
}}}
Package=<4>
{{{
Begin Project Dependency
Project_Dep_Name Libyate
End Project Dependency
}}}
###############################################################################
Global:
Package=<5>

142
windows/libyss7.dsp Normal file
View File

@ -0,0 +1,142 @@
# Microsoft Developer Studio Project File - Name="libyss7" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Static Library" 0x0104
CFG=libyss7 - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
!MESSAGE NMAKE /f "libyss7.mak".
!MESSAGE
!MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
!MESSAGE NMAKE /f "libyss7.mak" CFG="libyss7 - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
!MESSAGE "libyss7 - Win32 Release" (based on "Win32 (x86) Static Library")
!MESSAGE "libyss7 - Win32 Debug" (based on "Win32 (x86) Static Library")
!MESSAGE
# Begin Project
# PROP AllowPerConfigDependencies 0
# PROP Scc_ProjName ""
# PROP Scc_LocalPath ""
CPP=cl.exe
RSC=rc.exe
!IF "$(CFG)" == "libyss7 - Win32 Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
# PROP BASE Output_Dir "Release"
# PROP BASE Intermediate_Dir "Release"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 0
# PROP Output_Dir "Release"
# PROP Intermediate_Dir "Release\yss7"
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c
# ADD CPP /nologo /MD /W3 /O2 /I "." /I ".." /I "..\contrib\yss7" /D "NDEBUG" /D "WIN32" /D "_MBCS" /D "_LIB" /D "LIBYSS7_STATIC" /FD /c
# SUBTRACT CPP /YX
# ADD BASE RSC /l 0x409 /d "NDEBUG"
# ADD RSC /l 0x409 /d "NDEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LIB32=link.exe -lib
# ADD BASE LIB32 /nologo
# ADD LIB32 /nologo
!ELSEIF "$(CFG)" == "libyss7 - Win32 Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
# PROP BASE Output_Dir "Debug"
# PROP BASE Intermediate_Dir "Debug"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 1
# PROP Output_Dir "Debug"
# PROP Intermediate_Dir "Debug\yss7"
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c
# ADD CPP /nologo /MDd /W3 /Gm /Zi /Od /I "." /I ".." /I "..\contrib\yss7" /D "_DEBUG" /D "WIN32" /D "_MBCS" /D "_LIB" /D "LIBYSS7_STATIC" /FR /FD /GZ /c
# SUBTRACT CPP /YX
# ADD BASE RSC /l 0x409 /d "_DEBUG"
# ADD RSC /l 0x409 /d "_DEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LIB32=link.exe -lib
# ADD BASE LIB32 /nologo
# ADD LIB32 /nologo
!ENDIF
# Begin Target
# Name "libyss7 - Win32 Release"
# Name "libyss7 - Win32 Debug"
# Begin Group "Source Files"
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
# Begin Source File
SOURCE=..\contrib\yss7\engine.cpp
# End Source File
# Begin Source File
SOURCE=..\contrib\yss7\interface.cpp
# End Source File
# Begin Source File
SOURCE=..\contrib\yss7\layer2.cpp
# End Source File
# Begin Source File
SOURCE=..\contrib\yss7\layer3.cpp
# End Source File
# Begin Source File
SOURCE=..\contrib\yss7\q921.cpp
# End Source File
# Begin Source File
SOURCE=..\contrib\yss7\q931.cpp
# End Source File
# Begin Source File
SOURCE=..\contrib\yss7\router.cpp
# End Source File
# Begin Source File
SOURCE=..\contrib\yss7\sccp.cpp
# End Source File
# Begin Source File
SOURCE=..\contrib\yss7\sigcall.cpp
# End Source File
# Begin Source File
SOURCE=..\contrib\yss7\sigtran.cpp
# End Source File
# Begin Source File
SOURCE=..\contrib\yss7\tcap.cpp
# End Source File
# End Group
# Begin Group "Header Files"
# PROP Default_Filter "h;hpp;hxx;hm;inl"
# Begin Source File
SOURCE=..\contrib\yss7\yatess7.h
# End Source File
# End Group
# End Target
# End Project