├── .gitignore ├── .vs └── npsipsdk │ └── v14 │ └── .suo ├── .vscode ├── c_cpp_properties.json └── launch.json ├── CMakeCache.txt ├── CMakeFiles ├── 3.5.1 │ ├── CMakeCCompiler.cmake │ ├── CMakeCXXCompiler.cmake │ ├── CMakeDetermineCompilerABI_C.bin │ ├── CMakeDetermineCompilerABI_CXX.bin │ ├── CMakeSystem.cmake │ ├── CompilerIdC │ │ └── CMakeCCompilerId.c │ └── CompilerIdCXX │ │ └── CMakeCXXCompilerId.cpp ├── CMakeDirectoryInformation.cmake ├── CMakeOutput.log ├── Makefile.cmake ├── Makefile2 ├── TargetDirectories.txt ├── cmake.check_cache ├── feature_tests.bin ├── feature_tests.c ├── feature_tests.cxx ├── npsipsdk.dir │ ├── CXX.includecache │ ├── DependInfo.cmake │ ├── build.make │ ├── cmake_clean.cmake │ ├── cmake_clean_target.cmake │ ├── depend.internal │ ├── depend.make │ ├── flags.make │ ├── link.txt │ └── progress.make └── progress.marks ├── CMakeLists.txt ├── Makefile ├── Message ├── AlarmNotifyMsg.cpp ├── AlarmNotifyMsg.hpp ├── BroadcastMsg.cpp ├── BroadcastMsg.hpp ├── CallInfoMsg.cpp ├── CallInfoMsg.hpp ├── CallMessageMsg.cpp ├── CallMessageMsg.hpp ├── CatalogNotifyMsg.cpp ├── CatalogNotifyMsg.hpp ├── ConfigDownloadMsg.cpp ├── ConfigDownloadMsg.hpp ├── DeviceConfigMsg.cpp ├── DeviceConfigMsg.hpp ├── DeviceControlMsg.cpp ├── DeviceControlMsg.hpp ├── DeviceStatusNotifyMsg.cpp ├── DeviceStatusNotifyMsg.hpp ├── GB28181.hpp ├── GB28181Ex.hpp ├── GBMessage.cpp ├── GBMessage.hpp ├── GetTempAccountMsg.cpp ├── GetTempAccountMsg.hpp ├── InviteMsg.cpp ├── InviteMsg.hpp ├── KeepaliveMsg.cpp ├── KeepaliveMsg.hpp ├── Message.cpp ├── Message.hpp ├── MessageMsg.cpp ├── MessageMsg.hpp ├── MsgCreater.hpp ├── MsgFactory.cpp ├── MsgFactory.hpp ├── NpClientMsg.cpp ├── NpClientMsg.hpp ├── NpGatewayMsg.cpp ├── NpGatewayMsg.hpp ├── QueryAlarmMsg.cpp ├── QueryAlarmMsg.hpp ├── QueryCatalogMsg.cpp ├── QueryCatalogMsg.hpp ├── QueryDeviceInfoMsg.cpp ├── QueryDeviceInfoMsg.hpp ├── QueryDeviceStatusMsg.cpp ├── QueryDeviceStatusMsg.hpp ├── QueryRecordInfoMsg.cpp ├── QueryRecordInfoMsg.hpp ├── RegisterMsg.cpp ├── RegisterMsg.hpp ├── SubscriptionMsg.cpp └── SubscriptionMsg.hpp ├── README.md ├── build ├── CMakeCache.txt ├── CMakeFiles │ ├── 3.5.1 │ │ ├── CMakeCCompiler.cmake │ │ ├── CMakeCXXCompiler.cmake │ │ ├── CMakeDetermineCompilerABI_C.bin │ │ ├── CMakeDetermineCompilerABI_CXX.bin │ │ ├── CMakeSystem.cmake │ │ ├── CompilerIdC │ │ │ └── CMakeCCompilerId.c │ │ └── CompilerIdCXX │ │ │ └── CMakeCXXCompilerId.cpp │ ├── CMakeDirectoryInformation.cmake │ ├── CMakeOutput.log │ ├── Makefile.cmake │ ├── Makefile2 │ ├── TargetDirectories.txt │ ├── cmake.check_cache │ ├── feature_tests.bin │ ├── feature_tests.c │ ├── feature_tests.cxx │ ├── npsipsdk.dir │ │ ├── CXX.includecache │ │ ├── DependInfo.cmake │ │ ├── build.make │ │ ├── cmake_clean.cmake │ │ ├── cmake_clean_target.cmake │ │ ├── depend.internal │ │ ├── depend.make │ │ ├── flags.make │ │ ├── link.txt │ │ └── progress.make │ └── progress.marks ├── Makefile ├── cmake_install.cmake └── compile_commands.json ├── cmake_install.cmake ├── header ├── InviteHandler.h ├── Log.hpp ├── MessageHandler.h ├── MessageQueue.hpp ├── NPReproAuthMananger.h ├── NotifyHandler.h ├── OutboundProxyContainer.h ├── RegisterHandler.h ├── SipClient.hpp ├── SipGateway.hpp ├── SipInterface.h ├── SubscriptionHandler.h └── WorkThreads.h ├── npsipsdk.sln ├── npsipsdk.vcproj ├── npsipsdk.vcxproj ├── npsipsdk.vcxproj.filters ├── source ├── Log.cpp ├── NPReproAuthManager.cpp ├── OutboundProxyContainer.cpp ├── RegisterHandler.cpp ├── SipClient.cpp ├── SipGatewary.cpp ├── SipInterface.cpp └── WorkThreads.cpp └── tinyxml2 ├── tinyxml2.cpp └── tinyxml2.h /.gitignore: -------------------------------------------------------------------------------- 1 | # Prerequisites 2 | *.d 3 | 4 | # Compiled Object files 5 | *.slo 6 | *.lo 7 | *.o 8 | *.obj 9 | 10 | # Precompiled Headers 11 | *.gch 12 | *.pch 13 | 14 | # Compiled Dynamic libraries 15 | *.so 16 | *.dylib 17 | *.dll 18 | 19 | # Fortran module files 20 | *.mod 21 | *.smod 22 | 23 | # Compiled Static libraries 24 | *.lai 25 | *.la 26 | *.a 27 | *.lib 28 | 29 | # Executables 30 | *.exe 31 | *.out 32 | *.app 33 | -------------------------------------------------------------------------------- /.vs/npsipsdk/v14/.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/escoffier/sipsdk/4d906b32cdc0677be6663249712825eb57d1f870/.vs/npsipsdk/v14/.suo -------------------------------------------------------------------------------- /.vscode/c_cpp_properties.json: -------------------------------------------------------------------------------- 1 | { 2 | "configurations": [ 3 | { 4 | "name": "Linux", 5 | "includePath": [ 6 | "${workspaceFolder}/**", 7 | "${workspaceFolder}/tinyxml2" 8 | ], 9 | "defines": [], 10 | "compilerPath": "/usr/bin/clang", 11 | "cStandard": "c11", 12 | "cppStandard": "c++17", 13 | "intelliSenseMode": "clang-x64", 14 | "compileCommands": "${workspaceFolder}/build/compile_commands.json" 15 | } 16 | ], 17 | "version": 4 18 | } -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- 1 | { 2 | // Use IntelliSense to learn about possible attributes. 3 | // Hover to view descriptions of existing attributes. 4 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 5 | "version": "0.2.0", 6 | "configurations": [ 7 | { 8 | "name": "(gdb) Launch", 9 | "type": "cppdbg", 10 | "request": "launch", 11 | "program": "enter program name, for example ${workspaceFolder}/a.out", 12 | "args": [], 13 | "stopAtEntry": false, 14 | "cwd": "${workspaceFolder}", 15 | "environment": [], 16 | "externalConsole": true, 17 | "MIMode": "gdb", 18 | "setupCommands": [ 19 | { 20 | "description": "Enable pretty-printing for gdb", 21 | "text": "-enable-pretty-printing", 22 | "ignoreFailures": true 23 | } 24 | ] 25 | } 26 | ] 27 | } -------------------------------------------------------------------------------- /CMakeCache.txt: -------------------------------------------------------------------------------- 1 | # This is the CMakeCache file. 2 | # For build in directory: /home/robbie/workspace/media/npsipsdk 3 | # It was generated by CMake: /usr/bin/cmake 4 | # You can edit this file to change values found and used by cmake. 5 | # If you do not want to change any of the values, simply exit the editor. 6 | # If you do want to change a value, simply edit, save, and exit the editor. 7 | # The syntax for the file is as follows: 8 | # KEY:TYPE=VALUE 9 | # KEY is the name of a variable in the cache. 10 | # TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!. 11 | # VALUE is the current value for the KEY. 12 | 13 | ######################## 14 | # EXTERNAL cache entries 15 | ######################## 16 | 17 | //Path to a program. 18 | CMAKE_AR:FILEPATH=/usr/bin/ar 19 | 20 | //Choose the type of build, options are: None(CMAKE_CXX_FLAGS or 21 | // CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel. 22 | CMAKE_BUILD_TYPE:STRING= 23 | 24 | //Enable/Disable color output during build. 25 | CMAKE_COLOR_MAKEFILE:BOOL=ON 26 | 27 | //CXX compiler 28 | CMAKE_CXX_COMPILER:FILEPATH=/usr/bin/c++ 29 | 30 | //Flags used by the compiler during all build types. 31 | CMAKE_CXX_FLAGS:STRING= 32 | 33 | //Flags used by the compiler during debug builds. 34 | CMAKE_CXX_FLAGS_DEBUG:STRING=-g 35 | 36 | //Flags used by the compiler during release builds for minimum 37 | // size. 38 | CMAKE_CXX_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG 39 | 40 | //Flags used by the compiler during release builds. 41 | CMAKE_CXX_FLAGS_RELEASE:STRING=-O3 -DNDEBUG 42 | 43 | //Flags used by the compiler during release builds with debug info. 44 | CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG 45 | 46 | //C compiler 47 | CMAKE_C_COMPILER:FILEPATH=/usr/bin/cc 48 | 49 | //Flags used by the compiler during all build types. 50 | CMAKE_C_FLAGS:STRING= 51 | 52 | //Flags used by the compiler during debug builds. 53 | CMAKE_C_FLAGS_DEBUG:STRING=-g 54 | 55 | //Flags used by the compiler during release builds for minimum 56 | // size. 57 | CMAKE_C_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG 58 | 59 | //Flags used by the compiler during release builds. 60 | CMAKE_C_FLAGS_RELEASE:STRING=-O3 -DNDEBUG 61 | 62 | //Flags used by the compiler during release builds with debug info. 63 | CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG 64 | 65 | //Flags used by the linker. 66 | CMAKE_EXE_LINKER_FLAGS:STRING= 67 | 68 | //Flags used by the linker during debug builds. 69 | CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING= 70 | 71 | //Flags used by the linker during release minsize builds. 72 | CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING= 73 | 74 | //Flags used by the linker during release builds. 75 | CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING= 76 | 77 | //Flags used by the linker during Release with Debug Info builds. 78 | CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING= 79 | 80 | //Enable/Disable output of compile commands during generation. 81 | CMAKE_EXPORT_COMPILE_COMMANDS:BOOL=OFF 82 | 83 | //Install path prefix, prepended onto install directories. 84 | CMAKE_INSTALL_PREFIX:PATH=/usr/local 85 | 86 | //Path to a program. 87 | CMAKE_LINKER:FILEPATH=/usr/bin/ld 88 | 89 | //Path to a program. 90 | CMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/make 91 | 92 | //Flags used by the linker during the creation of modules. 93 | CMAKE_MODULE_LINKER_FLAGS:STRING= 94 | 95 | //Flags used by the linker during debug builds. 96 | CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING= 97 | 98 | //Flags used by the linker during release minsize builds. 99 | CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING= 100 | 101 | //Flags used by the linker during release builds. 102 | CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING= 103 | 104 | //Flags used by the linker during Release with Debug Info builds. 105 | CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING= 106 | 107 | //Path to a program. 108 | CMAKE_NM:FILEPATH=/usr/bin/nm 109 | 110 | //Path to a program. 111 | CMAKE_OBJCOPY:FILEPATH=/usr/bin/objcopy 112 | 113 | //Path to a program. 114 | CMAKE_OBJDUMP:FILEPATH=/usr/bin/objdump 115 | 116 | //Value Computed by CMake 117 | CMAKE_PROJECT_NAME:STATIC=npsipsdk 118 | 119 | //Path to a program. 120 | CMAKE_RANLIB:FILEPATH=/usr/bin/ranlib 121 | 122 | //Flags used by the linker during the creation of dll's. 123 | CMAKE_SHARED_LINKER_FLAGS:STRING= 124 | 125 | //Flags used by the linker during debug builds. 126 | CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING= 127 | 128 | //Flags used by the linker during release minsize builds. 129 | CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING= 130 | 131 | //Flags used by the linker during release builds. 132 | CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING= 133 | 134 | //Flags used by the linker during Release with Debug Info builds. 135 | CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING= 136 | 137 | //If set, runtime paths are not added when installing shared libraries, 138 | // but are added when building. 139 | CMAKE_SKIP_INSTALL_RPATH:BOOL=NO 140 | 141 | //If set, runtime paths are not added when using shared libraries. 142 | CMAKE_SKIP_RPATH:BOOL=NO 143 | 144 | //Flags used by the linker during the creation of static libraries. 145 | CMAKE_STATIC_LINKER_FLAGS:STRING= 146 | 147 | //Flags used by the linker during debug builds. 148 | CMAKE_STATIC_LINKER_FLAGS_DEBUG:STRING= 149 | 150 | //Flags used by the linker during release minsize builds. 151 | CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL:STRING= 152 | 153 | //Flags used by the linker during release builds. 154 | CMAKE_STATIC_LINKER_FLAGS_RELEASE:STRING= 155 | 156 | //Flags used by the linker during Release with Debug Info builds. 157 | CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO:STRING= 158 | 159 | //Path to a program. 160 | CMAKE_STRIP:FILEPATH=/usr/bin/strip 161 | 162 | //If this value is on, makefiles will be generated without the 163 | // .SILENT directive, and all commands will be echoed to the console 164 | // during the make. This is useful for debugging only. With Visual 165 | // Studio IDE projects all commands are done without /nologo. 166 | CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE 167 | 168 | //Value Computed by CMake 169 | npsipsdk_BINARY_DIR:STATIC=/home/robbie/workspace/media/npsipsdk 170 | 171 | //Dependencies for the target 172 | npsipsdk_LIB_DEPENDS:STATIC=general;libresip.so;general;libresipares.so;general;librutil.so;general;libdum.so; 173 | 174 | //Value Computed by CMake 175 | npsipsdk_SOURCE_DIR:STATIC=/home/robbie/workspace/media/npsipsdk 176 | 177 | 178 | ######################## 179 | # INTERNAL cache entries 180 | ######################## 181 | 182 | //ADVANCED property for variable: CMAKE_AR 183 | CMAKE_AR-ADVANCED:INTERNAL=1 184 | //This is the directory where this CMakeCache.txt was created 185 | CMAKE_CACHEFILE_DIR:INTERNAL=/home/robbie/workspace/media/npsipsdk 186 | //Major version of cmake used to create the current loaded cache 187 | CMAKE_CACHE_MAJOR_VERSION:INTERNAL=3 188 | //Minor version of cmake used to create the current loaded cache 189 | CMAKE_CACHE_MINOR_VERSION:INTERNAL=5 190 | //Patch version of cmake used to create the current loaded cache 191 | CMAKE_CACHE_PATCH_VERSION:INTERNAL=1 192 | //ADVANCED property for variable: CMAKE_COLOR_MAKEFILE 193 | CMAKE_COLOR_MAKEFILE-ADVANCED:INTERNAL=1 194 | //Path to CMake executable. 195 | CMAKE_COMMAND:INTERNAL=/usr/bin/cmake 196 | //Path to cpack program executable. 197 | CMAKE_CPACK_COMMAND:INTERNAL=/usr/bin/cpack 198 | //Path to ctest program executable. 199 | CMAKE_CTEST_COMMAND:INTERNAL=/usr/bin/ctest 200 | //ADVANCED property for variable: CMAKE_CXX_COMPILER 201 | CMAKE_CXX_COMPILER-ADVANCED:INTERNAL=1 202 | //ADVANCED property for variable: CMAKE_CXX_FLAGS 203 | CMAKE_CXX_FLAGS-ADVANCED:INTERNAL=1 204 | //ADVANCED property for variable: CMAKE_CXX_FLAGS_DEBUG 205 | CMAKE_CXX_FLAGS_DEBUG-ADVANCED:INTERNAL=1 206 | //ADVANCED property for variable: CMAKE_CXX_FLAGS_MINSIZEREL 207 | CMAKE_CXX_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 208 | //ADVANCED property for variable: CMAKE_CXX_FLAGS_RELEASE 209 | CMAKE_CXX_FLAGS_RELEASE-ADVANCED:INTERNAL=1 210 | //ADVANCED property for variable: CMAKE_CXX_FLAGS_RELWITHDEBINFO 211 | CMAKE_CXX_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 212 | //ADVANCED property for variable: CMAKE_C_COMPILER 213 | CMAKE_C_COMPILER-ADVANCED:INTERNAL=1 214 | //ADVANCED property for variable: CMAKE_C_FLAGS 215 | CMAKE_C_FLAGS-ADVANCED:INTERNAL=1 216 | //ADVANCED property for variable: CMAKE_C_FLAGS_DEBUG 217 | CMAKE_C_FLAGS_DEBUG-ADVANCED:INTERNAL=1 218 | //ADVANCED property for variable: CMAKE_C_FLAGS_MINSIZEREL 219 | CMAKE_C_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 220 | //ADVANCED property for variable: CMAKE_C_FLAGS_RELEASE 221 | CMAKE_C_FLAGS_RELEASE-ADVANCED:INTERNAL=1 222 | //ADVANCED property for variable: CMAKE_C_FLAGS_RELWITHDEBINFO 223 | CMAKE_C_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 224 | //Executable file format 225 | CMAKE_EXECUTABLE_FORMAT:INTERNAL=ELF 226 | //ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS 227 | CMAKE_EXE_LINKER_FLAGS-ADVANCED:INTERNAL=1 228 | //ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_DEBUG 229 | CMAKE_EXE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 230 | //ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_MINSIZEREL 231 | CMAKE_EXE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 232 | //ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELEASE 233 | CMAKE_EXE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 234 | //ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO 235 | CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 236 | //ADVANCED property for variable: CMAKE_EXPORT_COMPILE_COMMANDS 237 | CMAKE_EXPORT_COMPILE_COMMANDS-ADVANCED:INTERNAL=1 238 | //Name of external makefile project generator. 239 | CMAKE_EXTRA_GENERATOR:INTERNAL= 240 | //Name of generator. 241 | CMAKE_GENERATOR:INTERNAL=Unix Makefiles 242 | //Name of generator platform. 243 | CMAKE_GENERATOR_PLATFORM:INTERNAL= 244 | //Name of generator toolset. 245 | CMAKE_GENERATOR_TOOLSET:INTERNAL= 246 | //Source directory with the top level CMakeLists.txt file for this 247 | // project 248 | CMAKE_HOME_DIRECTORY:INTERNAL=/home/robbie/workspace/media/npsipsdk 249 | //Install .so files without execute permission. 250 | CMAKE_INSTALL_SO_NO_EXE:INTERNAL=1 251 | //ADVANCED property for variable: CMAKE_LINKER 252 | CMAKE_LINKER-ADVANCED:INTERNAL=1 253 | //ADVANCED property for variable: CMAKE_MAKE_PROGRAM 254 | CMAKE_MAKE_PROGRAM-ADVANCED:INTERNAL=1 255 | //ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS 256 | CMAKE_MODULE_LINKER_FLAGS-ADVANCED:INTERNAL=1 257 | //ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_DEBUG 258 | CMAKE_MODULE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 259 | //ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL 260 | CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 261 | //ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELEASE 262 | CMAKE_MODULE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 263 | //ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO 264 | CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 265 | //ADVANCED property for variable: CMAKE_NM 266 | CMAKE_NM-ADVANCED:INTERNAL=1 267 | //number of local generators 268 | CMAKE_NUMBER_OF_MAKEFILES:INTERNAL=1 269 | //ADVANCED property for variable: CMAKE_OBJCOPY 270 | CMAKE_OBJCOPY-ADVANCED:INTERNAL=1 271 | //ADVANCED property for variable: CMAKE_OBJDUMP 272 | CMAKE_OBJDUMP-ADVANCED:INTERNAL=1 273 | //ADVANCED property for variable: CMAKE_RANLIB 274 | CMAKE_RANLIB-ADVANCED:INTERNAL=1 275 | //Path to CMake installation. 276 | CMAKE_ROOT:INTERNAL=/usr/share/cmake-3.5 277 | //ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS 278 | CMAKE_SHARED_LINKER_FLAGS-ADVANCED:INTERNAL=1 279 | //ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_DEBUG 280 | CMAKE_SHARED_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 281 | //ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL 282 | CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 283 | //ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELEASE 284 | CMAKE_SHARED_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 285 | //ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO 286 | CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 287 | //ADVANCED property for variable: CMAKE_SKIP_INSTALL_RPATH 288 | CMAKE_SKIP_INSTALL_RPATH-ADVANCED:INTERNAL=1 289 | //ADVANCED property for variable: CMAKE_SKIP_RPATH 290 | CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1 291 | //ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS 292 | CMAKE_STATIC_LINKER_FLAGS-ADVANCED:INTERNAL=1 293 | //ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_DEBUG 294 | CMAKE_STATIC_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 295 | //ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL 296 | CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 297 | //ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELEASE 298 | CMAKE_STATIC_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 299 | //ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO 300 | CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 301 | //ADVANCED property for variable: CMAKE_STRIP 302 | CMAKE_STRIP-ADVANCED:INTERNAL=1 303 | //uname command 304 | CMAKE_UNAME:INTERNAL=/bin/uname 305 | //ADVANCED property for variable: CMAKE_VERBOSE_MAKEFILE 306 | CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=1 307 | 308 | -------------------------------------------------------------------------------- /CMakeFiles/3.5.1/CMakeCCompiler.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_C_COMPILER "/usr/bin/cc") 2 | set(CMAKE_C_COMPILER_ARG1 "") 3 | set(CMAKE_C_COMPILER_ID "GNU") 4 | set(CMAKE_C_COMPILER_VERSION "5.4.0") 5 | set(CMAKE_C_COMPILER_WRAPPER "") 6 | set(CMAKE_C_STANDARD_COMPUTED_DEFAULT "11") 7 | set(CMAKE_C_COMPILE_FEATURES "c_function_prototypes;c_restrict;c_variadic_macros;c_static_assert") 8 | set(CMAKE_C90_COMPILE_FEATURES "c_function_prototypes") 9 | set(CMAKE_C99_COMPILE_FEATURES "c_restrict;c_variadic_macros") 10 | set(CMAKE_C11_COMPILE_FEATURES "c_static_assert") 11 | 12 | set(CMAKE_C_PLATFORM_ID "Linux") 13 | set(CMAKE_C_SIMULATE_ID "") 14 | set(CMAKE_C_SIMULATE_VERSION "") 15 | 16 | set(CMAKE_AR "/usr/bin/ar") 17 | set(CMAKE_RANLIB "/usr/bin/ranlib") 18 | set(CMAKE_LINKER "/usr/bin/ld") 19 | set(CMAKE_COMPILER_IS_GNUCC 1) 20 | set(CMAKE_C_COMPILER_LOADED 1) 21 | set(CMAKE_C_COMPILER_WORKS TRUE) 22 | set(CMAKE_C_ABI_COMPILED TRUE) 23 | set(CMAKE_COMPILER_IS_MINGW ) 24 | set(CMAKE_COMPILER_IS_CYGWIN ) 25 | if(CMAKE_COMPILER_IS_CYGWIN) 26 | set(CYGWIN 1) 27 | set(UNIX 1) 28 | endif() 29 | 30 | set(CMAKE_C_COMPILER_ENV_VAR "CC") 31 | 32 | if(CMAKE_COMPILER_IS_MINGW) 33 | set(MINGW 1) 34 | endif() 35 | set(CMAKE_C_COMPILER_ID_RUN 1) 36 | set(CMAKE_C_SOURCE_FILE_EXTENSIONS c;m) 37 | set(CMAKE_C_IGNORE_EXTENSIONS h;H;o;O;obj;OBJ;def;DEF;rc;RC) 38 | set(CMAKE_C_LINKER_PREFERENCE 10) 39 | 40 | # Save compiler ABI information. 41 | set(CMAKE_C_SIZEOF_DATA_PTR "8") 42 | set(CMAKE_C_COMPILER_ABI "ELF") 43 | set(CMAKE_C_LIBRARY_ARCHITECTURE "x86_64-linux-gnu") 44 | 45 | if(CMAKE_C_SIZEOF_DATA_PTR) 46 | set(CMAKE_SIZEOF_VOID_P "${CMAKE_C_SIZEOF_DATA_PTR}") 47 | endif() 48 | 49 | if(CMAKE_C_COMPILER_ABI) 50 | set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_C_COMPILER_ABI}") 51 | endif() 52 | 53 | if(CMAKE_C_LIBRARY_ARCHITECTURE) 54 | set(CMAKE_LIBRARY_ARCHITECTURE "x86_64-linux-gnu") 55 | endif() 56 | 57 | set(CMAKE_C_CL_SHOWINCLUDES_PREFIX "") 58 | if(CMAKE_C_CL_SHOWINCLUDES_PREFIX) 59 | set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_C_CL_SHOWINCLUDES_PREFIX}") 60 | endif() 61 | 62 | 63 | 64 | 65 | set(CMAKE_C_IMPLICIT_LINK_LIBRARIES "c") 66 | set(CMAKE_C_IMPLICIT_LINK_DIRECTORIES "/usr/lib/gcc/x86_64-linux-gnu/5;/usr/lib/x86_64-linux-gnu;/usr/lib;/lib/x86_64-linux-gnu;/lib") 67 | set(CMAKE_C_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "") 68 | -------------------------------------------------------------------------------- /CMakeFiles/3.5.1/CMakeCXXCompiler.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_CXX_COMPILER "/usr/bin/c++") 2 | set(CMAKE_CXX_COMPILER_ARG1 "") 3 | set(CMAKE_CXX_COMPILER_ID "GNU") 4 | set(CMAKE_CXX_COMPILER_VERSION "5.4.0") 5 | set(CMAKE_CXX_COMPILER_WRAPPER "") 6 | set(CMAKE_CXX_STANDARD_COMPUTED_DEFAULT "98") 7 | set(CMAKE_CXX_COMPILE_FEATURES "cxx_template_template_parameters;cxx_alias_templates;cxx_alignas;cxx_alignof;cxx_attributes;cxx_auto_type;cxx_constexpr;cxx_decltype;cxx_decltype_incomplete_return_types;cxx_default_function_template_args;cxx_defaulted_functions;cxx_defaulted_move_initializers;cxx_delegating_constructors;cxx_deleted_functions;cxx_enum_forward_declarations;cxx_explicit_conversions;cxx_extended_friend_declarations;cxx_extern_templates;cxx_final;cxx_func_identifier;cxx_generalized_initializers;cxx_inheriting_constructors;cxx_inline_namespaces;cxx_lambdas;cxx_local_type_template_args;cxx_long_long_type;cxx_noexcept;cxx_nonstatic_member_init;cxx_nullptr;cxx_override;cxx_range_for;cxx_raw_string_literals;cxx_reference_qualified_functions;cxx_right_angle_brackets;cxx_rvalue_references;cxx_sizeof_member;cxx_static_assert;cxx_strong_enums;cxx_thread_local;cxx_trailing_return_types;cxx_unicode_literals;cxx_uniform_initialization;cxx_unrestricted_unions;cxx_user_literals;cxx_variadic_macros;cxx_variadic_templates;cxx_aggregate_default_initializers;cxx_attribute_deprecated;cxx_binary_literals;cxx_contextual_conversions;cxx_decltype_auto;cxx_digit_separators;cxx_generic_lambdas;cxx_lambda_init_captures;cxx_relaxed_constexpr;cxx_return_type_deduction;cxx_variable_templates") 8 | set(CMAKE_CXX98_COMPILE_FEATURES "cxx_template_template_parameters") 9 | set(CMAKE_CXX11_COMPILE_FEATURES "cxx_alias_templates;cxx_alignas;cxx_alignof;cxx_attributes;cxx_auto_type;cxx_constexpr;cxx_decltype;cxx_decltype_incomplete_return_types;cxx_default_function_template_args;cxx_defaulted_functions;cxx_defaulted_move_initializers;cxx_delegating_constructors;cxx_deleted_functions;cxx_enum_forward_declarations;cxx_explicit_conversions;cxx_extended_friend_declarations;cxx_extern_templates;cxx_final;cxx_func_identifier;cxx_generalized_initializers;cxx_inheriting_constructors;cxx_inline_namespaces;cxx_lambdas;cxx_local_type_template_args;cxx_long_long_type;cxx_noexcept;cxx_nonstatic_member_init;cxx_nullptr;cxx_override;cxx_range_for;cxx_raw_string_literals;cxx_reference_qualified_functions;cxx_right_angle_brackets;cxx_rvalue_references;cxx_sizeof_member;cxx_static_assert;cxx_strong_enums;cxx_thread_local;cxx_trailing_return_types;cxx_unicode_literals;cxx_uniform_initialization;cxx_unrestricted_unions;cxx_user_literals;cxx_variadic_macros;cxx_variadic_templates") 10 | set(CMAKE_CXX14_COMPILE_FEATURES "cxx_aggregate_default_initializers;cxx_attribute_deprecated;cxx_binary_literals;cxx_contextual_conversions;cxx_decltype_auto;cxx_digit_separators;cxx_generic_lambdas;cxx_lambda_init_captures;cxx_relaxed_constexpr;cxx_return_type_deduction;cxx_variable_templates") 11 | 12 | set(CMAKE_CXX_PLATFORM_ID "Linux") 13 | set(CMAKE_CXX_SIMULATE_ID "") 14 | set(CMAKE_CXX_SIMULATE_VERSION "") 15 | 16 | set(CMAKE_AR "/usr/bin/ar") 17 | set(CMAKE_RANLIB "/usr/bin/ranlib") 18 | set(CMAKE_LINKER "/usr/bin/ld") 19 | set(CMAKE_COMPILER_IS_GNUCXX 1) 20 | set(CMAKE_CXX_COMPILER_LOADED 1) 21 | set(CMAKE_CXX_COMPILER_WORKS TRUE) 22 | set(CMAKE_CXX_ABI_COMPILED TRUE) 23 | set(CMAKE_COMPILER_IS_MINGW ) 24 | set(CMAKE_COMPILER_IS_CYGWIN ) 25 | if(CMAKE_COMPILER_IS_CYGWIN) 26 | set(CYGWIN 1) 27 | set(UNIX 1) 28 | endif() 29 | 30 | set(CMAKE_CXX_COMPILER_ENV_VAR "CXX") 31 | 32 | if(CMAKE_COMPILER_IS_MINGW) 33 | set(MINGW 1) 34 | endif() 35 | set(CMAKE_CXX_COMPILER_ID_RUN 1) 36 | set(CMAKE_CXX_IGNORE_EXTENSIONS inl;h;hpp;HPP;H;o;O;obj;OBJ;def;DEF;rc;RC) 37 | set(CMAKE_CXX_SOURCE_FILE_EXTENSIONS C;M;c++;cc;cpp;cxx;mm;CPP) 38 | set(CMAKE_CXX_LINKER_PREFERENCE 30) 39 | set(CMAKE_CXX_LINKER_PREFERENCE_PROPAGATES 1) 40 | 41 | # Save compiler ABI information. 42 | set(CMAKE_CXX_SIZEOF_DATA_PTR "8") 43 | set(CMAKE_CXX_COMPILER_ABI "ELF") 44 | set(CMAKE_CXX_LIBRARY_ARCHITECTURE "x86_64-linux-gnu") 45 | 46 | if(CMAKE_CXX_SIZEOF_DATA_PTR) 47 | set(CMAKE_SIZEOF_VOID_P "${CMAKE_CXX_SIZEOF_DATA_PTR}") 48 | endif() 49 | 50 | if(CMAKE_CXX_COMPILER_ABI) 51 | set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_CXX_COMPILER_ABI}") 52 | endif() 53 | 54 | if(CMAKE_CXX_LIBRARY_ARCHITECTURE) 55 | set(CMAKE_LIBRARY_ARCHITECTURE "x86_64-linux-gnu") 56 | endif() 57 | 58 | set(CMAKE_CXX_CL_SHOWINCLUDES_PREFIX "") 59 | if(CMAKE_CXX_CL_SHOWINCLUDES_PREFIX) 60 | set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_CXX_CL_SHOWINCLUDES_PREFIX}") 61 | endif() 62 | 63 | 64 | 65 | 66 | set(CMAKE_CXX_IMPLICIT_LINK_LIBRARIES "stdc++;m;c") 67 | set(CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES "/usr/lib/gcc/x86_64-linux-gnu/5;/usr/lib/x86_64-linux-gnu;/usr/lib;/lib/x86_64-linux-gnu;/lib") 68 | set(CMAKE_CXX_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "") 69 | -------------------------------------------------------------------------------- /CMakeFiles/3.5.1/CMakeDetermineCompilerABI_C.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/escoffier/sipsdk/4d906b32cdc0677be6663249712825eb57d1f870/CMakeFiles/3.5.1/CMakeDetermineCompilerABI_C.bin -------------------------------------------------------------------------------- /CMakeFiles/3.5.1/CMakeDetermineCompilerABI_CXX.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/escoffier/sipsdk/4d906b32cdc0677be6663249712825eb57d1f870/CMakeFiles/3.5.1/CMakeDetermineCompilerABI_CXX.bin -------------------------------------------------------------------------------- /CMakeFiles/3.5.1/CMakeSystem.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_HOST_SYSTEM "Linux-4.15.0-30-generic") 2 | set(CMAKE_HOST_SYSTEM_NAME "Linux") 3 | set(CMAKE_HOST_SYSTEM_VERSION "4.15.0-30-generic") 4 | set(CMAKE_HOST_SYSTEM_PROCESSOR "x86_64") 5 | 6 | 7 | 8 | set(CMAKE_SYSTEM "Linux-4.15.0-30-generic") 9 | set(CMAKE_SYSTEM_NAME "Linux") 10 | set(CMAKE_SYSTEM_VERSION "4.15.0-30-generic") 11 | set(CMAKE_SYSTEM_PROCESSOR "x86_64") 12 | 13 | set(CMAKE_CROSSCOMPILING "FALSE") 14 | 15 | set(CMAKE_SYSTEM_LOADED 1) 16 | -------------------------------------------------------------------------------- /CMakeFiles/CMakeDirectoryInformation.cmake: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.5 3 | 4 | # Relative path conversion top directories. 5 | set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/home/robbie/workspace/media/npsipsdk") 6 | set(CMAKE_RELATIVE_PATH_TOP_BINARY "/home/robbie/workspace/media/npsipsdk") 7 | 8 | # Force unix paths in dependencies. 9 | set(CMAKE_FORCE_UNIX_PATHS 1) 10 | 11 | 12 | # The C and CXX include file regular expressions for this directory. 13 | set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$") 14 | set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$") 15 | set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN}) 16 | set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN}) 17 | -------------------------------------------------------------------------------- /CMakeFiles/Makefile.cmake: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.5 3 | 4 | # The generator used is: 5 | set(CMAKE_DEPENDS_GENERATOR "Unix Makefiles") 6 | 7 | # The top level Makefile was generated from the following files: 8 | set(CMAKE_MAKEFILE_DEPENDS 9 | "CMakeCache.txt" 10 | "CMakeFiles/3.5.1/CMakeCCompiler.cmake" 11 | "CMakeFiles/3.5.1/CMakeCXXCompiler.cmake" 12 | "CMakeFiles/3.5.1/CMakeSystem.cmake" 13 | "CMakeLists.txt" 14 | "/usr/share/cmake-3.5/Modules/CMakeCInformation.cmake" 15 | "/usr/share/cmake-3.5/Modules/CMakeCXXInformation.cmake" 16 | "/usr/share/cmake-3.5/Modules/CMakeCommonLanguageInclude.cmake" 17 | "/usr/share/cmake-3.5/Modules/CMakeGenericSystem.cmake" 18 | "/usr/share/cmake-3.5/Modules/CMakeLanguageInformation.cmake" 19 | "/usr/share/cmake-3.5/Modules/CMakeSystemSpecificInformation.cmake" 20 | "/usr/share/cmake-3.5/Modules/CMakeSystemSpecificInitialize.cmake" 21 | "/usr/share/cmake-3.5/Modules/Compiler/GNU-C.cmake" 22 | "/usr/share/cmake-3.5/Modules/Compiler/GNU-CXX.cmake" 23 | "/usr/share/cmake-3.5/Modules/Compiler/GNU.cmake" 24 | "/usr/share/cmake-3.5/Modules/Platform/Linux-GNU-C.cmake" 25 | "/usr/share/cmake-3.5/Modules/Platform/Linux-GNU-CXX.cmake" 26 | "/usr/share/cmake-3.5/Modules/Platform/Linux-GNU.cmake" 27 | "/usr/share/cmake-3.5/Modules/Platform/Linux.cmake" 28 | "/usr/share/cmake-3.5/Modules/Platform/UnixPaths.cmake" 29 | ) 30 | 31 | # The corresponding makefile is: 32 | set(CMAKE_MAKEFILE_OUTPUTS 33 | "Makefile" 34 | "CMakeFiles/cmake.check_cache" 35 | ) 36 | 37 | # Byproducts of CMake generate step: 38 | set(CMAKE_MAKEFILE_PRODUCTS 39 | "CMakeFiles/CMakeDirectoryInformation.cmake" 40 | ) 41 | 42 | # Dependency information for all targets: 43 | set(CMAKE_DEPEND_INFO_FILES 44 | "CMakeFiles/npsipsdk.dir/DependInfo.cmake" 45 | ) 46 | -------------------------------------------------------------------------------- /CMakeFiles/Makefile2: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.5 3 | 4 | # Default target executed when no arguments are given to make. 5 | default_target: all 6 | 7 | .PHONY : default_target 8 | 9 | # The main recursive all target 10 | all: 11 | 12 | .PHONY : all 13 | 14 | # The main recursive preinstall target 15 | preinstall: 16 | 17 | .PHONY : preinstall 18 | 19 | #============================================================================= 20 | # Special targets provided by cmake. 21 | 22 | # Disable implicit rules so canonical targets will work. 23 | .SUFFIXES: 24 | 25 | 26 | # Remove some rules from gmake that .SUFFIXES does not remove. 27 | SUFFIXES = 28 | 29 | .SUFFIXES: .hpux_make_needs_suffix_list 30 | 31 | 32 | # Suppress display of executed commands. 33 | $(VERBOSE).SILENT: 34 | 35 | 36 | # A target that is always out of date. 37 | cmake_force: 38 | 39 | .PHONY : cmake_force 40 | 41 | #============================================================================= 42 | # Set environment variables for the build. 43 | 44 | # The shell in which to execute make rules. 45 | SHELL = /bin/sh 46 | 47 | # The CMake executable. 48 | CMAKE_COMMAND = /usr/bin/cmake 49 | 50 | # The command to remove a file. 51 | RM = /usr/bin/cmake -E remove -f 52 | 53 | # Escaping for special characters. 54 | EQUALS = = 55 | 56 | # The top-level source directory on which CMake was run. 57 | CMAKE_SOURCE_DIR = /home/robbie/workspace/media/npsipsdk 58 | 59 | # The top-level build directory on which CMake was run. 60 | CMAKE_BINARY_DIR = /home/robbie/workspace/media/npsipsdk 61 | 62 | #============================================================================= 63 | # Target rules for target CMakeFiles/npsipsdk.dir 64 | 65 | # All Build rule for target. 66 | CMakeFiles/npsipsdk.dir/all: 67 | $(MAKE) -f CMakeFiles/npsipsdk.dir/build.make CMakeFiles/npsipsdk.dir/depend 68 | $(MAKE) -f CMakeFiles/npsipsdk.dir/build.make CMakeFiles/npsipsdk.dir/build 69 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --progress-dir=/home/robbie/workspace/media/npsipsdk/CMakeFiles --progress-num=1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35 "Built target npsipsdk" 70 | .PHONY : CMakeFiles/npsipsdk.dir/all 71 | 72 | # Include target in all. 73 | all: CMakeFiles/npsipsdk.dir/all 74 | 75 | .PHONY : all 76 | 77 | # Build rule for subdir invocation for target. 78 | CMakeFiles/npsipsdk.dir/rule: cmake_check_build_system 79 | $(CMAKE_COMMAND) -E cmake_progress_start /home/robbie/workspace/media/npsipsdk/CMakeFiles 35 80 | $(MAKE) -f CMakeFiles/Makefile2 CMakeFiles/npsipsdk.dir/all 81 | $(CMAKE_COMMAND) -E cmake_progress_start /home/robbie/workspace/media/npsipsdk/CMakeFiles 0 82 | .PHONY : CMakeFiles/npsipsdk.dir/rule 83 | 84 | # Convenience name for target. 85 | npsipsdk: CMakeFiles/npsipsdk.dir/rule 86 | 87 | .PHONY : npsipsdk 88 | 89 | # clean rule for target. 90 | CMakeFiles/npsipsdk.dir/clean: 91 | $(MAKE) -f CMakeFiles/npsipsdk.dir/build.make CMakeFiles/npsipsdk.dir/clean 92 | .PHONY : CMakeFiles/npsipsdk.dir/clean 93 | 94 | # clean rule for target. 95 | clean: CMakeFiles/npsipsdk.dir/clean 96 | 97 | .PHONY : clean 98 | 99 | #============================================================================= 100 | # Special targets to cleanup operation of make. 101 | 102 | # Special rule to run CMake to check the build system integrity. 103 | # No rule that depends on this can have commands that come from listfiles 104 | # because they might be regenerated. 105 | cmake_check_build_system: 106 | $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 107 | .PHONY : cmake_check_build_system 108 | 109 | -------------------------------------------------------------------------------- /CMakeFiles/TargetDirectories.txt: -------------------------------------------------------------------------------- 1 | /home/robbie/workspace/media/npsipsdk/CMakeFiles/edit_cache.dir 2 | /home/robbie/workspace/media/npsipsdk/CMakeFiles/rebuild_cache.dir 3 | /home/robbie/workspace/media/npsipsdk/CMakeFiles/npsipsdk.dir 4 | -------------------------------------------------------------------------------- /CMakeFiles/cmake.check_cache: -------------------------------------------------------------------------------- 1 | # This file is generated by cmake for dependency checking of the CMakeCache.txt file 2 | -------------------------------------------------------------------------------- /CMakeFiles/feature_tests.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/escoffier/sipsdk/4d906b32cdc0677be6663249712825eb57d1f870/CMakeFiles/feature_tests.bin -------------------------------------------------------------------------------- /CMakeFiles/feature_tests.c: -------------------------------------------------------------------------------- 1 | 2 | const char features[] = {"\n" 3 | "C_FEATURE:" 4 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 5 | "1" 6 | #else 7 | "0" 8 | #endif 9 | "c_function_prototypes\n" 10 | "C_FEATURE:" 11 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L 12 | "1" 13 | #else 14 | "0" 15 | #endif 16 | "c_restrict\n" 17 | "C_FEATURE:" 18 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201000L 19 | "1" 20 | #else 21 | "0" 22 | #endif 23 | "c_static_assert\n" 24 | "C_FEATURE:" 25 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L 26 | "1" 27 | #else 28 | "0" 29 | #endif 30 | "c_variadic_macros\n" 31 | 32 | }; 33 | 34 | int main(int argc, char** argv) { (void)argv; return features[argc]; } 35 | -------------------------------------------------------------------------------- /CMakeFiles/feature_tests.cxx: -------------------------------------------------------------------------------- 1 | 2 | const char features[] = {"\n" 3 | "CXX_FEATURE:" 4 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 500 && __cplusplus >= 201402L 5 | "1" 6 | #else 7 | "0" 8 | #endif 9 | "cxx_aggregate_default_initializers\n" 10 | "CXX_FEATURE:" 11 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L 12 | "1" 13 | #else 14 | "0" 15 | #endif 16 | "cxx_alias_templates\n" 17 | "CXX_FEATURE:" 18 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 408 && __cplusplus >= 201103L 19 | "1" 20 | #else 21 | "0" 22 | #endif 23 | "cxx_alignas\n" 24 | "CXX_FEATURE:" 25 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 408 && __cplusplus >= 201103L 26 | "1" 27 | #else 28 | "0" 29 | #endif 30 | "cxx_alignof\n" 31 | "CXX_FEATURE:" 32 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 408 && __cplusplus >= 201103L 33 | "1" 34 | #else 35 | "0" 36 | #endif 37 | "cxx_attributes\n" 38 | "CXX_FEATURE:" 39 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L 40 | "1" 41 | #else 42 | "0" 43 | #endif 44 | "cxx_attribute_deprecated\n" 45 | "CXX_FEATURE:" 46 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 47 | "1" 48 | #else 49 | "0" 50 | #endif 51 | "cxx_auto_type\n" 52 | "CXX_FEATURE:" 53 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L 54 | "1" 55 | #else 56 | "0" 57 | #endif 58 | "cxx_binary_literals\n" 59 | "CXX_FEATURE:" 60 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 61 | "1" 62 | #else 63 | "0" 64 | #endif 65 | "cxx_constexpr\n" 66 | "CXX_FEATURE:" 67 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L 68 | "1" 69 | #else 70 | "0" 71 | #endif 72 | "cxx_contextual_conversions\n" 73 | "CXX_FEATURE:" 74 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 75 | "1" 76 | #else 77 | "0" 78 | #endif 79 | "cxx_decltype\n" 80 | "CXX_FEATURE:" 81 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L 82 | "1" 83 | #else 84 | "0" 85 | #endif 86 | "cxx_decltype_auto\n" 87 | "CXX_FEATURE:" 88 | #if ((__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) >= 40801) && __cplusplus >= 201103L 89 | "1" 90 | #else 91 | "0" 92 | #endif 93 | "cxx_decltype_incomplete_return_types\n" 94 | "CXX_FEATURE:" 95 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 96 | "1" 97 | #else 98 | "0" 99 | #endif 100 | "cxx_default_function_template_args\n" 101 | "CXX_FEATURE:" 102 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 103 | "1" 104 | #else 105 | "0" 106 | #endif 107 | "cxx_defaulted_functions\n" 108 | "CXX_FEATURE:" 109 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 110 | "1" 111 | #else 112 | "0" 113 | #endif 114 | "cxx_defaulted_move_initializers\n" 115 | "CXX_FEATURE:" 116 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L 117 | "1" 118 | #else 119 | "0" 120 | #endif 121 | "cxx_delegating_constructors\n" 122 | "CXX_FEATURE:" 123 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 124 | "1" 125 | #else 126 | "0" 127 | #endif 128 | "cxx_deleted_functions\n" 129 | "CXX_FEATURE:" 130 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L 131 | "1" 132 | #else 133 | "0" 134 | #endif 135 | "cxx_digit_separators\n" 136 | "CXX_FEATURE:" 137 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 138 | "1" 139 | #else 140 | "0" 141 | #endif 142 | "cxx_enum_forward_declarations\n" 143 | "CXX_FEATURE:" 144 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 405 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 145 | "1" 146 | #else 147 | "0" 148 | #endif 149 | "cxx_explicit_conversions\n" 150 | "CXX_FEATURE:" 151 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L 152 | "1" 153 | #else 154 | "0" 155 | #endif 156 | "cxx_extended_friend_declarations\n" 157 | "CXX_FEATURE:" 158 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 159 | "1" 160 | #else 161 | "0" 162 | #endif 163 | "cxx_extern_templates\n" 164 | "CXX_FEATURE:" 165 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L 166 | "1" 167 | #else 168 | "0" 169 | #endif 170 | "cxx_final\n" 171 | "CXX_FEATURE:" 172 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 173 | "1" 174 | #else 175 | "0" 176 | #endif 177 | "cxx_func_identifier\n" 178 | "CXX_FEATURE:" 179 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 180 | "1" 181 | #else 182 | "0" 183 | #endif 184 | "cxx_generalized_initializers\n" 185 | "CXX_FEATURE:" 186 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L 187 | "1" 188 | #else 189 | "0" 190 | #endif 191 | "cxx_generic_lambdas\n" 192 | "CXX_FEATURE:" 193 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 408 && __cplusplus >= 201103L 194 | "1" 195 | #else 196 | "0" 197 | #endif 198 | "cxx_inheriting_constructors\n" 199 | "CXX_FEATURE:" 200 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 201 | "1" 202 | #else 203 | "0" 204 | #endif 205 | "cxx_inline_namespaces\n" 206 | "CXX_FEATURE:" 207 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 405 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 208 | "1" 209 | #else 210 | "0" 211 | #endif 212 | "cxx_lambdas\n" 213 | "CXX_FEATURE:" 214 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L 215 | "1" 216 | #else 217 | "0" 218 | #endif 219 | "cxx_lambda_init_captures\n" 220 | "CXX_FEATURE:" 221 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 405 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 222 | "1" 223 | #else 224 | "0" 225 | #endif 226 | "cxx_local_type_template_args\n" 227 | "CXX_FEATURE:" 228 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 229 | "1" 230 | #else 231 | "0" 232 | #endif 233 | "cxx_long_long_type\n" 234 | "CXX_FEATURE:" 235 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 236 | "1" 237 | #else 238 | "0" 239 | #endif 240 | "cxx_noexcept\n" 241 | "CXX_FEATURE:" 242 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L 243 | "1" 244 | #else 245 | "0" 246 | #endif 247 | "cxx_nonstatic_member_init\n" 248 | "CXX_FEATURE:" 249 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 250 | "1" 251 | #else 252 | "0" 253 | #endif 254 | "cxx_nullptr\n" 255 | "CXX_FEATURE:" 256 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L 257 | "1" 258 | #else 259 | "0" 260 | #endif 261 | "cxx_override\n" 262 | "CXX_FEATURE:" 263 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 264 | "1" 265 | #else 266 | "0" 267 | #endif 268 | "cxx_range_for\n" 269 | "CXX_FEATURE:" 270 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 405 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 271 | "1" 272 | #else 273 | "0" 274 | #endif 275 | "cxx_raw_string_literals\n" 276 | "CXX_FEATURE:" 277 | #if ((__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) >= 40801) && __cplusplus >= 201103L 278 | "1" 279 | #else 280 | "0" 281 | #endif 282 | "cxx_reference_qualified_functions\n" 283 | "CXX_FEATURE:" 284 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 500 && __cplusplus >= 201402L 285 | "1" 286 | #else 287 | "0" 288 | #endif 289 | "cxx_relaxed_constexpr\n" 290 | "CXX_FEATURE:" 291 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L 292 | "1" 293 | #else 294 | "0" 295 | #endif 296 | "cxx_return_type_deduction\n" 297 | "CXX_FEATURE:" 298 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 299 | "1" 300 | #else 301 | "0" 302 | #endif 303 | "cxx_right_angle_brackets\n" 304 | "CXX_FEATURE:" 305 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 306 | "1" 307 | #else 308 | "0" 309 | #endif 310 | "cxx_rvalue_references\n" 311 | "CXX_FEATURE:" 312 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 313 | "1" 314 | #else 315 | "0" 316 | #endif 317 | "cxx_sizeof_member\n" 318 | "CXX_FEATURE:" 319 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 320 | "1" 321 | #else 322 | "0" 323 | #endif 324 | "cxx_static_assert\n" 325 | "CXX_FEATURE:" 326 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 327 | "1" 328 | #else 329 | "0" 330 | #endif 331 | "cxx_strong_enums\n" 332 | "CXX_FEATURE:" 333 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && __cplusplus 334 | "1" 335 | #else 336 | "0" 337 | #endif 338 | "cxx_template_template_parameters\n" 339 | "CXX_FEATURE:" 340 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 408 && __cplusplus >= 201103L 341 | "1" 342 | #else 343 | "0" 344 | #endif 345 | "cxx_thread_local\n" 346 | "CXX_FEATURE:" 347 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 348 | "1" 349 | #else 350 | "0" 351 | #endif 352 | "cxx_trailing_return_types\n" 353 | "CXX_FEATURE:" 354 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 355 | "1" 356 | #else 357 | "0" 358 | #endif 359 | "cxx_unicode_literals\n" 360 | "CXX_FEATURE:" 361 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 362 | "1" 363 | #else 364 | "0" 365 | #endif 366 | "cxx_uniform_initialization\n" 367 | "CXX_FEATURE:" 368 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 369 | "1" 370 | #else 371 | "0" 372 | #endif 373 | "cxx_unrestricted_unions\n" 374 | "CXX_FEATURE:" 375 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L 376 | "1" 377 | #else 378 | "0" 379 | #endif 380 | "cxx_user_literals\n" 381 | "CXX_FEATURE:" 382 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 500 && __cplusplus >= 201402L 383 | "1" 384 | #else 385 | "0" 386 | #endif 387 | "cxx_variable_templates\n" 388 | "CXX_FEATURE:" 389 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 390 | "1" 391 | #else 392 | "0" 393 | #endif 394 | "cxx_variadic_macros\n" 395 | "CXX_FEATURE:" 396 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 397 | "1" 398 | #else 399 | "0" 400 | #endif 401 | "cxx_variadic_templates\n" 402 | 403 | }; 404 | 405 | int main(int argc, char** argv) { (void)argv; return features[argc]; } 406 | -------------------------------------------------------------------------------- /CMakeFiles/npsipsdk.dir/DependInfo.cmake: -------------------------------------------------------------------------------- 1 | # The set of languages for which implicit dependencies are needed: 2 | set(CMAKE_DEPENDS_LANGUAGES 3 | "CXX" 4 | ) 5 | # The set of files for implicit dependencies of each language: 6 | set(CMAKE_DEPENDS_CHECK_CXX 7 | "/home/robbie/workspace/media/npsipsdk/Message/AlarmNotifyMsg.cpp" "/home/robbie/workspace/media/npsipsdk/CMakeFiles/npsipsdk.dir/Message/AlarmNotifyMsg.cpp.o" 8 | "/home/robbie/workspace/media/npsipsdk/Message/BroadcastMsg.cpp" "/home/robbie/workspace/media/npsipsdk/CMakeFiles/npsipsdk.dir/Message/BroadcastMsg.cpp.o" 9 | "/home/robbie/workspace/media/npsipsdk/Message/CallInfoMsg.cpp" "/home/robbie/workspace/media/npsipsdk/CMakeFiles/npsipsdk.dir/Message/CallInfoMsg.cpp.o" 10 | "/home/robbie/workspace/media/npsipsdk/Message/CallMessageMsg.cpp" "/home/robbie/workspace/media/npsipsdk/CMakeFiles/npsipsdk.dir/Message/CallMessageMsg.cpp.o" 11 | "/home/robbie/workspace/media/npsipsdk/Message/CatalogNotifyMsg.cpp" "/home/robbie/workspace/media/npsipsdk/CMakeFiles/npsipsdk.dir/Message/CatalogNotifyMsg.cpp.o" 12 | "/home/robbie/workspace/media/npsipsdk/Message/ConfigDownloadMsg.cpp" "/home/robbie/workspace/media/npsipsdk/CMakeFiles/npsipsdk.dir/Message/ConfigDownloadMsg.cpp.o" 13 | "/home/robbie/workspace/media/npsipsdk/Message/DeviceConfigMsg.cpp" "/home/robbie/workspace/media/npsipsdk/CMakeFiles/npsipsdk.dir/Message/DeviceConfigMsg.cpp.o" 14 | "/home/robbie/workspace/media/npsipsdk/Message/DeviceControlMsg.cpp" "/home/robbie/workspace/media/npsipsdk/CMakeFiles/npsipsdk.dir/Message/DeviceControlMsg.cpp.o" 15 | "/home/robbie/workspace/media/npsipsdk/Message/DeviceStatusNotifyMsg.cpp" "/home/robbie/workspace/media/npsipsdk/CMakeFiles/npsipsdk.dir/Message/DeviceStatusNotifyMsg.cpp.o" 16 | "/home/robbie/workspace/media/npsipsdk/Message/GBMessage.cpp" "/home/robbie/workspace/media/npsipsdk/CMakeFiles/npsipsdk.dir/Message/GBMessage.cpp.o" 17 | "/home/robbie/workspace/media/npsipsdk/Message/GetTempAccountMsg.cpp" "/home/robbie/workspace/media/npsipsdk/CMakeFiles/npsipsdk.dir/Message/GetTempAccountMsg.cpp.o" 18 | "/home/robbie/workspace/media/npsipsdk/Message/InviteMsg.cpp" "/home/robbie/workspace/media/npsipsdk/CMakeFiles/npsipsdk.dir/Message/InviteMsg.cpp.o" 19 | "/home/robbie/workspace/media/npsipsdk/Message/KeepaliveMsg.cpp" "/home/robbie/workspace/media/npsipsdk/CMakeFiles/npsipsdk.dir/Message/KeepaliveMsg.cpp.o" 20 | "/home/robbie/workspace/media/npsipsdk/Message/Message.cpp" "/home/robbie/workspace/media/npsipsdk/CMakeFiles/npsipsdk.dir/Message/Message.cpp.o" 21 | "/home/robbie/workspace/media/npsipsdk/Message/MessageMsg.cpp" "/home/robbie/workspace/media/npsipsdk/CMakeFiles/npsipsdk.dir/Message/MessageMsg.cpp.o" 22 | "/home/robbie/workspace/media/npsipsdk/Message/MsgFactory.cpp" "/home/robbie/workspace/media/npsipsdk/CMakeFiles/npsipsdk.dir/Message/MsgFactory.cpp.o" 23 | "/home/robbie/workspace/media/npsipsdk/Message/NpClientMsg.cpp" "/home/robbie/workspace/media/npsipsdk/CMakeFiles/npsipsdk.dir/Message/NpClientMsg.cpp.o" 24 | "/home/robbie/workspace/media/npsipsdk/Message/NpGatewayMsg.cpp" "/home/robbie/workspace/media/npsipsdk/CMakeFiles/npsipsdk.dir/Message/NpGatewayMsg.cpp.o" 25 | "/home/robbie/workspace/media/npsipsdk/Message/QueryAlarmMsg.cpp" "/home/robbie/workspace/media/npsipsdk/CMakeFiles/npsipsdk.dir/Message/QueryAlarmMsg.cpp.o" 26 | "/home/robbie/workspace/media/npsipsdk/Message/QueryCatalogMsg.cpp" "/home/robbie/workspace/media/npsipsdk/CMakeFiles/npsipsdk.dir/Message/QueryCatalogMsg.cpp.o" 27 | "/home/robbie/workspace/media/npsipsdk/Message/QueryDeviceInfoMsg.cpp" "/home/robbie/workspace/media/npsipsdk/CMakeFiles/npsipsdk.dir/Message/QueryDeviceInfoMsg.cpp.o" 28 | "/home/robbie/workspace/media/npsipsdk/Message/QueryDeviceStatusMsg.cpp" "/home/robbie/workspace/media/npsipsdk/CMakeFiles/npsipsdk.dir/Message/QueryDeviceStatusMsg.cpp.o" 29 | "/home/robbie/workspace/media/npsipsdk/Message/QueryRecordInfoMsg.cpp" "/home/robbie/workspace/media/npsipsdk/CMakeFiles/npsipsdk.dir/Message/QueryRecordInfoMsg.cpp.o" 30 | "/home/robbie/workspace/media/npsipsdk/Message/RegisterMsg.cpp" "/home/robbie/workspace/media/npsipsdk/CMakeFiles/npsipsdk.dir/Message/RegisterMsg.cpp.o" 31 | "/home/robbie/workspace/media/npsipsdk/Message/SubscriptionMsg.cpp" "/home/robbie/workspace/media/npsipsdk/CMakeFiles/npsipsdk.dir/Message/SubscriptionMsg.cpp.o" 32 | "/home/robbie/workspace/media/npsipsdk/source/Log.cpp" "/home/robbie/workspace/media/npsipsdk/CMakeFiles/npsipsdk.dir/source/Log.cpp.o" 33 | "/home/robbie/workspace/media/npsipsdk/source/NPReproAuthManager.cpp" "/home/robbie/workspace/media/npsipsdk/CMakeFiles/npsipsdk.dir/source/NPReproAuthManager.cpp.o" 34 | "/home/robbie/workspace/media/npsipsdk/source/OutboundProxyContainer.cpp" "/home/robbie/workspace/media/npsipsdk/CMakeFiles/npsipsdk.dir/source/OutboundProxyContainer.cpp.o" 35 | "/home/robbie/workspace/media/npsipsdk/source/RegisterHandler.cpp" "/home/robbie/workspace/media/npsipsdk/CMakeFiles/npsipsdk.dir/source/RegisterHandler.cpp.o" 36 | "/home/robbie/workspace/media/npsipsdk/source/SipClient.cpp" "/home/robbie/workspace/media/npsipsdk/CMakeFiles/npsipsdk.dir/source/SipClient.cpp.o" 37 | "/home/robbie/workspace/media/npsipsdk/source/SipGatewary.cpp" "/home/robbie/workspace/media/npsipsdk/CMakeFiles/npsipsdk.dir/source/SipGatewary.cpp.o" 38 | "/home/robbie/workspace/media/npsipsdk/source/SipInterface.cpp" "/home/robbie/workspace/media/npsipsdk/CMakeFiles/npsipsdk.dir/source/SipInterface.cpp.o" 39 | "/home/robbie/workspace/media/npsipsdk/source/WorkThreads.cpp" "/home/robbie/workspace/media/npsipsdk/CMakeFiles/npsipsdk.dir/source/WorkThreads.cpp.o" 40 | "/home/robbie/workspace/media/npsipsdk/tinyxml2/tinyxml2.cpp" "/home/robbie/workspace/media/npsipsdk/CMakeFiles/npsipsdk.dir/tinyxml2/tinyxml2.cpp.o" 41 | ) 42 | set(CMAKE_CXX_COMPILER_ID "GNU") 43 | 44 | # Preprocessor definitions for this target. 45 | set(CMAKE_TARGET_DEFINITIONS_CXX 46 | "OUT" 47 | ) 48 | 49 | # The include file search paths: 50 | set(CMAKE_CXX_TARGET_INCLUDE_PATH 51 | "." 52 | "tinyxml2" 53 | "./header" 54 | ) 55 | 56 | # Targets to which this target links. 57 | set(CMAKE_TARGET_LINKED_INFO_FILES 58 | ) 59 | 60 | # Fortran module output directory. 61 | set(CMAKE_Fortran_TARGET_MODULE_DIR "") 62 | -------------------------------------------------------------------------------- /CMakeFiles/npsipsdk.dir/cmake_clean.cmake: -------------------------------------------------------------------------------- 1 | file(REMOVE_RECURSE 2 | "CMakeFiles/npsipsdk.dir/tinyxml2/tinyxml2.cpp.o" 3 | "CMakeFiles/npsipsdk.dir/source/NPReproAuthManager.cpp.o" 4 | "CMakeFiles/npsipsdk.dir/source/OutboundProxyContainer.cpp.o" 5 | "CMakeFiles/npsipsdk.dir/source/SipClient.cpp.o" 6 | "CMakeFiles/npsipsdk.dir/source/SipGatewary.cpp.o" 7 | "CMakeFiles/npsipsdk.dir/source/SipInterface.cpp.o" 8 | "CMakeFiles/npsipsdk.dir/source/Log.cpp.o" 9 | "CMakeFiles/npsipsdk.dir/source/RegisterHandler.cpp.o" 10 | "CMakeFiles/npsipsdk.dir/source/WorkThreads.cpp.o" 11 | "CMakeFiles/npsipsdk.dir/Message/DeviceControlMsg.cpp.o" 12 | "CMakeFiles/npsipsdk.dir/Message/QueryDeviceStatusMsg.cpp.o" 13 | "CMakeFiles/npsipsdk.dir/Message/BroadcastMsg.cpp.o" 14 | "CMakeFiles/npsipsdk.dir/Message/QueryAlarmMsg.cpp.o" 15 | "CMakeFiles/npsipsdk.dir/Message/NpClientMsg.cpp.o" 16 | "CMakeFiles/npsipsdk.dir/Message/QueryDeviceInfoMsg.cpp.o" 17 | "CMakeFiles/npsipsdk.dir/Message/DeviceStatusNotifyMsg.cpp.o" 18 | "CMakeFiles/npsipsdk.dir/Message/InviteMsg.cpp.o" 19 | "CMakeFiles/npsipsdk.dir/Message/MessageMsg.cpp.o" 20 | "CMakeFiles/npsipsdk.dir/Message/NpGatewayMsg.cpp.o" 21 | "CMakeFiles/npsipsdk.dir/Message/Message.cpp.o" 22 | "CMakeFiles/npsipsdk.dir/Message/CatalogNotifyMsg.cpp.o" 23 | "CMakeFiles/npsipsdk.dir/Message/CallInfoMsg.cpp.o" 24 | "CMakeFiles/npsipsdk.dir/Message/KeepaliveMsg.cpp.o" 25 | "CMakeFiles/npsipsdk.dir/Message/GetTempAccountMsg.cpp.o" 26 | "CMakeFiles/npsipsdk.dir/Message/QueryRecordInfoMsg.cpp.o" 27 | "CMakeFiles/npsipsdk.dir/Message/ConfigDownloadMsg.cpp.o" 28 | "CMakeFiles/npsipsdk.dir/Message/GBMessage.cpp.o" 29 | "CMakeFiles/npsipsdk.dir/Message/MsgFactory.cpp.o" 30 | "CMakeFiles/npsipsdk.dir/Message/AlarmNotifyMsg.cpp.o" 31 | "CMakeFiles/npsipsdk.dir/Message/DeviceConfigMsg.cpp.o" 32 | "CMakeFiles/npsipsdk.dir/Message/SubscriptionMsg.cpp.o" 33 | "CMakeFiles/npsipsdk.dir/Message/RegisterMsg.cpp.o" 34 | "CMakeFiles/npsipsdk.dir/Message/QueryCatalogMsg.cpp.o" 35 | "CMakeFiles/npsipsdk.dir/Message/CallMessageMsg.cpp.o" 36 | "libnpsipsdk.pdb" 37 | "libnpsipsdk.a" 38 | ) 39 | 40 | # Per-language clean rules from dependency scanning. 41 | foreach(lang CXX) 42 | include(CMakeFiles/npsipsdk.dir/cmake_clean_${lang}.cmake OPTIONAL) 43 | endforeach() 44 | -------------------------------------------------------------------------------- /CMakeFiles/npsipsdk.dir/cmake_clean_target.cmake: -------------------------------------------------------------------------------- 1 | file(REMOVE_RECURSE 2 | "libnpsipsdk.a" 3 | ) 4 | -------------------------------------------------------------------------------- /CMakeFiles/npsipsdk.dir/flags.make: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.5 3 | 4 | # compile CXX with /usr/bin/c++ 5 | CXX_FLAGS = -std=gnu++14 6 | 7 | CXX_DEFINES = -DOUT 8 | 9 | CXX_INCLUDES = -I/home/robbie/workspace/media/npsipsdk -I/home/robbie/workspace/media/npsipsdk/tinyxml2 -I/home/robbie/workspace/media/npsipsdk/./header 10 | 11 | -------------------------------------------------------------------------------- /CMakeFiles/npsipsdk.dir/link.txt: -------------------------------------------------------------------------------- 1 | /usr/bin/ar qc libnpsipsdk.a CMakeFiles/npsipsdk.dir/tinyxml2/tinyxml2.cpp.o CMakeFiles/npsipsdk.dir/source/NPReproAuthManager.cpp.o CMakeFiles/npsipsdk.dir/source/OutboundProxyContainer.cpp.o CMakeFiles/npsipsdk.dir/source/SipClient.cpp.o CMakeFiles/npsipsdk.dir/source/SipGatewary.cpp.o CMakeFiles/npsipsdk.dir/source/SipInterface.cpp.o CMakeFiles/npsipsdk.dir/source/Log.cpp.o CMakeFiles/npsipsdk.dir/source/RegisterHandler.cpp.o CMakeFiles/npsipsdk.dir/source/WorkThreads.cpp.o CMakeFiles/npsipsdk.dir/Message/DeviceControlMsg.cpp.o CMakeFiles/npsipsdk.dir/Message/QueryDeviceStatusMsg.cpp.o CMakeFiles/npsipsdk.dir/Message/BroadcastMsg.cpp.o CMakeFiles/npsipsdk.dir/Message/QueryAlarmMsg.cpp.o CMakeFiles/npsipsdk.dir/Message/NpClientMsg.cpp.o CMakeFiles/npsipsdk.dir/Message/QueryDeviceInfoMsg.cpp.o CMakeFiles/npsipsdk.dir/Message/DeviceStatusNotifyMsg.cpp.o CMakeFiles/npsipsdk.dir/Message/InviteMsg.cpp.o CMakeFiles/npsipsdk.dir/Message/MessageMsg.cpp.o CMakeFiles/npsipsdk.dir/Message/NpGatewayMsg.cpp.o CMakeFiles/npsipsdk.dir/Message/Message.cpp.o CMakeFiles/npsipsdk.dir/Message/CatalogNotifyMsg.cpp.o CMakeFiles/npsipsdk.dir/Message/CallInfoMsg.cpp.o CMakeFiles/npsipsdk.dir/Message/KeepaliveMsg.cpp.o CMakeFiles/npsipsdk.dir/Message/GetTempAccountMsg.cpp.o CMakeFiles/npsipsdk.dir/Message/QueryRecordInfoMsg.cpp.o CMakeFiles/npsipsdk.dir/Message/ConfigDownloadMsg.cpp.o CMakeFiles/npsipsdk.dir/Message/GBMessage.cpp.o CMakeFiles/npsipsdk.dir/Message/MsgFactory.cpp.o CMakeFiles/npsipsdk.dir/Message/AlarmNotifyMsg.cpp.o CMakeFiles/npsipsdk.dir/Message/DeviceConfigMsg.cpp.o CMakeFiles/npsipsdk.dir/Message/SubscriptionMsg.cpp.o CMakeFiles/npsipsdk.dir/Message/RegisterMsg.cpp.o CMakeFiles/npsipsdk.dir/Message/QueryCatalogMsg.cpp.o CMakeFiles/npsipsdk.dir/Message/CallMessageMsg.cpp.o 2 | /usr/bin/ranlib libnpsipsdk.a 3 | -------------------------------------------------------------------------------- /CMakeFiles/npsipsdk.dir/progress.make: -------------------------------------------------------------------------------- 1 | CMAKE_PROGRESS_1 = 1 2 | CMAKE_PROGRESS_2 = 2 3 | CMAKE_PROGRESS_3 = 3 4 | CMAKE_PROGRESS_4 = 4 5 | CMAKE_PROGRESS_5 = 5 6 | CMAKE_PROGRESS_6 = 6 7 | CMAKE_PROGRESS_7 = 7 8 | CMAKE_PROGRESS_8 = 8 9 | CMAKE_PROGRESS_9 = 9 10 | CMAKE_PROGRESS_10 = 10 11 | CMAKE_PROGRESS_11 = 11 12 | CMAKE_PROGRESS_12 = 12 13 | CMAKE_PROGRESS_13 = 13 14 | CMAKE_PROGRESS_14 = 14 15 | CMAKE_PROGRESS_15 = 15 16 | CMAKE_PROGRESS_16 = 16 17 | CMAKE_PROGRESS_17 = 17 18 | CMAKE_PROGRESS_18 = 18 19 | CMAKE_PROGRESS_19 = 19 20 | CMAKE_PROGRESS_20 = 20 21 | CMAKE_PROGRESS_21 = 21 22 | CMAKE_PROGRESS_22 = 22 23 | CMAKE_PROGRESS_23 = 23 24 | CMAKE_PROGRESS_24 = 24 25 | CMAKE_PROGRESS_25 = 25 26 | CMAKE_PROGRESS_26 = 26 27 | CMAKE_PROGRESS_27 = 27 28 | CMAKE_PROGRESS_28 = 28 29 | CMAKE_PROGRESS_29 = 29 30 | CMAKE_PROGRESS_30 = 30 31 | CMAKE_PROGRESS_31 = 31 32 | CMAKE_PROGRESS_32 = 32 33 | CMAKE_PROGRESS_33 = 33 34 | CMAKE_PROGRESS_34 = 34 35 | CMAKE_PROGRESS_35 = 35 36 | 37 | -------------------------------------------------------------------------------- /CMakeFiles/progress.marks: -------------------------------------------------------------------------------- 1 | 35 2 | -------------------------------------------------------------------------------- /CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 2.8) 2 | set (CMAKE_CXX_STANDARD 14) 3 | 4 | project(npsipsdk) 5 | 6 | set (CMAKE_INCLUDE_CURRENT_DIR ON) 7 | 8 | set(XML_SRC_DIR "${PROJECT_SOURCE_DIR}/tinyxml2") 9 | include_directories(${XML_SRC_DIR}) 10 | 11 | set(SDK_SRC_DIR ./source) 12 | set(MESSAGE_SRC_DIR ./Message) 13 | include_directories(./header ) 14 | 15 | 16 | 17 | aux_source_directory(${XML_SRC_DIR} XML_SRCS) 18 | aux_source_directory(${SDK_SRC_DIR} SDK_SRCS) 19 | aux_source_directory(${MESSAGE_SRC_DIR} MESSAGE_SRCS) 20 | #aux_source_directory(. SRCS) 21 | set(SOURCES ${XML_SRCS} ${SDK_SRCS} ${MESSAGE_SRCS}) 22 | 23 | add_definitions(-DOUT) 24 | link_libraries(libresip.so libresipares.so librutil.so libdum.so) 25 | add_library(npsipsdk STATIC ${SOURCES}) 26 | 27 | #include_directories(./hksdk/include) 28 | #include_directories(./ffmpeg-3.4.2-win64-dev/include) 29 | #include_directories(.) 30 | #aux_source_directory(. SRCS ) 31 | 32 | #link_directories( ${CMAKE_CURRENT_BINARY_DIR}/libs ${CMAKE_CURRENT_BINARY_DIR}/hksdk/libs ${CMAKE_CURRENT_BINARY_DIR}/ffmpeg-3.4.2-win64-dev/lib) 33 | #link_directories(/opt/CH_HCNetSDK_V5.2.7.4_build20170606_Linux64/lib /opt/CH_HCNetSDK_V5.2.7.4_build20170606_Linux64/lib/HCNetSDKCom) 34 | #add_definitions(-DHKDEVICE_EXPORTS -DGLOG_NO_ABBREVIATED_SEVERITIES -DGOOGLE_GLOG_DLL_DECL= -D__x86_64__) 35 | 36 | #link_libraries(pthread glog avformat avcodec avutil swresample z ) 37 | #link_libraries(/opt/CH_HCNetSDK_V5.2.7.4_build20170606_Linux64/lib/libhcnetsdk.so) 38 | #add_executable(${PROJECT_NAME} ${SRCS} ) 39 | #target_link_libraries( ${PROJECT_NAME} libhcnetsdk.so) -------------------------------------------------------------------------------- /Message/AlarmNotifyMsg.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/escoffier/sipsdk/4d906b32cdc0677be6663249712825eb57d1f870/Message/AlarmNotifyMsg.cpp -------------------------------------------------------------------------------- /Message/AlarmNotifyMsg.hpp: -------------------------------------------------------------------------------- 1 | #ifndef MSG_ALARM_NOTIFY_HPP_ 2 | #define MSG_ALARM_NOTIFY_HPP_ 3 | #include "MessageMsg.hpp" 4 | 5 | ////////////////////////////////////////////////////////////////////////// 6 | class CAlarmNotifyMsg : public CMessageMsgT< CMessageMsg::MsgCmdNotify > 7 | { 8 | public: 9 | CAlarmNotifyMsg() 10 | { 11 | m_sum = 0; 12 | } 13 | 14 | void setMsgProperties(const CAlarmNotifyMsg &msg) 15 | { 16 | m_priority = msg.GetPriority(); 17 | m_method = msg.GetMethod(); 18 | m_time = msg.GetTime(); 19 | m_description = msg.GetDescription(); 20 | m_longitude = msg.GetLongitude(); 21 | m_latitude = msg.GetLatitude(); 22 | m_sum = msg.GetSum(); 23 | 24 | SetDeviceID(msg.GetDeviceID()); 25 | SetSN(msg.GetSN()); 26 | } 27 | 28 | public: 29 | virtual bool Encode( std::string &message ); 30 | virtual bool Decode( const std::vector< XMLNode* > &nodes, std::string &reason ); 31 | virtual void Process( CSipInterface *pInterface ); 32 | 33 | public: 34 | inline const std::string& GetPriority() const 35 | { 36 | return m_priority; 37 | } 38 | 39 | inline const std::string& GetMethod() const 40 | { 41 | return m_method; 42 | } 43 | 44 | inline const std::string& GetTime() const 45 | { 46 | return m_time; 47 | } 48 | 49 | inline const std::string& GetDescription() const 50 | { 51 | return m_description; 52 | } 53 | 54 | inline const std::string& GetLongitude() const 55 | { 56 | return m_longitude; 57 | } 58 | 59 | inline const std::string& GetLatitude() const 60 | { 61 | return m_latitude; 62 | } 63 | 64 | inline void SetPriority( const std::string &priority ) 65 | { 66 | m_priority = priority; 67 | } 68 | 69 | inline void SetMethod( const std::string &method ) 70 | { 71 | m_method = method; 72 | } 73 | 74 | inline void SetTime( const std::string &time ) 75 | { 76 | m_time = time; 77 | } 78 | 79 | inline void SetDescription( const std::string &description ) 80 | { 81 | m_description = description; 82 | } 83 | 84 | inline void SetLongitude( const std::string &longitude ) 85 | { 86 | m_longitude = longitude; 87 | } 88 | 89 | inline void SetLatitude( const std::string &latitude ) 90 | { 91 | m_latitude = latitude; 92 | } 93 | 94 | 95 | inline int GetSum() const 96 | { 97 | return m_sum; 98 | } 99 | 100 | inline void SetSum( int sum ) 101 | { 102 | m_sum = sum; 103 | } 104 | 105 | private: 106 | std::string m_priority; 107 | std::string m_method; 108 | std::string m_time; 109 | std::string m_description; 110 | std::string m_longitude; 111 | std::string m_latitude; 112 | int m_sum; 113 | 114 | }; 115 | 116 | ////////////////////////////////////////////////////////////////////////// 117 | class CAlarmNotifyResponseMsg : public CMessageMsgT< CMessageMsg::MsgCmdResponse > 118 | { 119 | public: 120 | CAlarmNotifyResponseMsg() 121 | { 122 | } 123 | 124 | void setMsgProperties(const CAlarmNotifyResponseMsg &msg) 125 | { 126 | m_result = msg.GetResult(); 127 | SetDeviceID(msg.GetDeviceID()); 128 | } 129 | 130 | public: 131 | virtual bool Encode( std::string &message ); 132 | virtual bool Decode( const std::vector< XMLNode* > &nodes, std::string &reason ); 133 | virtual void Process( CSipInterface *pInterface ); 134 | 135 | public: 136 | inline bool IsOK() const 137 | { 138 | return m_result == CGBMessage::RESULT_OK; 139 | } 140 | 141 | inline bool HasError() const 142 | { 143 | return m_result == CGBMessage::RESULT_ERROR; 144 | } 145 | 146 | inline CGBMessage::EGBResultType GetResult() const 147 | { 148 | return m_result; 149 | } 150 | 151 | inline void SetResult( CGBMessage::EGBResultType result ) 152 | { 153 | m_result = result; 154 | } 155 | 156 | inline void SetOK() 157 | { 158 | m_result = CGBMessage::RESULT_OK; 159 | } 160 | 161 | inline void SetError() 162 | { 163 | m_result = CGBMessage::RESULT_ERROR; 164 | } 165 | 166 | private: 167 | EGBResultType m_result; 168 | }; 169 | 170 | #endif // MSG_QUERY_DEVICESTATUS_HPP_ 171 | -------------------------------------------------------------------------------- /Message/BroadcastMsg.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/escoffier/sipsdk/4d906b32cdc0677be6663249712825eb57d1f870/Message/BroadcastMsg.cpp -------------------------------------------------------------------------------- /Message/BroadcastMsg.hpp: -------------------------------------------------------------------------------- 1 | #ifndef MSG_BROAD_CAST_HPP_ 2 | #define MSG_BROAD_CAST_HPP_ 3 | #include "MessageMsg.hpp" 4 | 5 | ////////////////////////////////////////////////////////////////////////// 6 | class CBroadcastMsg : public CMessageMsgT< CMessageMsg::MsgCmdNotify > 7 | { 8 | public: 9 | CBroadcastMsg() 10 | { 11 | } 12 | 13 | void setMsgProperties(const CBroadcastMsg &msg) 14 | { 15 | m_source = msg.GetSourceID(); 16 | m_target = msg.GetTargetID(); 17 | 18 | SetDeviceID(msg.GetDeviceID()); 19 | SetTo(msg.GetTo()); 20 | } 21 | 22 | 23 | public: 24 | inline const std::string& GetSourceID() const 25 | { 26 | return m_source; 27 | } 28 | 29 | inline void SetSourceID( const std::string &sid ) 30 | { 31 | m_source = sid; 32 | } 33 | 34 | inline const std::string& GetTargetID() const 35 | { 36 | return m_target; 37 | } 38 | 39 | inline void SetTargetID( const std::string &tid ) 40 | { 41 | m_target = tid; 42 | } 43 | 44 | public: 45 | virtual bool Encode( std::string &message ); 46 | virtual bool Decode( const std::vector< XMLNode* > &nodes, std::string &reason ); 47 | virtual void Process( CSipInterface *pInterface ); 48 | 49 | private: 50 | std::string m_source; 51 | std::string m_target; 52 | }; 53 | 54 | ////////////////////////////////////////////////////////////////////////// 55 | class CBroadcastResponseMsg : public CMessageMsgT< CMessageMsg::MsgCmdResult > 56 | { 57 | public: 58 | CBroadcastResponseMsg() 59 | { 60 | } 61 | 62 | void setMsgProperties(const CBroadcastResponseMsg &msg) 63 | { 64 | m_result = msg.GetResult(); 65 | SetDeviceID(msg.GetDeviceID()); 66 | SetTo(msg.GetTo()); 67 | } 68 | 69 | public: 70 | virtual bool Encode( std::string &message ); 71 | virtual bool Decode( const std::vector< XMLNode* > &nodes, std::string &reason ); 72 | virtual void Process( CSipInterface *pInterface ); 73 | 74 | public: 75 | inline bool IsOK() const 76 | { 77 | return m_result == CGBMessage::RESULT_OK; 78 | } 79 | 80 | inline bool HasError() const 81 | { 82 | return m_result == CGBMessage::RESULT_ERROR; 83 | } 84 | 85 | inline CGBMessage::EGBResultType GetResult() const 86 | { 87 | return m_result; 88 | } 89 | 90 | inline void SetResult( CGBMessage::EGBResultType result ) 91 | { 92 | m_result = result; 93 | } 94 | 95 | inline void SetOK() 96 | { 97 | m_result = CGBMessage::RESULT_OK; 98 | } 99 | 100 | inline void SetError() 101 | { 102 | m_result = CGBMessage::RESULT_ERROR; 103 | } 104 | 105 | private: 106 | EGBResultType m_result; 107 | }; 108 | 109 | ////////////////////////////////////////////////////////////////////////// 110 | #endif // MSG_BROAD_CAST_HPP_ 111 | 112 | -------------------------------------------------------------------------------- /Message/CallInfoMsg.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/escoffier/sipsdk/4d906b32cdc0677be6663249712825eb57d1f870/Message/CallInfoMsg.cpp -------------------------------------------------------------------------------- /Message/CallInfoMsg.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/escoffier/sipsdk/4d906b32cdc0677be6663249712825eb57d1f870/Message/CallInfoMsg.hpp -------------------------------------------------------------------------------- /Message/CallMessageMsg.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/escoffier/sipsdk/4d906b32cdc0677be6663249712825eb57d1f870/Message/CallMessageMsg.cpp -------------------------------------------------------------------------------- /Message/CallMessageMsg.hpp: -------------------------------------------------------------------------------- 1 | #ifndef MSG_CALLMESSAGE_MSG_HPP_ 2 | #define MSG_CALLMESSAGE_MSG_HPP_ 3 | 4 | #include "GBMessage.hpp" 5 | #include "resip/dum/InviteSession.hxx" 6 | 7 | ////////////////////////////////////////////////////////////////////////// 8 | class CCallMessageMsg : public CGBMessage 9 | { 10 | public: 11 | CCallMessageMsg() : m_handle( NULL ) 12 | { 13 | } 14 | 15 | public: 16 | virtual bool Send( resip::DialogUsageManager &mDum, bool tcp = false ); 17 | virtual bool Encode( std::string &message ); 18 | virtual bool Decode( const std::vector< XMLNode* > &nodes, std::string &reason ); 19 | virtual void Process( CSipInterface *pInterface ); 20 | 21 | public: 22 | inline const std::string& GetSN() const 23 | { 24 | return m_sn; 25 | } 26 | 27 | inline const std::string& GetDeviceID() const 28 | { 29 | return m_deviceid; 30 | } 31 | 32 | inline void SetDeviceID( const std::string &deviceid ) 33 | { 34 | m_deviceid = deviceid; 35 | } 36 | 37 | inline void SetSN( const std::string &sn ) 38 | { 39 | m_sn = sn; 40 | } 41 | 42 | inline void SetNotifyType( const std::string &type ) 43 | { 44 | m_type = type; 45 | } 46 | 47 | inline const std::string& GetNotifyType() const 48 | { 49 | return m_type; 50 | } 51 | 52 | inline resip::InviteSession* GetHandle() 53 | { 54 | return m_handle; 55 | } 56 | 57 | inline const resip::InviteSession* GetHandle() const 58 | { 59 | return m_handle; 60 | } 61 | 62 | inline void SetHandle( uint64_t handle ) 63 | { 64 | m_handle = (resip::InviteSession*)( handle ); 65 | } 66 | 67 | inline void SetHandle( resip::InviteSession *h ) 68 | { 69 | m_handle = h; 70 | } 71 | 72 | protected: 73 | resip::InviteSession* m_handle; 74 | std::string m_sn; 75 | std::string m_deviceid; 76 | std::string m_type; 77 | }; 78 | 79 | ////////////////////////////////////////////////////////////////////////// 80 | class CCallMessageResponseMsg : public CGBMessage 81 | { 82 | public: 83 | CCallMessageResponseMsg() : m_handle( NULL ) 84 | { 85 | } 86 | 87 | public: 88 | inline resip::InviteSession* GetHandle() 89 | { 90 | return m_handle; 91 | } 92 | 93 | inline void SetHandle( resip::InviteSession *h ) 94 | { 95 | m_handle = h; 96 | } 97 | 98 | public: 99 | virtual bool Send( resip::DialogUsageManager &mDum, bool tcp = false ); 100 | virtual bool Encode( std::string &message ); 101 | virtual bool Decode( const std::vector< XMLNode* > &nodes, std::string &reason ); 102 | virtual void Process( CSipInterface *pInterface ); 103 | 104 | protected: 105 | resip::InviteSession* m_handle; 106 | }; 107 | 108 | ////////////////////////////////////////////////////////////////////////// 109 | class CStreamPlayEndMsg : public CCallMessageMsg 110 | { 111 | public: 112 | CStreamPlayEndMsg() 113 | { 114 | } 115 | 116 | public: 117 | virtual bool Encode( std::string &message ); 118 | virtual bool Decode( const std::vector< XMLNode* > &nodes, std::string &reason ); 119 | virtual void Process( CSipInterface *pInterface ); 120 | }; 121 | 122 | ////////////////////////////////////////////////////////////////////////// 123 | #endif // MSG_CALLMESSAGE_MSG_HPP_ 124 | -------------------------------------------------------------------------------- /Message/CatalogNotifyMsg.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/escoffier/sipsdk/4d906b32cdc0677be6663249712825eb57d1f870/Message/CatalogNotifyMsg.cpp -------------------------------------------------------------------------------- /Message/CatalogNotifyMsg.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/escoffier/sipsdk/4d906b32cdc0677be6663249712825eb57d1f870/Message/CatalogNotifyMsg.hpp -------------------------------------------------------------------------------- /Message/ConfigDownloadMsg.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/escoffier/sipsdk/4d906b32cdc0677be6663249712825eb57d1f870/Message/ConfigDownloadMsg.cpp -------------------------------------------------------------------------------- /Message/DeviceConfigMsg.cpp: -------------------------------------------------------------------------------- 1 | #include "DeviceConfigMsg.hpp" 2 | #include "SipInterface.h" 3 | 4 | bool CBasicParamMsg::Encode( std::string &message ) 5 | { 6 | return true; 7 | } 8 | 9 | bool CBasicParamMsg::Decode( const std::vector< XMLNode* > &nodes, std::string &reason ) 10 | { 11 | return true; 12 | } 13 | 14 | void CBasicParamMsg::Process( CSipInterface *pInterface ) 15 | { 16 | if( pInterface != NULL ) 17 | { 18 | pInterface->OnBasicParam( *this ); 19 | } 20 | } 21 | 22 | bool CVideoParamConfigMsg::Encode( std::string &message ) 23 | { 24 | return true; 25 | } 26 | 27 | bool CVideoParamConfigMsg::Decode( const std::vector< XMLNode* > &nodes, std::string &reason ) 28 | { 29 | return true; 30 | } 31 | 32 | void CVideoParamConfigMsg::Process( CSipInterface *pInterface ) 33 | { 34 | if( pInterface != NULL ) 35 | { 36 | pInterface->OnVideoParamConfig( *this ); 37 | } 38 | } 39 | 40 | bool CAudioParamConfigMsg::Encode( std::string &message ) 41 | { 42 | return true; 43 | } 44 | 45 | bool CAudioParamConfigMsg::Decode( const std::vector< XMLNode* > &nodes, std::string &reason ) 46 | { 47 | return true; 48 | } 49 | 50 | void CAudioParamConfigMsg::Process( CSipInterface *pInterface ) 51 | { 52 | if( pInterface != NULL ) 53 | { 54 | pInterface->OnAudioParamConfig( *this ); 55 | } 56 | } 57 | 58 | bool CSVACEncodeConfigMsg::Encode( std::string &message ) 59 | { 60 | return true; 61 | } 62 | 63 | bool CSVACEncodeConfigMsg::Decode( const std::vector< XMLNode* > &nodes, std::string &reason ) 64 | { 65 | return true; 66 | } 67 | 68 | void CSVACEncodeConfigMsg::Process( CSipInterface *pInterface ) 69 | { 70 | if( pInterface != NULL ) 71 | { 72 | pInterface->OnSVACEncodeConfig( *this ); 73 | } 74 | } 75 | 76 | bool CSVACDecodeConfigMsg::Encode( std::string &message ) 77 | { 78 | return true; 79 | } 80 | 81 | bool CSVACDecodeConfigMsg::Decode( const std::vector< XMLNode* > &nodes, std::string &reason ) 82 | { 83 | return true; 84 | } 85 | 86 | void CSVACDecodeConfigMsg::Process( CSipInterface *pInterface ) 87 | { 88 | if( pInterface != NULL ) 89 | { 90 | pInterface->OnSVACDecodeConfig( *this ); 91 | } 92 | } 93 | 94 | bool CDeviceConfigResponseMsg::Encode( std::string &message ) 95 | { 96 | return true; 97 | } 98 | 99 | bool CDeviceConfigResponseMsg::Decode( const std::vector< XMLNode* > &nodes, std::string &reason ) 100 | { 101 | return true; 102 | } 103 | 104 | void CDeviceConfigResponseMsg::Process( CSipInterface *pInterface ) 105 | { 106 | if( pInterface != NULL ) 107 | { 108 | pInterface->OnDeviceConfigResponse( *this ); 109 | } 110 | } 111 | -------------------------------------------------------------------------------- /Message/DeviceControlMsg.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/escoffier/sipsdk/4d906b32cdc0677be6663249712825eb57d1f870/Message/DeviceControlMsg.cpp -------------------------------------------------------------------------------- /Message/DeviceControlMsg.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/escoffier/sipsdk/4d906b32cdc0677be6663249712825eb57d1f870/Message/DeviceControlMsg.hpp -------------------------------------------------------------------------------- /Message/DeviceStatusNotifyMsg.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/escoffier/sipsdk/4d906b32cdc0677be6663249712825eb57d1f870/Message/DeviceStatusNotifyMsg.cpp -------------------------------------------------------------------------------- /Message/DeviceStatusNotifyMsg.hpp: -------------------------------------------------------------------------------- 1 | #ifndef MSG_QUERY_DEVICESTATUS_HPP_ 2 | #define MSG_QUERY_DEVICESTATUS_HPP_ 3 | #include "MessageMsg.hpp" 4 | 5 | ////////////////////////////////////////////////////////////////////////// 6 | class CQueryDeviceStatusMsg : public CGBMessageMsgT< CGBMessageMsg::MsgCmdQuery > 7 | { 8 | public: 9 | CQueryDeviceStatusMsg() : CGBMessageMsgT< CGBMessageMsg::MsgCmdQuery >( CGBMessage::CmdQueryDeviceStatus ) 10 | { 11 | } 12 | 13 | public: 14 | virtual bool Encode( std::ostream &stream ); 15 | virtual bool Decode( TiXmlNode *pNode ); 16 | virtual void Process( CSipInterface *pInteface ); 17 | }; 18 | 19 | ////////////////////////////////////////////////////////////////////////// 20 | class CQueryDeviceStatusReponseMsg : public CGBMessageMsgT< CGBMessageMsg::MsgCmdReponse > 21 | { 22 | public: 23 | CQueryDeviceStatusReponseMsg() : CGBMessageMsgT< CGBMessageMsg::MsgCmdReponse >( CGBMessage::CmdQueryDeviceStatusReponse ) 24 | { 25 | } 26 | 27 | public: 28 | virtual bool Encode( std::ostream &stream ); 29 | virtual bool Decode( TiXmlNode *pNode ); 30 | virtual void Process( CSipInterface *pInteface ); 31 | }; 32 | 33 | #endif // MSG_QUERY_DEVICESTATUS_HPP_ -------------------------------------------------------------------------------- /Message/GB28181.hpp: -------------------------------------------------------------------------------- 1 | #ifndef GBMSG_GB28181_CREATER_HPP_ 2 | #define GBMSG_GB28181_CREATER_HPP_ 3 | #include "MsgCreater.hpp" 4 | 5 | template<> 6 | class CGBMsgCreaterT< VER_GB28181 > : public CGBMsgCreater 7 | { 8 | public: 9 | friend class CGBMsgFactory; 10 | 11 | protected: 12 | CGBMsgCreaterT() 13 | { 14 | } 15 | 16 | virtual ~CGBMsgCreaterT() 17 | { 18 | } 19 | 20 | private: 21 | CGBMsgCreaterT( const CGBMsgCreaterT &rhs ); 22 | CGBMsgCreaterT& operator=( const CGBMsgCreaterT &rhs ); 23 | 24 | public: 25 | public: 26 | virtual CGBMessage* CreateInvite( const char *body, const bool bDecoder, std::string &resaon ) 27 | { 28 | return NULL; 29 | } 30 | 31 | virtual CGBMessage* CreateInviteResponse( const char *body, std::string &resaon ) 32 | { 33 | return NULL; 34 | } 35 | 36 | virtual CGBMessage* CreateAck( const char *body, std::string &resaon ) 37 | { 38 | return NULL; 39 | } 40 | 41 | virtual CGBMessage* CreateBye( const char *body, std::string &resaon ) 42 | { 43 | return NULL; 44 | } 45 | 46 | virtual CGBMessage* CreateCallInfo( const char *body, std::string &resaon ) 47 | { 48 | return NULL; 49 | } 50 | 51 | virtual CGBMessage* CreateCallInfoResponse( const char *body, std::string &resaon ) 52 | { 53 | return NULL; 54 | } 55 | 56 | virtual CGBMessage* CreateCallMessage( const char *body, std::string &resaon ) 57 | { 58 | return NULL; 59 | } 60 | 61 | virtual CGBMessage* CreateCallMessageResponse( const char *body, std::string &resaon ) 62 | { 63 | return NULL; 64 | } 65 | 66 | virtual CGBMessage* CreateMessage( const char *body, std::string &resaon ) 67 | { 68 | return NULL; 69 | } 70 | 71 | virtual CGBMessage* CreateMessageResponse( const char *body, std::string &resaon ) 72 | { 73 | return NULL; 74 | } 75 | 76 | virtual CGBMessage* CreateNotify( const char *body, std::string &resaon ) 77 | { 78 | return NULL; 79 | } 80 | 81 | virtual CGBMessage* CreateNotifyResponse( const char *body, std::string &resaon ) 82 | { 83 | return NULL; 84 | } 85 | 86 | virtual CGBMessage* CreateInfo( const char *body, std::string &resaon ) 87 | { 88 | return NULL; 89 | } 90 | 91 | virtual CGBMessage* CreateInfoResponse( const char *body, std::string &resaon ) 92 | { 93 | return NULL; 94 | } 95 | 96 | virtual CGBMessage* CreateRegisterAdd( const char *body, std::string &resaon ) 97 | { 98 | return NULL; 99 | } 100 | 101 | virtual CGBMessage* CreateRegisterResponse( const char *body, std::string &resaon ) 102 | { 103 | return NULL; 104 | } 105 | 106 | virtual CGBMessage* CreateRegisterRefresh( const char *body, std::string &resaon ) 107 | { 108 | return NULL; 109 | } 110 | 111 | virtual CGBMessage* CreateRegisterRemove( const char *body, std::string &resaon ) 112 | { 113 | return NULL; 114 | } 115 | 116 | virtual CGBMessage* CreateRegisterRemoveAll( const char *body, std::string &resaon ) 117 | { 118 | return NULL; 119 | } 120 | 121 | virtual CGBMessage* CreateClientUpdateSubscription( const char *body, std::string &resaon ) 122 | { 123 | return NULL; 124 | } 125 | 126 | virtual CGBMessage* CreateClientCancelSubscription( const char *body, std::string &resaon ) 127 | { 128 | return NULL; 129 | } 130 | 131 | virtual CGBMessage* CreateClientAddSubscription( const char *body, std::string &resaon ) 132 | { 133 | return NULL; 134 | } 135 | 136 | virtual CGBMessage* CreateServerAddSubscription( const char *body, std::string &resaon ) 137 | { 138 | return NULL; 139 | } 140 | 141 | virtual CGBMessage* CreateServerNotifySubscription( const char *body, std::string &resaon ) 142 | { 143 | return NULL; 144 | } 145 | }; 146 | 147 | #endif // GBMSG_GB28181_CREATER_HPP_ 148 | -------------------------------------------------------------------------------- /Message/GB28181Ex.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/escoffier/sipsdk/4d906b32cdc0677be6663249712825eb57d1f870/Message/GB28181Ex.hpp -------------------------------------------------------------------------------- /Message/GBMessage.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/escoffier/sipsdk/4d906b32cdc0677be6663249712825eb57d1f870/Message/GBMessage.cpp -------------------------------------------------------------------------------- /Message/GBMessage.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/escoffier/sipsdk/4d906b32cdc0677be6663249712825eb57d1f870/Message/GBMessage.hpp -------------------------------------------------------------------------------- /Message/GetTempAccountMsg.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/escoffier/sipsdk/4d906b32cdc0677be6663249712825eb57d1f870/Message/GetTempAccountMsg.cpp -------------------------------------------------------------------------------- /Message/GetTempAccountMsg.hpp: -------------------------------------------------------------------------------- 1 | #ifndef MSG_GET_TEMPACCOUNT_HPP_ 2 | #define MSG_GET_TEMPACCOUNT_HPP_ 3 | #include "MessageMsg.hpp" 4 | #include 5 | 6 | ////////////////////////////////////////////////////////////////////////// 7 | class CGetTempAccountMsg : public CMessageMsgT< CMessageMsg::MsgCmdQuery > 8 | { 9 | public: 10 | CGetTempAccountMsg() 11 | { 12 | } 13 | 14 | public: 15 | virtual bool Encode( std::string &message ); 16 | virtual bool Decode( const std::vector< XMLNode* > &nodes, std::string &reason ); 17 | virtual void Process( CSipInterface *pInterface ); 18 | 19 | public: 20 | 21 | private: 22 | }; 23 | 24 | ////////////////////////////////////////////////////////////////////////// 25 | class CGetTempAccountResponseMsg : public CMessageMsgT< CMessageMsg::MsgCmdResponse > 26 | { 27 | public: 28 | CGetTempAccountResponseMsg() 29 | { 30 | } 31 | 32 | public: 33 | inline bool IsOK() const 34 | { 35 | return m_result == CGBMessage::RESULT_OK; 36 | } 37 | 38 | inline bool HasError() const 39 | { 40 | return m_result == CGBMessage::RESULT_ERROR; 41 | } 42 | 43 | inline CGBMessage::EGBResultType GetResult() const 44 | { 45 | return m_result; 46 | } 47 | 48 | inline void SetResult( CGBMessage::EGBResultType result ) 49 | { 50 | m_result = result; 51 | } 52 | 53 | inline void SetOK() 54 | { 55 | m_result = CGBMessage::RESULT_OK; 56 | } 57 | 58 | inline void SetError() 59 | { 60 | m_result = CGBMessage::RESULT_ERROR; 61 | } 62 | 63 | inline const std::string& GetAccount() const 64 | { 65 | return m_account; 66 | } 67 | 68 | inline void SetAccount( const std::string& account ) 69 | { 70 | m_account = account; 71 | } 72 | 73 | inline const std::string& GetPassword() const 74 | { 75 | return m_password; 76 | } 77 | 78 | inline void SetPassword( const std::string& password ) 79 | { 80 | m_password = password; 81 | } 82 | 83 | public: 84 | virtual bool Encode( std::string &message ); 85 | virtual bool Decode( const std::vector< XMLNode* > &nodes, std::string &reason ); 86 | virtual void Process( CSipInterface *pInterface ); 87 | 88 | private: 89 | EGBResultType m_result; 90 | std::string m_account; 91 | std::string m_password; 92 | 93 | }; 94 | ////////////////////////////////////////////////////////////////////////// 95 | #endif // MSG_GET_TEMPACCOUNT_HPP_ 96 | -------------------------------------------------------------------------------- /Message/InviteMsg.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/escoffier/sipsdk/4d906b32cdc0677be6663249712825eb57d1f870/Message/InviteMsg.cpp -------------------------------------------------------------------------------- /Message/KeepaliveMsg.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/escoffier/sipsdk/4d906b32cdc0677be6663249712825eb57d1f870/Message/KeepaliveMsg.cpp -------------------------------------------------------------------------------- /Message/KeepaliveMsg.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/escoffier/sipsdk/4d906b32cdc0677be6663249712825eb57d1f870/Message/KeepaliveMsg.hpp -------------------------------------------------------------------------------- /Message/Message.cpp: -------------------------------------------------------------------------------- 1 | #include "Message.hpp" 2 | #include "MessageQueue.hpp" 3 | 4 | void CMessage::Post() 5 | { 6 | CMessageQueue::AddMessage( this ); 7 | } 8 | -------------------------------------------------------------------------------- /Message/Message.hpp: -------------------------------------------------------------------------------- 1 | #ifndef MESSAGE_HPP_ 2 | #define MESSAGE_HPP_ 3 | 4 | ////////////////////////////////////////////////////////////////////////// 5 | class CSipInterface; 6 | class CMessage 7 | { 8 | public: 9 | void Post(); 10 | 11 | public: 12 | virtual void Process( CSipInterface *pInterface ) = 0; 13 | }; 14 | 15 | ////////////////////////////////////////////////////////////////////////// 16 | #endif // MESSAGE_HPP_ 17 | -------------------------------------------------------------------------------- /Message/MessageMsg.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/escoffier/sipsdk/4d906b32cdc0677be6663249712825eb57d1f870/Message/MessageMsg.cpp -------------------------------------------------------------------------------- /Message/MessageMsg.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/escoffier/sipsdk/4d906b32cdc0677be6663249712825eb57d1f870/Message/MessageMsg.hpp -------------------------------------------------------------------------------- /Message/MsgCreater.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/escoffier/sipsdk/4d906b32cdc0677be6663249712825eb57d1f870/Message/MsgCreater.hpp -------------------------------------------------------------------------------- /Message/MsgFactory.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/escoffier/sipsdk/4d906b32cdc0677be6663249712825eb57d1f870/Message/MsgFactory.cpp -------------------------------------------------------------------------------- /Message/MsgFactory.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/escoffier/sipsdk/4d906b32cdc0677be6663249712825eb57d1f870/Message/MsgFactory.hpp -------------------------------------------------------------------------------- /Message/NpClientMsg.cpp: -------------------------------------------------------------------------------- 1 | #include "NpClientMsg.hpp" 2 | #include "SipClient.hpp" 3 | 4 | void CClientOfflineMsg::Process( CSipInterface *pInterface ) 5 | { 6 | CSipClient *pClient = dynamic_cast< CSipClient* >( pInterface ); 7 | if( pClient != NULL ) 8 | { 9 | pClient->OnOffline( *this ); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Message/NpClientMsg.hpp: -------------------------------------------------------------------------------- 1 | #ifndef NPCLIENT_MSG_HPP_ 2 | #define NPCLIENT_MSG_HPP_ 3 | 4 | #include 5 | #include "Message.hpp" 6 | 7 | ////////////////////////////////////////////////////////////////////////// 8 | class CClientOfflineMsg : public CMessage 9 | { 10 | public: 11 | virtual void Process( CSipInterface *pInterface ); 12 | 13 | public: 14 | inline void SetID( const std::string &id ) 15 | { 16 | m_id = id; 17 | } 18 | 19 | inline const std::string& GetID() const 20 | { 21 | return m_id; 22 | } 23 | 24 | private: 25 | std::string m_id; 26 | }; 27 | ////////////////////////////////////////////////////////////////////////// 28 | #endif // NPCLIENT_MSG_HPP_ 29 | -------------------------------------------------------------------------------- /Message/NpGatewayMsg.cpp: -------------------------------------------------------------------------------- 1 | #include "NpGatewayMsg.hpp" 2 | #include "SipGateway.hpp" 3 | 4 | void COfflineMsg::Process( CSipInterface *pInterface ) 5 | { 6 | CSipGateway *pGateway = dynamic_cast< CSipGateway* >( pInterface ); 7 | if( pGateway != NULL ) 8 | { 9 | pGateway->OnOffline( *this ); 10 | } 11 | } 12 | 13 | void CPlayOverMsg::Process( CSipInterface *pInterface ) 14 | { 15 | CSipGateway *pGateway = dynamic_cast< CSipGateway* >( pInterface ); 16 | if( pGateway != NULL ) 17 | { 18 | pGateway->OnPlayOver( *this ); 19 | } 20 | } 21 | 22 | void CPlayCloseMsg::Process( CSipInterface *pInterface ) 23 | { 24 | CSipGateway *pGateway = dynamic_cast< CSipGateway* >( pInterface ); 25 | if( pGateway != NULL ) 26 | { 27 | pGateway->OnPlayClose( *this ); 28 | } 29 | } 30 | 31 | void CMediaReconnectMsg::Process( CSipInterface *pInterface ) 32 | { 33 | CSipGateway *pGateway = dynamic_cast< CSipGateway* >( pInterface ); 34 | if( pGateway != NULL ) 35 | { 36 | pGateway->OnMediaConnect( *this ); 37 | } 38 | 39 | } 40 | -------------------------------------------------------------------------------- /Message/NpGatewayMsg.hpp: -------------------------------------------------------------------------------- 1 | #ifndef NPGATEWAY_MSG_HPP_ 2 | #define NPGATEWAY_MSG_HPP_ 3 | 4 | #include 5 | #include "Message.hpp" 6 | 7 | ////////////////////////////////////////////////////////////////////////// 8 | class COfflineMsg : public CMessage 9 | { 10 | public: 11 | virtual void Process( CSipInterface *pInterface ); 12 | 13 | public: 14 | inline void SetID( const std::string &id ) 15 | { 16 | m_id = id; 17 | } 18 | 19 | inline const std::string& GetID() const 20 | { 21 | return m_id; 22 | } 23 | 24 | private: 25 | std::string m_id; 26 | }; 27 | 28 | ////////////////////////////////////////////////////////////////////////// 29 | class CPlayOverMsg : public CMessage 30 | { 31 | public: 32 | virtual void Process( CSipInterface *pInterface ); 33 | 34 | public: 35 | inline void SetSession( unsigned int session ) 36 | { 37 | m_session = session; 38 | } 39 | 40 | inline unsigned int GetSession() const 41 | { 42 | return m_session; 43 | } 44 | 45 | private: 46 | unsigned int m_session; 47 | }; 48 | 49 | ////////////////////////////////////////////////////////////////////////// 50 | class CPlayCloseMsg : public CMessage 51 | { 52 | public: 53 | virtual void Process( CSipInterface *pInterface ); 54 | 55 | public: 56 | inline void SetSession( unsigned int session ) 57 | { 58 | m_session = session; 59 | } 60 | 61 | inline unsigned int GetSession() const 62 | { 63 | return m_session; 64 | } 65 | 66 | private: 67 | unsigned int m_session; 68 | }; 69 | 70 | ////////////////////////////////////////////////////////////////////////// 71 | class CMediaServerInfo; 72 | class CMediaReconnectMsg : public CMessage 73 | { 74 | public: 75 | CMediaReconnectMsg() : m_pMedia( 0 ) 76 | { 77 | } 78 | 79 | public: 80 | inline CMediaServerInfo* GetMediaInfo() 81 | { 82 | return m_pMedia; 83 | } 84 | 85 | inline const CMediaServerInfo* GetMediaInfo() const 86 | { 87 | return m_pMedia; 88 | } 89 | 90 | inline void SetMediaInfo( CMediaServerInfo *media ) 91 | { 92 | m_pMedia = media; 93 | } 94 | 95 | public: 96 | virtual void Process( CSipInterface *pInterface ); 97 | 98 | private: 99 | CMediaServerInfo* m_pMedia; 100 | }; 101 | ////////////////////////////////////////////////////////////////////////// 102 | #endif // MESSAGE_HPP_ 103 | -------------------------------------------------------------------------------- /Message/QueryAlarmMsg.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/escoffier/sipsdk/4d906b32cdc0677be6663249712825eb57d1f870/Message/QueryAlarmMsg.cpp -------------------------------------------------------------------------------- /Message/QueryAlarmMsg.hpp: -------------------------------------------------------------------------------- 1 | #ifndef MSG_QUERY_ALARM_HPP_ 2 | #define MSG_QUERY_ALARM_HPP_ 3 | #include "MessageMsg.hpp" 4 | 5 | ////////////////////////////////////////////////////////////////////////// 6 | class CQueryAlarmMsg : public CMessageMsgT< CMessageMsg::MsgCmdQuery > 7 | { 8 | public: 9 | CQueryAlarmMsg() 10 | { 11 | } 12 | 13 | public: 14 | virtual bool Encode( std::string &message ); 15 | virtual bool Decode( const std::vector< XMLNode* > &nodes, std::string &reason ); 16 | virtual void Process( CSipInterface *pInterface ); 17 | 18 | public: 19 | inline const std::string& GetStartAlarmPriority() const 20 | { 21 | return m_startAlarmPriority; 22 | } 23 | 24 | inline const std::string& GetEndAlarmPriority() const 25 | { 26 | return m_endAlarmPriority; 27 | } 28 | 29 | inline const std::string& GetAlarmMethod() const 30 | { 31 | return m_alarmMethod; 32 | } 33 | 34 | inline const std::string& GetStartAlarmTime() const 35 | { 36 | return m_startAlarmTime; 37 | } 38 | 39 | inline const std::string& GetEndAlarmTime() const 40 | { 41 | return m_endAlarmTime; 42 | } 43 | 44 | inline void SetStartAlarmPriority( const std::string &priority ) 45 | { 46 | m_startAlarmPriority = priority; 47 | } 48 | 49 | inline void SetEndAlarmPriority( const std::string &priority ) 50 | { 51 | m_endAlarmPriority = priority; 52 | } 53 | 54 | inline void SetAlarmMethod( const std::string &method ) 55 | { 56 | m_alarmMethod = method; 57 | } 58 | 59 | inline void SetStartAlarmTime( const std::string &time ) 60 | { 61 | m_startAlarmTime = time; 62 | } 63 | 64 | inline void SetEndAlarmTime( const std::string &time ) 65 | { 66 | m_endAlarmTime = time; 67 | } 68 | 69 | private: 70 | std::string m_startAlarmPriority; 71 | std::string m_endAlarmPriority; 72 | std::string m_alarmMethod; 73 | std::string m_startAlarmTime; 74 | std::string m_endAlarmTime; 75 | }; 76 | 77 | ////////////////////////////////////////////////////////////////////////// 78 | class CQueryAlarmResponseMsg : public CMessageMsgT< CMessageMsg::MsgCmdResponse > 79 | { 80 | public: 81 | CQueryAlarmResponseMsg() 82 | { 83 | } 84 | 85 | public: 86 | virtual bool Encode( std::string &message ); 87 | virtual bool Decode( const std::vector< XMLNode* > &nodes, std::string &reason ); 88 | virtual void Process( CSipInterface *pInterface ); 89 | 90 | public: 91 | inline bool IsOK() const 92 | { 93 | return m_result == CGBMessage::RESULT_OK; 94 | } 95 | 96 | inline bool HasError() const 97 | { 98 | return m_result == CGBMessage::RESULT_ERROR; 99 | } 100 | 101 | inline CGBMessage::EGBResultType GetResult() const 102 | { 103 | return m_result; 104 | } 105 | 106 | inline void SetResult( CGBMessage::EGBResultType result ) 107 | { 108 | m_result = result; 109 | } 110 | 111 | inline void SetOK() 112 | { 113 | m_result = CGBMessage::RESULT_OK; 114 | } 115 | 116 | inline void SetError() 117 | { 118 | m_result = CGBMessage::RESULT_ERROR; 119 | } 120 | 121 | private: 122 | EGBResultType m_result; 123 | }; 124 | 125 | #endif // MSG_QUERY_Alarm_HPP_ -------------------------------------------------------------------------------- /Message/QueryCatalogMsg.hpp: -------------------------------------------------------------------------------- 1 | #ifndef MSG_QUERY_CATALOG_HPP_ 2 | #define MSG_QUERY_CATALOG_HPP_ 3 | #include "MessageMsg.hpp" 4 | #include 5 | 6 | ////////////////////////////////////////////////////////////////////////// 7 | /** �����յ���Ŀ¼��ѯ��Ϣ������Ϣ�������ϼ�,sipclient,siphost������Ϣ�������ڱ����¹����¼��͹����豸���� 8 | * �����Ƕ�����Ϣ����Ȼ�����ò�ѯ���豸ID����Ϣ��to�ֶ� 9 | * 10 | */ 11 | class CQueryCatalogMsg : public CMessageMsgT< CMessageMsg::MsgCmdQuery > 12 | { 13 | public: 14 | CQueryCatalogMsg() 15 | { 16 | } 17 | 18 | public: 19 | virtual bool Encode( std::string &message ); 20 | virtual bool Decode( const std::vector< XMLNode* > &nodes, std::string &reason ); 21 | virtual void Process( CSipInterface *pInterface ); 22 | 23 | public: 24 | inline const std::string& GetStartTime() const 25 | { 26 | return m_startTime; 27 | } 28 | 29 | inline const std::string& GetEndTime() const 30 | { 31 | return m_endTime; 32 | } 33 | 34 | inline void SetStartTime( const std::string &time ) 35 | { 36 | m_startTime = time; 37 | } 38 | 39 | inline void SetEndTime( const std::string &time ) 40 | { 41 | m_endTime = time; 42 | } 43 | 44 | private: 45 | std::string m_startTime; 46 | std::string m_endTime; 47 | }; 48 | 49 | ////////////////////////////////////////////////////////////////////////// 50 | /** Ŀ¼������Ϣ���յ�Ŀ¼��ѯ֮�󣬽���ѯ��Ŀ¼���͸���ѯ�� 51 | * 52 | */ 53 | class CQueryCatalogResponseMsg : public CMessageMsgT< CMessageMsg::MsgCmdResponse > 54 | { 55 | public: 56 | struct SCatalog 57 | { 58 | std::string id; 59 | std::string name; 60 | std::string manufacturer; 61 | std::string model; 62 | std::string owner; 63 | std::string civil; 64 | std::string block; 65 | std::string address; 66 | std::string safetyway; 67 | std::string registerway; 68 | std::string certnum; 69 | std::string certifiable; 70 | std::string errcode; 71 | std::string secrecy; 72 | std::string parental; 73 | std::string parentid; 74 | std::string endtime; 75 | std::string ip; 76 | std::string port; 77 | std::string password; 78 | std::string status; 79 | std::string longitude; 80 | std::string latitude; 81 | std::string ptz; 82 | std::string position; 83 | std::string room; 84 | std::string use; 85 | std::string supplylight; 86 | std::string direction; 87 | std::string resolution; 88 | std::string businessgroup; 89 | }; 90 | 91 | public: 92 | CQueryCatalogResponseMsg() 93 | { 94 | } 95 | 96 | public: 97 | virtual bool Encode( std::string &message ); 98 | virtual bool Decode( const std::vector< XMLNode* > &nodes, std::string &reason ); 99 | virtual void Process( CSipInterface *pInterface ); 100 | 101 | public: 102 | inline int GetSum() const 103 | { 104 | return m_sum; 105 | } 106 | 107 | inline const std::list< SCatalog >& GetDevices() const 108 | { 109 | return m_devices; 110 | } 111 | 112 | inline void SetSum( int sum ) 113 | { 114 | m_sum = sum; 115 | } 116 | 117 | inline void AddCatalog( const SCatalog &catalog ) 118 | { 119 | m_devices.push_back( catalog ); 120 | } 121 | 122 | private: 123 | bool CheckCatalog( const SCatalog &catalog, std::string& reason) const; 124 | 125 | private: 126 | int m_sum; 127 | std::list< SCatalog > m_devices; 128 | }; 129 | ////////////////////////////////////////////////////////////////////////// 130 | #endif // MSG_QUERY_CATALOG_HPP_ 131 | -------------------------------------------------------------------------------- /Message/QueryDeviceInfoMsg.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/escoffier/sipsdk/4d906b32cdc0677be6663249712825eb57d1f870/Message/QueryDeviceInfoMsg.cpp -------------------------------------------------------------------------------- /Message/QueryDeviceInfoMsg.hpp: -------------------------------------------------------------------------------- 1 | #ifndef MSG_QUERY_DEVICEINFO_HPP_ 2 | #define MSG_QUERY_DEVICEINFO_HPP_ 3 | #include "MessageMsg.hpp" 4 | 5 | ////////////////////////////////////////////////////////////////////////// 6 | class CQueryDeviceInfoMsg : public CMessageMsgT< CMessageMsg::MsgCmdQuery > 7 | { 8 | public: 9 | CQueryDeviceInfoMsg() 10 | { 11 | } 12 | 13 | void setMsgProperties(const CQueryDeviceInfoMsg &msg) 14 | { 15 | SetDeviceID(msg.GetDeviceID()); 16 | SetTo(msg.GetTo()); 17 | } 18 | 19 | public: 20 | virtual bool Encode( std::string &message ); 21 | virtual bool Decode( const std::vector< XMLNode* > &nodes, std::string &reason ); 22 | virtual void Process( CSipInterface *pInterface ); 23 | }; 24 | 25 | ////////////////////////////////////////////////////////////////////////// 26 | class CQueryDeviceInfoResponseMsg : public CMessageMsgT< CMessageMsg::MsgCmdResponse > 27 | { 28 | public: 29 | CQueryDeviceInfoResponseMsg() 30 | { 31 | } 32 | 33 | void setMsgProperties(const CQueryDeviceInfoResponseMsg &msg) 34 | { 35 | m_result = msg.GetResult(); 36 | m_manufacturer = msg.GetManufacturer(); 37 | m_model = msg.GetModel(); 38 | m_firmware = msg.GetFirmware(); 39 | m_channel = msg.GetChannel(); 40 | m_devicename = msg.GetDeviceName(); 41 | 42 | SetDeviceID(msg.GetDeviceID()); 43 | } 44 | 45 | public: 46 | virtual bool Encode( std::string &message ); 47 | virtual bool Decode( const std::vector< XMLNode* > &nodes, std::string &reason ); 48 | virtual void Process( CSipInterface *pInterface ); 49 | 50 | public: 51 | inline void SetManufacturer( const std::string &manufacturer ) 52 | { 53 | m_manufacturer = manufacturer; 54 | } 55 | 56 | inline void SetModel( const std::string &model ) 57 | { 58 | m_model = model; 59 | } 60 | 61 | inline void SetFirmware( const std::string &firmware ) 62 | { 63 | m_firmware = firmware; 64 | } 65 | 66 | inline void SetChannel( const std::string &channel ) 67 | { 68 | m_channel = channel; 69 | } 70 | 71 | inline void SetDeviceName( const std::string &name ) 72 | { 73 | m_devicename = name; 74 | } 75 | 76 | inline const std::string& GetManufacturer() const 77 | { 78 | return m_manufacturer; 79 | } 80 | 81 | inline const std::string& GetModel() const 82 | { 83 | return m_model; 84 | } 85 | 86 | inline const std::string& GetFirmware() const 87 | { 88 | return m_firmware; 89 | } 90 | 91 | inline const std::string& GetChannel() const 92 | { 93 | return m_channel; 94 | } 95 | 96 | inline const std::string& GetDeviceName() const 97 | { 98 | return m_devicename; 99 | } 100 | 101 | inline bool IsOK() const 102 | { 103 | return m_result == CGBMessage::RESULT_OK; 104 | } 105 | 106 | inline bool HasError() const 107 | { 108 | return m_result == CGBMessage::RESULT_ERROR; 109 | } 110 | 111 | inline CGBMessage::EGBResultType GetResult() const 112 | { 113 | return m_result; 114 | } 115 | 116 | inline void SetResult( CGBMessage::EGBResultType result ) 117 | { 118 | m_result = result; 119 | } 120 | 121 | inline void SetOK() 122 | { 123 | m_result = CGBMessage::RESULT_OK; 124 | } 125 | 126 | inline void SetError() 127 | { 128 | m_result = CGBMessage::RESULT_ERROR; 129 | } 130 | 131 | private: 132 | EGBResultType m_result; 133 | std::string m_manufacturer; 134 | std::string m_model; 135 | std::string m_firmware; 136 | std::string m_channel; 137 | std::string m_devicename; 138 | }; 139 | 140 | #endif // MSG_QUERY_DEVICEINFO_HPP_ -------------------------------------------------------------------------------- /Message/QueryDeviceStatusMsg.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/escoffier/sipsdk/4d906b32cdc0677be6663249712825eb57d1f870/Message/QueryDeviceStatusMsg.cpp -------------------------------------------------------------------------------- /Message/QueryDeviceStatusMsg.hpp: -------------------------------------------------------------------------------- 1 | #ifndef MSG_QUERY_DEVICESTATUS_HPP_ 2 | #define MSG_QUERY_DEVICESTATUS_HPP_ 3 | #include "MessageMsg.hpp" 4 | 5 | ////////////////////////////////////////////////////////////////////////// 6 | class CQueryDeviceStatusMsg : public CMessageMsgT< CMessageMsg::MsgCmdQuery > 7 | { 8 | public: 9 | CQueryDeviceStatusMsg() 10 | { 11 | } 12 | 13 | void setMsgProperties(const CQueryDeviceStatusMsg &msg) 14 | { 15 | SetDeviceID(msg.GetDeviceID()); 16 | SetSN(msg.GetSN()); 17 | SetTo(msg.GetTo()); 18 | } 19 | 20 | public: 21 | virtual bool Encode( std::string &message ); 22 | virtual bool Decode( const std::vector< XMLNode* > &nodes, std::string &reason ); 23 | virtual void Process( CSipInterface *pInterface ); 24 | }; 25 | 26 | ////////////////////////////////////////////////////////////////////////// 27 | class CQueryDeviceStatusResponseMsg : public CMessageMsgT< CMessageMsg::MsgCmdResponse > 28 | { 29 | public: 30 | struct SAlarmStatus 31 | { 32 | std::string id; 33 | std::string status; 34 | }; 35 | 36 | public: 37 | CQueryDeviceStatusResponseMsg() 38 | { 39 | } 40 | 41 | void setMsgProperties(const CQueryDeviceStatusResponseMsg &msg) 42 | { 43 | m_result = msg.GetResult(); 44 | m_online = msg.GetOnline(); 45 | m_manufacturer = msg.GetManufacturer(); 46 | m_status = msg.GetStatus(); 47 | m_reason = msg.GetReason(); 48 | m_encode = msg.GetEncode(); 49 | m_record = msg.GetRecord(); 50 | m_deivcetime = msg.GetDeviceTime(); 51 | m_items = msg.GetAlarmStatus(); 52 | 53 | SetDeviceID(msg.GetDeviceID()); 54 | } 55 | 56 | public: 57 | inline bool IsOK() const 58 | { 59 | return m_result == CGBMessage::RESULT_OK; 60 | } 61 | 62 | inline bool HasError() const 63 | { 64 | return m_result == CGBMessage::RESULT_ERROR; 65 | } 66 | 67 | inline CGBMessage::EGBResultType GetResult() const 68 | { 69 | return m_result; 70 | } 71 | 72 | inline void SetResult( CGBMessage::EGBResultType result ) 73 | { 74 | m_result = result; 75 | } 76 | 77 | inline void SetOK() 78 | { 79 | m_result = CGBMessage::RESULT_OK; 80 | } 81 | 82 | inline void SetError() 83 | { 84 | m_result = CGBMessage::RESULT_ERROR; 85 | } 86 | 87 | inline void SetOnline( const std::string& online ) 88 | { 89 | m_online = online; 90 | } 91 | 92 | inline void SetManufacturer( const std::string &manufacturer ) 93 | { 94 | m_manufacturer = manufacturer; 95 | } 96 | 97 | inline void SetStatus( const std::string& status ) 98 | { 99 | m_status = status; 100 | } 101 | 102 | inline void SetReason( std::string &reason ) 103 | { 104 | m_reason = reason; 105 | } 106 | 107 | inline void SetEncode( const std::string& encode ) 108 | { 109 | m_encode = encode; 110 | } 111 | 112 | inline void SetRecord( const std::string& record ) 113 | { 114 | m_record = record; 115 | } 116 | 117 | inline void SetDeviceTime( const std::string& time ) 118 | { 119 | m_deivcetime = time; 120 | } 121 | 122 | inline void AddAlarmStatus( const std::string &id, const std::string &status ) 123 | { 124 | SAlarmStatus as; 125 | as.id = id; 126 | as.status = status; 127 | m_items.push_back( as ); 128 | } 129 | 130 | inline const std::string& GetOnline() const 131 | { 132 | return m_online; 133 | } 134 | 135 | inline const std::string& GetManufacturer() const 136 | { 137 | return m_manufacturer; 138 | } 139 | 140 | inline const std::string& GetStatus() const 141 | { 142 | return m_status; 143 | } 144 | 145 | inline const std::string& GetReason() const 146 | { 147 | return m_reason; 148 | } 149 | 150 | inline const std::string& GetEncode() const 151 | { 152 | return m_encode; 153 | } 154 | 155 | inline const std::string& GetRecord() const 156 | { 157 | return m_record; 158 | } 159 | 160 | inline const std::string& GetDeviceTime() const 161 | { 162 | return m_deivcetime; 163 | } 164 | 165 | inline const std::list< SAlarmStatus >& GetAlarmStatus() const 166 | { 167 | return m_items; 168 | } 169 | 170 | public: 171 | virtual bool Encode( std::string &message ); 172 | virtual bool Decode( const std::vector< XMLNode* > &nodes, std::string &reason ); 173 | virtual void Process( CSipInterface *pInterface ); 174 | 175 | private: 176 | EGBResultType m_result; 177 | std::string m_online; 178 | std::string m_manufacturer; 179 | std::string m_status; 180 | std::string m_reason; 181 | std::string m_encode; 182 | std::string m_record; 183 | std::string m_deivcetime; 184 | std::list< SAlarmStatus > m_items; 185 | }; 186 | 187 | #endif // MSG_QUERY_DEVICEINFO_HPP_ -------------------------------------------------------------------------------- /Message/QueryRecordInfoMsg.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/escoffier/sipsdk/4d906b32cdc0677be6663249712825eb57d1f870/Message/QueryRecordInfoMsg.cpp -------------------------------------------------------------------------------- /Message/QueryRecordInfoMsg.hpp: -------------------------------------------------------------------------------- 1 | #ifndef MSG_QUERY_RECORDINFO_HPP_ 2 | #define MSG_QUERY_RECORDINFO_HPP_ 3 | #include "MessageMsg.hpp" 4 | 5 | ////////////////////////////////////////////////////////////////////////// 6 | class CQueryRecordInfoMsg : public CMessageMsgT< CMessageMsg::MsgCmdQuery > 7 | { 8 | public: 9 | CQueryRecordInfoMsg() 10 | { 11 | } 12 | 13 | void setMsgProperties(const CQueryRecordInfoMsg &msg) 14 | { 15 | m_startTime = msg.GetStartTime(); 16 | m_endTime = msg.GetEndTime(); 17 | m_filePath = msg.GetFilePath(); 18 | m_address = msg.GetAddress(); 19 | m_secrecy = msg.GetSecrecy(); 20 | m_type = msg.GetType(); 21 | m_recorder = msg.GetRecorderID(); 22 | m_indistinct = msg.GetIndistinct(); 23 | 24 | SetDeviceID(msg.GetDeviceID()); 25 | SetSN( msg.GetSN() ); 26 | SetTo(msg.GetTo()); 27 | } 28 | 29 | public: 30 | virtual bool Encode( std::string &message ); 31 | virtual bool Decode( const std::vector< XMLNode* > &nodes, std::string &reason ); 32 | virtual void Process( CSipInterface *pInterface ); 33 | 34 | public: 35 | inline const std::string& GetStartTime() const 36 | { 37 | return m_startTime; 38 | } 39 | 40 | inline const std::string& GetEndTime() const 41 | { 42 | return m_endTime; 43 | } 44 | 45 | inline const std::string& GetFilePath() const 46 | { 47 | return m_filePath; 48 | } 49 | 50 | inline const std::string& GetAddress() const 51 | { 52 | return m_address; 53 | } 54 | 55 | inline const std::string& GetSecrecy() const 56 | { 57 | return m_secrecy; 58 | } 59 | 60 | inline const std::string& GetType() const 61 | { 62 | return m_type; 63 | } 64 | 65 | inline const std::string& GetRecorderID() const 66 | { 67 | return m_recorder; 68 | } 69 | 70 | inline const std::string& GetIndistinct() const 71 | { 72 | return m_indistinct; 73 | } 74 | 75 | inline void SetStartTime( const std::string &time ) 76 | { 77 | m_startTime = time; 78 | } 79 | 80 | inline void SetEndTime( const std::string &time ) 81 | { 82 | m_endTime = time; 83 | } 84 | 85 | inline void SetFilePath( const std::string &path ) 86 | { 87 | m_filePath = path; 88 | } 89 | 90 | inline void SetAddress( const std::string &address ) 91 | { 92 | m_address = address; 93 | } 94 | 95 | inline void SetSecrecy( const std::string &secrecy ) 96 | { 97 | m_secrecy = secrecy; 98 | } 99 | 100 | inline void SetType( const std::string &type ) 101 | { 102 | m_type = type; 103 | } 104 | 105 | inline void SetRecorderID( const std::string &id ) 106 | { 107 | m_recorder = id; 108 | } 109 | 110 | inline void SetIndistinct( const std::string &indistinct ) 111 | { 112 | m_indistinct = indistinct; 113 | } 114 | 115 | private: 116 | std::string m_startTime; 117 | std::string m_endTime; 118 | std::string m_filePath; 119 | std::string m_address; 120 | std::string m_secrecy; 121 | std::string m_type; 122 | std::string m_recorder; 123 | std::string m_indistinct; 124 | }; 125 | 126 | ////////////////////////////////////////////////////////////////////////// 127 | class CQueryRecordInfoResponseMsg : public CMessageMsgT< CMessageMsg::MsgCmdResponse > 128 | { 129 | public: 130 | struct SRecordInfo 131 | { 132 | std::string id; 133 | std::string name; 134 | std::string avPath; 135 | std::string address; 136 | std::string beginTime; 137 | std::string endTime; 138 | std::string secrecy; 139 | std::string type; 140 | std::string recorder; 141 | }; 142 | 143 | public: 144 | CQueryRecordInfoResponseMsg() 145 | { 146 | } 147 | 148 | void setMsgProperties(const CQueryRecordInfoResponseMsg &msg) 149 | { 150 | m_sum = msg.m_sum; 151 | m_name = msg.m_name; 152 | m_records = msg.m_records; 153 | SetDeviceID(msg.GetDeviceID()); 154 | } 155 | 156 | public: 157 | virtual bool IsAutoResponse() const { return false; } 158 | virtual bool Encode( std::string &message ); 159 | virtual bool Decode( const std::vector< XMLNode* > &nodes, std::string &reason ); 160 | virtual void Process( CSipInterface *pInterface ); 161 | 162 | public: 163 | inline int GetSum() const 164 | { 165 | return m_sum; 166 | } 167 | 168 | inline void SetSum( int sum ) 169 | { 170 | m_sum = sum; 171 | } 172 | 173 | inline const std::string& GetName() const 174 | { 175 | return m_name; 176 | } 177 | 178 | inline void SetName( const std::string& name ) 179 | { 180 | m_name = name; 181 | } 182 | 183 | inline const std::list< SRecordInfo >& GetRecords() const 184 | { 185 | return m_records; 186 | } 187 | 188 | inline void SetRecords( const std::list< SRecordInfo >& rec ) 189 | { 190 | m_records = rec; 191 | } 192 | 193 | inline void AddRecordInfo( const std::string &id, 194 | const std::string &name, 195 | const std::string &avPath, 196 | const std::string &address, 197 | const std::string &beginTime, 198 | const std::string &endTime, 199 | const std::string &secrecy, 200 | const std::string &type, 201 | const std::string &recorder ) 202 | { 203 | SRecordInfo recordinfo; 204 | recordinfo.id = id; 205 | recordinfo.name = name; 206 | recordinfo.avPath = avPath; 207 | recordinfo.address = address; 208 | recordinfo.beginTime = beginTime; 209 | recordinfo.endTime = endTime; 210 | recordinfo.secrecy = secrecy; 211 | recordinfo.type = type; 212 | recordinfo.recorder = recorder; 213 | m_records.push_back( recordinfo ); 214 | } 215 | 216 | inline void AddRecordInfo( const SRecordInfo &recordinfo ) 217 | { 218 | m_records.push_back( recordinfo ); 219 | } 220 | 221 | private: 222 | int m_sum; 223 | std::string m_name; 224 | std::list< SRecordInfo > m_records; 225 | }; 226 | 227 | #endif // MSG_QUERY_DEVICEINFO_HPP_ -------------------------------------------------------------------------------- /Message/RegisterMsg.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/escoffier/sipsdk/4d906b32cdc0677be6663249712825eb57d1f870/Message/RegisterMsg.cpp -------------------------------------------------------------------------------- /Message/RegisterMsg.hpp: -------------------------------------------------------------------------------- 1 | #ifndef MSG_REGISTER_MSG_HPP_ 2 | #define MSG_REGISTER_MSG_HPP_ 3 | 4 | #include "GBMessage.hpp" 5 | #include "resip/dum/ServerRegistration.hxx" 6 | #include "resip/dum/ClientRegistration.hxx" 7 | 8 | ////////////////////////////////////////////////////////////////////////// 9 | class CRegisterRequestMsg : public CGBMessage 10 | { 11 | public: 12 | CRegisterRequestMsg() 13 | { 14 | } 15 | 16 | public: 17 | virtual bool Send( resip::DialogUsageManager &mDum, bool tcp = false ); 18 | virtual bool Encode( std::string &message ); 19 | virtual bool Decode( const char *body, std::string &reason ); 20 | virtual void Process( CSipInterface *pInterface ); 21 | }; 22 | 23 | ////////////////////////////////////////////////////////////////////////// 24 | class CRegisterMsg : public CGBMessage 25 | { 26 | public: 27 | CRegisterMsg() : m_handle( NULL ) 28 | { 29 | } 30 | 31 | public: 32 | inline resip::ServerRegistration* GetHandle() 33 | { 34 | return m_handle; 35 | } 36 | 37 | inline void SetHandle( resip::ServerRegistration *h ) 38 | { 39 | m_handle = h; 40 | } 41 | 42 | public: 43 | virtual bool Send( resip::DialogUsageManager &mDum, bool tcp = false ); 44 | virtual bool Encode( std::string &message ); 45 | virtual bool Decode( const char *body, std::string &reason ); 46 | virtual void Process( CSipInterface *pInterface ); 47 | 48 | protected: 49 | resip::ServerRegistration* m_handle; 50 | }; 51 | 52 | ////////////////////////////////////////////////////////////////////////// 53 | class CRegisterAddMsg : public CRegisterMsg 54 | { 55 | public: 56 | CRegisterAddMsg() 57 | { 58 | } 59 | 60 | public: 61 | virtual bool Encode( std::string &message ); 62 | virtual bool Decode( const char *body, std::string &reason ); 63 | virtual void Process( CSipInterface *pInterface ); 64 | }; 65 | 66 | ////////////////////////////////////////////////////////////////////////// 67 | class CRegisterRefreshMsg : public CRegisterMsg 68 | { 69 | public: 70 | CRegisterRefreshMsg() 71 | { 72 | } 73 | 74 | public: 75 | virtual bool Encode( std::string &message ); 76 | virtual bool Decode( const char *body, std::string &reason ); 77 | virtual void Process( CSipInterface *pInterface ); 78 | }; 79 | 80 | ////////////////////////////////////////////////////////////////////////// 81 | class CRegisterRemoveMsg : public CRegisterMsg 82 | { 83 | public: 84 | CRegisterRemoveMsg() 85 | { 86 | } 87 | 88 | public: 89 | virtual bool Encode( std::string &message ); 90 | virtual bool Decode( const char *body, std::string &reason ); 91 | virtual void Process( CSipInterface *pInterface ); 92 | 93 | protected: 94 | std::string m_ip; 95 | int m_port; 96 | }; 97 | 98 | ////////////////////////////////////////////////////////////////////////// 99 | class CRegisterRemoveAllMsg : public CRegisterMsg 100 | { 101 | public: 102 | CRegisterRemoveAllMsg() 103 | { 104 | } 105 | 106 | public: 107 | virtual bool Encode( std::string &message ); 108 | virtual bool Decode( const char *body, std::string &reason ); 109 | virtual void Process( CSipInterface *pInterface ); 110 | 111 | protected: 112 | std::string m_ip; 113 | int m_port; 114 | }; 115 | 116 | ////////////////////////////////////////////////////////////////////////// 117 | class CRegisterResponseMsg : public CGBMessage 118 | { 119 | public: 120 | CRegisterResponseMsg() : m_handle( NULL ) 121 | { 122 | } 123 | 124 | public: 125 | inline resip::ClientRegistration* GetHandle() 126 | { 127 | return m_handle; 128 | } 129 | 130 | inline void SetHandle( resip::ClientRegistration *h ) 131 | { 132 | m_handle = h; 133 | } 134 | 135 | inline const std::string& GetParentID() const 136 | { 137 | return m_parentid; 138 | } 139 | 140 | inline void SetParentID( const char *id ) 141 | { 142 | if( id != NULL ) 143 | { 144 | m_parentid = id; 145 | } 146 | } 147 | 148 | inline void SetParentID( const std::string &id ) 149 | { 150 | m_parentid = id; 151 | } 152 | 153 | public: 154 | virtual bool Send( resip::DialogUsageManager &mDum, bool tcp = false ); 155 | virtual bool Encode( std::string &message ); 156 | virtual bool Decode( const char *body, std::string &reason ); 157 | virtual void Process( CSipInterface *pInterface ); 158 | 159 | protected: 160 | resip::ClientRegistration* m_handle; 161 | std::string m_parentid; 162 | }; 163 | 164 | ////////////////////////////////////////////////////////////////////////// 165 | #endif // MSG_NOTIFY_MSG_HPP_ -------------------------------------------------------------------------------- /Message/SubscriptionMsg.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/escoffier/sipsdk/4d906b32cdc0677be6663249712825eb57d1f870/Message/SubscriptionMsg.cpp -------------------------------------------------------------------------------- /Message/SubscriptionMsg.hpp: -------------------------------------------------------------------------------- 1 | #ifndef MSG_SUBSCRIPTION_MSG_HPP_ 2 | #define MSG_SUBSCRIPTION_MSG_HPP_ 3 | 4 | #include 5 | #include "tinyxml2.h" 6 | #include "GBMessage.hpp" 7 | #include "resip/dum/ServerSubscription.hxx" 8 | #include "resip/dum/ClientSubscription.hxx" 9 | 10 | ////////////////////////////////////////////////////////////////////////// 11 | class CSubscribeMsg : public CGBMessage 12 | { 13 | public: 14 | CSubscribeMsg() : m_handle( NULL ) 15 | { 16 | } 17 | 18 | public: 19 | inline resip::BaseSubscription* GetHandle() 20 | { 21 | return m_handle; 22 | } 23 | 24 | inline const resip::BaseSubscription* GetHandle() const 25 | { 26 | return m_handle; 27 | } 28 | 29 | inline void SetHandle( resip::BaseSubscription *h ) 30 | { 31 | m_handle = h; 32 | } 33 | 34 | inline const std::string& GetSN() const 35 | { 36 | return m_sn; 37 | } 38 | 39 | inline const std::string& GetDeviceID() const 40 | { 41 | return m_deviceid; 42 | } 43 | 44 | inline void SetDeviceID( const std::string &deviceid ) 45 | { 46 | m_deviceid = deviceid; 47 | } 48 | 49 | inline void SetSN( const std::string &sn ) 50 | { 51 | m_sn = sn; 52 | } 53 | 54 | public: 55 | virtual bool Send( resip::DialogUsageManager &mDum, bool tcp = false ); 56 | virtual bool Encode( std::string &message ); 57 | virtual bool Decode( const std::vector< XMLNode* > &nodes, std::string &reason ); 58 | virtual void Process( CSipInterface *pInterface ); 59 | 60 | protected: 61 | std::string m_sn; 62 | std::string m_deviceid; 63 | resip::BaseSubscription* m_handle; 64 | }; 65 | 66 | ////////////////////////////////////////////////////////////////////////// 67 | class CAddSubscribeMsg : public CSubscribeMsg 68 | { 69 | public: 70 | CAddSubscribeMsg() 71 | { 72 | } 73 | 74 | void setMsgProperties(const CAddSubscribeMsg &msg) 75 | { 76 | SetDeviceID(msg.GetDeviceID()); 77 | SetSN(msg.GetSN()); 78 | SetTo(msg.GetTo()); 79 | } 80 | 81 | public: 82 | virtual bool Send( resip::DialogUsageManager &mDum, bool tcp = false ); 83 | virtual bool Encode( std::string &message ); 84 | virtual bool Decode( const std::vector< XMLNode* > &nodes, std::string &reason ); 85 | virtual void Process( CSipInterface *pInterface ); 86 | }; 87 | 88 | ////////////////////////////////////////////////////////////////////////// 89 | class CCancelSubscribeMsg : public CSubscribeMsg 90 | { 91 | public: 92 | CCancelSubscribeMsg() 93 | { 94 | } 95 | 96 | public: 97 | virtual bool Send( resip::DialogUsageManager &mDum, bool tcp = false ); 98 | virtual bool Encode( std::string &message ); 99 | virtual bool Decode( const std::vector< XMLNode* > &nodes, std::string &reason ); 100 | virtual void Process( CSipInterface *pInterface ); 101 | }; 102 | 103 | ////////////////////////////////////////////////////////////////////////// 104 | class CSubscribeResponseMsg : public CSubscribeMsg 105 | { 106 | public: 107 | CSubscribeResponseMsg() 108 | { 109 | } 110 | 111 | public: 112 | virtual bool Send( resip::DialogUsageManager &mDum, bool tcp = false ); 113 | virtual bool Encode( std::string &message ); 114 | virtual bool Decode( const std::vector< XMLNode* > &nodes, std::string &reason ); 115 | virtual void Process( CSipInterface *pInterface ); 116 | }; 117 | 118 | ////////////////////////////////////////////////////////////////////////// 119 | #endif // MSG_NOTIFY_MSG_HPP_ -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # sipsdk 2 | a gb28181 sip sdk based on resiprocate 3 | -------------------------------------------------------------------------------- /build/CMakeFiles/3.5.1/CMakeCCompiler.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_C_COMPILER "/usr/bin/x86_64-linux-gnu-gcc-5") 2 | set(CMAKE_C_COMPILER_ARG1 "") 3 | set(CMAKE_C_COMPILER_ID "GNU") 4 | set(CMAKE_C_COMPILER_VERSION "5.4.0") 5 | set(CMAKE_C_COMPILER_WRAPPER "") 6 | set(CMAKE_C_STANDARD_COMPUTED_DEFAULT "11") 7 | set(CMAKE_C_COMPILE_FEATURES "c_function_prototypes;c_restrict;c_variadic_macros;c_static_assert") 8 | set(CMAKE_C90_COMPILE_FEATURES "c_function_prototypes") 9 | set(CMAKE_C99_COMPILE_FEATURES "c_restrict;c_variadic_macros") 10 | set(CMAKE_C11_COMPILE_FEATURES "c_static_assert") 11 | 12 | set(CMAKE_C_PLATFORM_ID "Linux") 13 | set(CMAKE_C_SIMULATE_ID "") 14 | set(CMAKE_C_SIMULATE_VERSION "") 15 | 16 | set(CMAKE_AR "/usr/bin/ar") 17 | set(CMAKE_RANLIB "/usr/bin/ranlib") 18 | set(CMAKE_LINKER "/usr/bin/ld") 19 | set(CMAKE_COMPILER_IS_GNUCC 1) 20 | set(CMAKE_C_COMPILER_LOADED 1) 21 | set(CMAKE_C_COMPILER_WORKS TRUE) 22 | set(CMAKE_C_ABI_COMPILED TRUE) 23 | set(CMAKE_COMPILER_IS_MINGW ) 24 | set(CMAKE_COMPILER_IS_CYGWIN ) 25 | if(CMAKE_COMPILER_IS_CYGWIN) 26 | set(CYGWIN 1) 27 | set(UNIX 1) 28 | endif() 29 | 30 | set(CMAKE_C_COMPILER_ENV_VAR "CC") 31 | 32 | if(CMAKE_COMPILER_IS_MINGW) 33 | set(MINGW 1) 34 | endif() 35 | set(CMAKE_C_COMPILER_ID_RUN 1) 36 | set(CMAKE_C_SOURCE_FILE_EXTENSIONS c;m) 37 | set(CMAKE_C_IGNORE_EXTENSIONS h;H;o;O;obj;OBJ;def;DEF;rc;RC) 38 | set(CMAKE_C_LINKER_PREFERENCE 10) 39 | 40 | # Save compiler ABI information. 41 | set(CMAKE_C_SIZEOF_DATA_PTR "8") 42 | set(CMAKE_C_COMPILER_ABI "ELF") 43 | set(CMAKE_C_LIBRARY_ARCHITECTURE "x86_64-linux-gnu") 44 | 45 | if(CMAKE_C_SIZEOF_DATA_PTR) 46 | set(CMAKE_SIZEOF_VOID_P "${CMAKE_C_SIZEOF_DATA_PTR}") 47 | endif() 48 | 49 | if(CMAKE_C_COMPILER_ABI) 50 | set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_C_COMPILER_ABI}") 51 | endif() 52 | 53 | if(CMAKE_C_LIBRARY_ARCHITECTURE) 54 | set(CMAKE_LIBRARY_ARCHITECTURE "x86_64-linux-gnu") 55 | endif() 56 | 57 | set(CMAKE_C_CL_SHOWINCLUDES_PREFIX "") 58 | if(CMAKE_C_CL_SHOWINCLUDES_PREFIX) 59 | set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_C_CL_SHOWINCLUDES_PREFIX}") 60 | endif() 61 | 62 | 63 | 64 | 65 | set(CMAKE_C_IMPLICIT_LINK_LIBRARIES "c") 66 | set(CMAKE_C_IMPLICIT_LINK_DIRECTORIES "/usr/lib/gcc/x86_64-linux-gnu/5;/usr/lib/x86_64-linux-gnu;/usr/lib;/lib/x86_64-linux-gnu;/lib") 67 | set(CMAKE_C_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "") 68 | -------------------------------------------------------------------------------- /build/CMakeFiles/3.5.1/CMakeCXXCompiler.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_CXX_COMPILER "/usr/bin/x86_64-linux-gnu-g++-5") 2 | set(CMAKE_CXX_COMPILER_ARG1 "") 3 | set(CMAKE_CXX_COMPILER_ID "GNU") 4 | set(CMAKE_CXX_COMPILER_VERSION "5.4.0") 5 | set(CMAKE_CXX_COMPILER_WRAPPER "") 6 | set(CMAKE_CXX_STANDARD_COMPUTED_DEFAULT "98") 7 | set(CMAKE_CXX_COMPILE_FEATURES "cxx_template_template_parameters;cxx_alias_templates;cxx_alignas;cxx_alignof;cxx_attributes;cxx_auto_type;cxx_constexpr;cxx_decltype;cxx_decltype_incomplete_return_types;cxx_default_function_template_args;cxx_defaulted_functions;cxx_defaulted_move_initializers;cxx_delegating_constructors;cxx_deleted_functions;cxx_enum_forward_declarations;cxx_explicit_conversions;cxx_extended_friend_declarations;cxx_extern_templates;cxx_final;cxx_func_identifier;cxx_generalized_initializers;cxx_inheriting_constructors;cxx_inline_namespaces;cxx_lambdas;cxx_local_type_template_args;cxx_long_long_type;cxx_noexcept;cxx_nonstatic_member_init;cxx_nullptr;cxx_override;cxx_range_for;cxx_raw_string_literals;cxx_reference_qualified_functions;cxx_right_angle_brackets;cxx_rvalue_references;cxx_sizeof_member;cxx_static_assert;cxx_strong_enums;cxx_thread_local;cxx_trailing_return_types;cxx_unicode_literals;cxx_uniform_initialization;cxx_unrestricted_unions;cxx_user_literals;cxx_variadic_macros;cxx_variadic_templates;cxx_aggregate_default_initializers;cxx_attribute_deprecated;cxx_binary_literals;cxx_contextual_conversions;cxx_decltype_auto;cxx_digit_separators;cxx_generic_lambdas;cxx_lambda_init_captures;cxx_relaxed_constexpr;cxx_return_type_deduction;cxx_variable_templates") 8 | set(CMAKE_CXX98_COMPILE_FEATURES "cxx_template_template_parameters") 9 | set(CMAKE_CXX11_COMPILE_FEATURES "cxx_alias_templates;cxx_alignas;cxx_alignof;cxx_attributes;cxx_auto_type;cxx_constexpr;cxx_decltype;cxx_decltype_incomplete_return_types;cxx_default_function_template_args;cxx_defaulted_functions;cxx_defaulted_move_initializers;cxx_delegating_constructors;cxx_deleted_functions;cxx_enum_forward_declarations;cxx_explicit_conversions;cxx_extended_friend_declarations;cxx_extern_templates;cxx_final;cxx_func_identifier;cxx_generalized_initializers;cxx_inheriting_constructors;cxx_inline_namespaces;cxx_lambdas;cxx_local_type_template_args;cxx_long_long_type;cxx_noexcept;cxx_nonstatic_member_init;cxx_nullptr;cxx_override;cxx_range_for;cxx_raw_string_literals;cxx_reference_qualified_functions;cxx_right_angle_brackets;cxx_rvalue_references;cxx_sizeof_member;cxx_static_assert;cxx_strong_enums;cxx_thread_local;cxx_trailing_return_types;cxx_unicode_literals;cxx_uniform_initialization;cxx_unrestricted_unions;cxx_user_literals;cxx_variadic_macros;cxx_variadic_templates") 10 | set(CMAKE_CXX14_COMPILE_FEATURES "cxx_aggregate_default_initializers;cxx_attribute_deprecated;cxx_binary_literals;cxx_contextual_conversions;cxx_decltype_auto;cxx_digit_separators;cxx_generic_lambdas;cxx_lambda_init_captures;cxx_relaxed_constexpr;cxx_return_type_deduction;cxx_variable_templates") 11 | 12 | set(CMAKE_CXX_PLATFORM_ID "Linux") 13 | set(CMAKE_CXX_SIMULATE_ID "") 14 | set(CMAKE_CXX_SIMULATE_VERSION "") 15 | 16 | set(CMAKE_AR "/usr/bin/ar") 17 | set(CMAKE_RANLIB "/usr/bin/ranlib") 18 | set(CMAKE_LINKER "/usr/bin/ld") 19 | set(CMAKE_COMPILER_IS_GNUCXX 1) 20 | set(CMAKE_CXX_COMPILER_LOADED 1) 21 | set(CMAKE_CXX_COMPILER_WORKS TRUE) 22 | set(CMAKE_CXX_ABI_COMPILED TRUE) 23 | set(CMAKE_COMPILER_IS_MINGW ) 24 | set(CMAKE_COMPILER_IS_CYGWIN ) 25 | if(CMAKE_COMPILER_IS_CYGWIN) 26 | set(CYGWIN 1) 27 | set(UNIX 1) 28 | endif() 29 | 30 | set(CMAKE_CXX_COMPILER_ENV_VAR "CXX") 31 | 32 | if(CMAKE_COMPILER_IS_MINGW) 33 | set(MINGW 1) 34 | endif() 35 | set(CMAKE_CXX_COMPILER_ID_RUN 1) 36 | set(CMAKE_CXX_IGNORE_EXTENSIONS inl;h;hpp;HPP;H;o;O;obj;OBJ;def;DEF;rc;RC) 37 | set(CMAKE_CXX_SOURCE_FILE_EXTENSIONS C;M;c++;cc;cpp;cxx;mm;CPP) 38 | set(CMAKE_CXX_LINKER_PREFERENCE 30) 39 | set(CMAKE_CXX_LINKER_PREFERENCE_PROPAGATES 1) 40 | 41 | # Save compiler ABI information. 42 | set(CMAKE_CXX_SIZEOF_DATA_PTR "8") 43 | set(CMAKE_CXX_COMPILER_ABI "ELF") 44 | set(CMAKE_CXX_LIBRARY_ARCHITECTURE "x86_64-linux-gnu") 45 | 46 | if(CMAKE_CXX_SIZEOF_DATA_PTR) 47 | set(CMAKE_SIZEOF_VOID_P "${CMAKE_CXX_SIZEOF_DATA_PTR}") 48 | endif() 49 | 50 | if(CMAKE_CXX_COMPILER_ABI) 51 | set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_CXX_COMPILER_ABI}") 52 | endif() 53 | 54 | if(CMAKE_CXX_LIBRARY_ARCHITECTURE) 55 | set(CMAKE_LIBRARY_ARCHITECTURE "x86_64-linux-gnu") 56 | endif() 57 | 58 | set(CMAKE_CXX_CL_SHOWINCLUDES_PREFIX "") 59 | if(CMAKE_CXX_CL_SHOWINCLUDES_PREFIX) 60 | set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_CXX_CL_SHOWINCLUDES_PREFIX}") 61 | endif() 62 | 63 | 64 | 65 | 66 | set(CMAKE_CXX_IMPLICIT_LINK_LIBRARIES "stdc++;m;c") 67 | set(CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES "/usr/lib/gcc/x86_64-linux-gnu/5;/usr/lib/x86_64-linux-gnu;/usr/lib;/lib/x86_64-linux-gnu;/lib") 68 | set(CMAKE_CXX_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "") 69 | -------------------------------------------------------------------------------- /build/CMakeFiles/3.5.1/CMakeDetermineCompilerABI_C.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/escoffier/sipsdk/4d906b32cdc0677be6663249712825eb57d1f870/build/CMakeFiles/3.5.1/CMakeDetermineCompilerABI_C.bin -------------------------------------------------------------------------------- /build/CMakeFiles/3.5.1/CMakeDetermineCompilerABI_CXX.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/escoffier/sipsdk/4d906b32cdc0677be6663249712825eb57d1f870/build/CMakeFiles/3.5.1/CMakeDetermineCompilerABI_CXX.bin -------------------------------------------------------------------------------- /build/CMakeFiles/3.5.1/CMakeSystem.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_HOST_SYSTEM "Linux-4.15.0-30-generic") 2 | set(CMAKE_HOST_SYSTEM_NAME "Linux") 3 | set(CMAKE_HOST_SYSTEM_VERSION "4.15.0-30-generic") 4 | set(CMAKE_HOST_SYSTEM_PROCESSOR "x86_64") 5 | 6 | 7 | 8 | set(CMAKE_SYSTEM "Linux-4.15.0-30-generic") 9 | set(CMAKE_SYSTEM_NAME "Linux") 10 | set(CMAKE_SYSTEM_VERSION "4.15.0-30-generic") 11 | set(CMAKE_SYSTEM_PROCESSOR "x86_64") 12 | 13 | set(CMAKE_CROSSCOMPILING "FALSE") 14 | 15 | set(CMAKE_SYSTEM_LOADED 1) 16 | -------------------------------------------------------------------------------- /build/CMakeFiles/CMakeDirectoryInformation.cmake: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.5 3 | 4 | # Relative path conversion top directories. 5 | set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/home/robbie/workspace/media/npsipsdk") 6 | set(CMAKE_RELATIVE_PATH_TOP_BINARY "/home/robbie/workspace/media/npsipsdk/build") 7 | 8 | # Force unix paths in dependencies. 9 | set(CMAKE_FORCE_UNIX_PATHS 1) 10 | 11 | 12 | # The C and CXX include file regular expressions for this directory. 13 | set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$") 14 | set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$") 15 | set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN}) 16 | set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN}) 17 | -------------------------------------------------------------------------------- /build/CMakeFiles/Makefile.cmake: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.5 3 | 4 | # The generator used is: 5 | set(CMAKE_DEPENDS_GENERATOR "Unix Makefiles") 6 | 7 | # The top level Makefile was generated from the following files: 8 | set(CMAKE_MAKEFILE_DEPENDS 9 | "CMakeCache.txt" 10 | "../CMakeLists.txt" 11 | "CMakeFiles/3.5.1/CMakeCCompiler.cmake" 12 | "CMakeFiles/3.5.1/CMakeCXXCompiler.cmake" 13 | "CMakeFiles/3.5.1/CMakeSystem.cmake" 14 | "/usr/share/cmake-3.5/Modules/CMakeCInformation.cmake" 15 | "/usr/share/cmake-3.5/Modules/CMakeCXXInformation.cmake" 16 | "/usr/share/cmake-3.5/Modules/CMakeCommonLanguageInclude.cmake" 17 | "/usr/share/cmake-3.5/Modules/CMakeGenericSystem.cmake" 18 | "/usr/share/cmake-3.5/Modules/CMakeLanguageInformation.cmake" 19 | "/usr/share/cmake-3.5/Modules/CMakeSystemSpecificInformation.cmake" 20 | "/usr/share/cmake-3.5/Modules/CMakeSystemSpecificInitialize.cmake" 21 | "/usr/share/cmake-3.5/Modules/Compiler/GNU-C.cmake" 22 | "/usr/share/cmake-3.5/Modules/Compiler/GNU-CXX.cmake" 23 | "/usr/share/cmake-3.5/Modules/Compiler/GNU.cmake" 24 | "/usr/share/cmake-3.5/Modules/Platform/Linux-GNU-C.cmake" 25 | "/usr/share/cmake-3.5/Modules/Platform/Linux-GNU-CXX.cmake" 26 | "/usr/share/cmake-3.5/Modules/Platform/Linux-GNU.cmake" 27 | "/usr/share/cmake-3.5/Modules/Platform/Linux.cmake" 28 | "/usr/share/cmake-3.5/Modules/Platform/UnixPaths.cmake" 29 | ) 30 | 31 | # The corresponding makefile is: 32 | set(CMAKE_MAKEFILE_OUTPUTS 33 | "Makefile" 34 | "CMakeFiles/cmake.check_cache" 35 | ) 36 | 37 | # Byproducts of CMake generate step: 38 | set(CMAKE_MAKEFILE_PRODUCTS 39 | "CMakeFiles/CMakeDirectoryInformation.cmake" 40 | ) 41 | 42 | # Dependency information for all targets: 43 | set(CMAKE_DEPEND_INFO_FILES 44 | "CMakeFiles/npsipsdk.dir/DependInfo.cmake" 45 | ) 46 | -------------------------------------------------------------------------------- /build/CMakeFiles/Makefile2: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.5 3 | 4 | # Default target executed when no arguments are given to make. 5 | default_target: all 6 | 7 | .PHONY : default_target 8 | 9 | # The main recursive all target 10 | all: 11 | 12 | .PHONY : all 13 | 14 | # The main recursive preinstall target 15 | preinstall: 16 | 17 | .PHONY : preinstall 18 | 19 | #============================================================================= 20 | # Special targets provided by cmake. 21 | 22 | # Disable implicit rules so canonical targets will work. 23 | .SUFFIXES: 24 | 25 | 26 | # Remove some rules from gmake that .SUFFIXES does not remove. 27 | SUFFIXES = 28 | 29 | .SUFFIXES: .hpux_make_needs_suffix_list 30 | 31 | 32 | # Suppress display of executed commands. 33 | $(VERBOSE).SILENT: 34 | 35 | 36 | # A target that is always out of date. 37 | cmake_force: 38 | 39 | .PHONY : cmake_force 40 | 41 | #============================================================================= 42 | # Set environment variables for the build. 43 | 44 | # The shell in which to execute make rules. 45 | SHELL = /bin/sh 46 | 47 | # The CMake executable. 48 | CMAKE_COMMAND = /usr/bin/cmake 49 | 50 | # The command to remove a file. 51 | RM = /usr/bin/cmake -E remove -f 52 | 53 | # Escaping for special characters. 54 | EQUALS = = 55 | 56 | # The top-level source directory on which CMake was run. 57 | CMAKE_SOURCE_DIR = /home/robbie/workspace/media/npsipsdk 58 | 59 | # The top-level build directory on which CMake was run. 60 | CMAKE_BINARY_DIR = /home/robbie/workspace/media/npsipsdk/build 61 | 62 | #============================================================================= 63 | # Target rules for target CMakeFiles/npsipsdk.dir 64 | 65 | # All Build rule for target. 66 | CMakeFiles/npsipsdk.dir/all: 67 | $(MAKE) -f CMakeFiles/npsipsdk.dir/build.make CMakeFiles/npsipsdk.dir/depend 68 | $(MAKE) -f CMakeFiles/npsipsdk.dir/build.make CMakeFiles/npsipsdk.dir/build 69 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --progress-dir=/home/robbie/workspace/media/npsipsdk/build/CMakeFiles --progress-num=1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35 "Built target npsipsdk" 70 | .PHONY : CMakeFiles/npsipsdk.dir/all 71 | 72 | # Include target in all. 73 | all: CMakeFiles/npsipsdk.dir/all 74 | 75 | .PHONY : all 76 | 77 | # Build rule for subdir invocation for target. 78 | CMakeFiles/npsipsdk.dir/rule: cmake_check_build_system 79 | $(CMAKE_COMMAND) -E cmake_progress_start /home/robbie/workspace/media/npsipsdk/build/CMakeFiles 35 80 | $(MAKE) -f CMakeFiles/Makefile2 CMakeFiles/npsipsdk.dir/all 81 | $(CMAKE_COMMAND) -E cmake_progress_start /home/robbie/workspace/media/npsipsdk/build/CMakeFiles 0 82 | .PHONY : CMakeFiles/npsipsdk.dir/rule 83 | 84 | # Convenience name for target. 85 | npsipsdk: CMakeFiles/npsipsdk.dir/rule 86 | 87 | .PHONY : npsipsdk 88 | 89 | # clean rule for target. 90 | CMakeFiles/npsipsdk.dir/clean: 91 | $(MAKE) -f CMakeFiles/npsipsdk.dir/build.make CMakeFiles/npsipsdk.dir/clean 92 | .PHONY : CMakeFiles/npsipsdk.dir/clean 93 | 94 | # clean rule for target. 95 | clean: CMakeFiles/npsipsdk.dir/clean 96 | 97 | .PHONY : clean 98 | 99 | #============================================================================= 100 | # Special targets to cleanup operation of make. 101 | 102 | # Special rule to run CMake to check the build system integrity. 103 | # No rule that depends on this can have commands that come from listfiles 104 | # because they might be regenerated. 105 | cmake_check_build_system: 106 | $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 107 | .PHONY : cmake_check_build_system 108 | 109 | -------------------------------------------------------------------------------- /build/CMakeFiles/TargetDirectories.txt: -------------------------------------------------------------------------------- 1 | /home/robbie/workspace/media/npsipsdk/build/CMakeFiles/edit_cache.dir 2 | /home/robbie/workspace/media/npsipsdk/build/CMakeFiles/rebuild_cache.dir 3 | /home/robbie/workspace/media/npsipsdk/build/CMakeFiles/npsipsdk.dir 4 | -------------------------------------------------------------------------------- /build/CMakeFiles/cmake.check_cache: -------------------------------------------------------------------------------- 1 | # This file is generated by cmake for dependency checking of the CMakeCache.txt file 2 | -------------------------------------------------------------------------------- /build/CMakeFiles/feature_tests.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/escoffier/sipsdk/4d906b32cdc0677be6663249712825eb57d1f870/build/CMakeFiles/feature_tests.bin -------------------------------------------------------------------------------- /build/CMakeFiles/feature_tests.c: -------------------------------------------------------------------------------- 1 | 2 | const char features[] = {"\n" 3 | "C_FEATURE:" 4 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 5 | "1" 6 | #else 7 | "0" 8 | #endif 9 | "c_function_prototypes\n" 10 | "C_FEATURE:" 11 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L 12 | "1" 13 | #else 14 | "0" 15 | #endif 16 | "c_restrict\n" 17 | "C_FEATURE:" 18 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201000L 19 | "1" 20 | #else 21 | "0" 22 | #endif 23 | "c_static_assert\n" 24 | "C_FEATURE:" 25 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L 26 | "1" 27 | #else 28 | "0" 29 | #endif 30 | "c_variadic_macros\n" 31 | 32 | }; 33 | 34 | int main(int argc, char** argv) { (void)argv; return features[argc]; } 35 | -------------------------------------------------------------------------------- /build/CMakeFiles/feature_tests.cxx: -------------------------------------------------------------------------------- 1 | 2 | const char features[] = {"\n" 3 | "CXX_FEATURE:" 4 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 500 && __cplusplus >= 201402L 5 | "1" 6 | #else 7 | "0" 8 | #endif 9 | "cxx_aggregate_default_initializers\n" 10 | "CXX_FEATURE:" 11 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L 12 | "1" 13 | #else 14 | "0" 15 | #endif 16 | "cxx_alias_templates\n" 17 | "CXX_FEATURE:" 18 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 408 && __cplusplus >= 201103L 19 | "1" 20 | #else 21 | "0" 22 | #endif 23 | "cxx_alignas\n" 24 | "CXX_FEATURE:" 25 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 408 && __cplusplus >= 201103L 26 | "1" 27 | #else 28 | "0" 29 | #endif 30 | "cxx_alignof\n" 31 | "CXX_FEATURE:" 32 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 408 && __cplusplus >= 201103L 33 | "1" 34 | #else 35 | "0" 36 | #endif 37 | "cxx_attributes\n" 38 | "CXX_FEATURE:" 39 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L 40 | "1" 41 | #else 42 | "0" 43 | #endif 44 | "cxx_attribute_deprecated\n" 45 | "CXX_FEATURE:" 46 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 47 | "1" 48 | #else 49 | "0" 50 | #endif 51 | "cxx_auto_type\n" 52 | "CXX_FEATURE:" 53 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L 54 | "1" 55 | #else 56 | "0" 57 | #endif 58 | "cxx_binary_literals\n" 59 | "CXX_FEATURE:" 60 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 61 | "1" 62 | #else 63 | "0" 64 | #endif 65 | "cxx_constexpr\n" 66 | "CXX_FEATURE:" 67 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L 68 | "1" 69 | #else 70 | "0" 71 | #endif 72 | "cxx_contextual_conversions\n" 73 | "CXX_FEATURE:" 74 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 75 | "1" 76 | #else 77 | "0" 78 | #endif 79 | "cxx_decltype\n" 80 | "CXX_FEATURE:" 81 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L 82 | "1" 83 | #else 84 | "0" 85 | #endif 86 | "cxx_decltype_auto\n" 87 | "CXX_FEATURE:" 88 | #if ((__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) >= 40801) && __cplusplus >= 201103L 89 | "1" 90 | #else 91 | "0" 92 | #endif 93 | "cxx_decltype_incomplete_return_types\n" 94 | "CXX_FEATURE:" 95 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 96 | "1" 97 | #else 98 | "0" 99 | #endif 100 | "cxx_default_function_template_args\n" 101 | "CXX_FEATURE:" 102 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 103 | "1" 104 | #else 105 | "0" 106 | #endif 107 | "cxx_defaulted_functions\n" 108 | "CXX_FEATURE:" 109 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 110 | "1" 111 | #else 112 | "0" 113 | #endif 114 | "cxx_defaulted_move_initializers\n" 115 | "CXX_FEATURE:" 116 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L 117 | "1" 118 | #else 119 | "0" 120 | #endif 121 | "cxx_delegating_constructors\n" 122 | "CXX_FEATURE:" 123 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 124 | "1" 125 | #else 126 | "0" 127 | #endif 128 | "cxx_deleted_functions\n" 129 | "CXX_FEATURE:" 130 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L 131 | "1" 132 | #else 133 | "0" 134 | #endif 135 | "cxx_digit_separators\n" 136 | "CXX_FEATURE:" 137 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 138 | "1" 139 | #else 140 | "0" 141 | #endif 142 | "cxx_enum_forward_declarations\n" 143 | "CXX_FEATURE:" 144 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 405 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 145 | "1" 146 | #else 147 | "0" 148 | #endif 149 | "cxx_explicit_conversions\n" 150 | "CXX_FEATURE:" 151 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L 152 | "1" 153 | #else 154 | "0" 155 | #endif 156 | "cxx_extended_friend_declarations\n" 157 | "CXX_FEATURE:" 158 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 159 | "1" 160 | #else 161 | "0" 162 | #endif 163 | "cxx_extern_templates\n" 164 | "CXX_FEATURE:" 165 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L 166 | "1" 167 | #else 168 | "0" 169 | #endif 170 | "cxx_final\n" 171 | "CXX_FEATURE:" 172 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 173 | "1" 174 | #else 175 | "0" 176 | #endif 177 | "cxx_func_identifier\n" 178 | "CXX_FEATURE:" 179 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 180 | "1" 181 | #else 182 | "0" 183 | #endif 184 | "cxx_generalized_initializers\n" 185 | "CXX_FEATURE:" 186 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L 187 | "1" 188 | #else 189 | "0" 190 | #endif 191 | "cxx_generic_lambdas\n" 192 | "CXX_FEATURE:" 193 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 408 && __cplusplus >= 201103L 194 | "1" 195 | #else 196 | "0" 197 | #endif 198 | "cxx_inheriting_constructors\n" 199 | "CXX_FEATURE:" 200 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 201 | "1" 202 | #else 203 | "0" 204 | #endif 205 | "cxx_inline_namespaces\n" 206 | "CXX_FEATURE:" 207 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 405 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 208 | "1" 209 | #else 210 | "0" 211 | #endif 212 | "cxx_lambdas\n" 213 | "CXX_FEATURE:" 214 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L 215 | "1" 216 | #else 217 | "0" 218 | #endif 219 | "cxx_lambda_init_captures\n" 220 | "CXX_FEATURE:" 221 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 405 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 222 | "1" 223 | #else 224 | "0" 225 | #endif 226 | "cxx_local_type_template_args\n" 227 | "CXX_FEATURE:" 228 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 229 | "1" 230 | #else 231 | "0" 232 | #endif 233 | "cxx_long_long_type\n" 234 | "CXX_FEATURE:" 235 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 236 | "1" 237 | #else 238 | "0" 239 | #endif 240 | "cxx_noexcept\n" 241 | "CXX_FEATURE:" 242 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L 243 | "1" 244 | #else 245 | "0" 246 | #endif 247 | "cxx_nonstatic_member_init\n" 248 | "CXX_FEATURE:" 249 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 250 | "1" 251 | #else 252 | "0" 253 | #endif 254 | "cxx_nullptr\n" 255 | "CXX_FEATURE:" 256 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L 257 | "1" 258 | #else 259 | "0" 260 | #endif 261 | "cxx_override\n" 262 | "CXX_FEATURE:" 263 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 264 | "1" 265 | #else 266 | "0" 267 | #endif 268 | "cxx_range_for\n" 269 | "CXX_FEATURE:" 270 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 405 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 271 | "1" 272 | #else 273 | "0" 274 | #endif 275 | "cxx_raw_string_literals\n" 276 | "CXX_FEATURE:" 277 | #if ((__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) >= 40801) && __cplusplus >= 201103L 278 | "1" 279 | #else 280 | "0" 281 | #endif 282 | "cxx_reference_qualified_functions\n" 283 | "CXX_FEATURE:" 284 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 500 && __cplusplus >= 201402L 285 | "1" 286 | #else 287 | "0" 288 | #endif 289 | "cxx_relaxed_constexpr\n" 290 | "CXX_FEATURE:" 291 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L 292 | "1" 293 | #else 294 | "0" 295 | #endif 296 | "cxx_return_type_deduction\n" 297 | "CXX_FEATURE:" 298 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 299 | "1" 300 | #else 301 | "0" 302 | #endif 303 | "cxx_right_angle_brackets\n" 304 | "CXX_FEATURE:" 305 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 306 | "1" 307 | #else 308 | "0" 309 | #endif 310 | "cxx_rvalue_references\n" 311 | "CXX_FEATURE:" 312 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 313 | "1" 314 | #else 315 | "0" 316 | #endif 317 | "cxx_sizeof_member\n" 318 | "CXX_FEATURE:" 319 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 320 | "1" 321 | #else 322 | "0" 323 | #endif 324 | "cxx_static_assert\n" 325 | "CXX_FEATURE:" 326 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 327 | "1" 328 | #else 329 | "0" 330 | #endif 331 | "cxx_strong_enums\n" 332 | "CXX_FEATURE:" 333 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && __cplusplus 334 | "1" 335 | #else 336 | "0" 337 | #endif 338 | "cxx_template_template_parameters\n" 339 | "CXX_FEATURE:" 340 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 408 && __cplusplus >= 201103L 341 | "1" 342 | #else 343 | "0" 344 | #endif 345 | "cxx_thread_local\n" 346 | "CXX_FEATURE:" 347 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 348 | "1" 349 | #else 350 | "0" 351 | #endif 352 | "cxx_trailing_return_types\n" 353 | "CXX_FEATURE:" 354 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 355 | "1" 356 | #else 357 | "0" 358 | #endif 359 | "cxx_unicode_literals\n" 360 | "CXX_FEATURE:" 361 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 362 | "1" 363 | #else 364 | "0" 365 | #endif 366 | "cxx_uniform_initialization\n" 367 | "CXX_FEATURE:" 368 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 369 | "1" 370 | #else 371 | "0" 372 | #endif 373 | "cxx_unrestricted_unions\n" 374 | "CXX_FEATURE:" 375 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L 376 | "1" 377 | #else 378 | "0" 379 | #endif 380 | "cxx_user_literals\n" 381 | "CXX_FEATURE:" 382 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 500 && __cplusplus >= 201402L 383 | "1" 384 | #else 385 | "0" 386 | #endif 387 | "cxx_variable_templates\n" 388 | "CXX_FEATURE:" 389 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 390 | "1" 391 | #else 392 | "0" 393 | #endif 394 | "cxx_variadic_macros\n" 395 | "CXX_FEATURE:" 396 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 397 | "1" 398 | #else 399 | "0" 400 | #endif 401 | "cxx_variadic_templates\n" 402 | 403 | }; 404 | 405 | int main(int argc, char** argv) { (void)argv; return features[argc]; } 406 | -------------------------------------------------------------------------------- /build/CMakeFiles/npsipsdk.dir/DependInfo.cmake: -------------------------------------------------------------------------------- 1 | # The set of languages for which implicit dependencies are needed: 2 | set(CMAKE_DEPENDS_LANGUAGES 3 | "CXX" 4 | ) 5 | # The set of files for implicit dependencies of each language: 6 | set(CMAKE_DEPENDS_CHECK_CXX 7 | "/home/robbie/workspace/media/npsipsdk/Message/AlarmNotifyMsg.cpp" "/home/robbie/workspace/media/npsipsdk/build/CMakeFiles/npsipsdk.dir/Message/AlarmNotifyMsg.cpp.o" 8 | "/home/robbie/workspace/media/npsipsdk/Message/BroadcastMsg.cpp" "/home/robbie/workspace/media/npsipsdk/build/CMakeFiles/npsipsdk.dir/Message/BroadcastMsg.cpp.o" 9 | "/home/robbie/workspace/media/npsipsdk/Message/CallInfoMsg.cpp" "/home/robbie/workspace/media/npsipsdk/build/CMakeFiles/npsipsdk.dir/Message/CallInfoMsg.cpp.o" 10 | "/home/robbie/workspace/media/npsipsdk/Message/CallMessageMsg.cpp" "/home/robbie/workspace/media/npsipsdk/build/CMakeFiles/npsipsdk.dir/Message/CallMessageMsg.cpp.o" 11 | "/home/robbie/workspace/media/npsipsdk/Message/CatalogNotifyMsg.cpp" "/home/robbie/workspace/media/npsipsdk/build/CMakeFiles/npsipsdk.dir/Message/CatalogNotifyMsg.cpp.o" 12 | "/home/robbie/workspace/media/npsipsdk/Message/ConfigDownloadMsg.cpp" "/home/robbie/workspace/media/npsipsdk/build/CMakeFiles/npsipsdk.dir/Message/ConfigDownloadMsg.cpp.o" 13 | "/home/robbie/workspace/media/npsipsdk/Message/DeviceConfigMsg.cpp" "/home/robbie/workspace/media/npsipsdk/build/CMakeFiles/npsipsdk.dir/Message/DeviceConfigMsg.cpp.o" 14 | "/home/robbie/workspace/media/npsipsdk/Message/DeviceControlMsg.cpp" "/home/robbie/workspace/media/npsipsdk/build/CMakeFiles/npsipsdk.dir/Message/DeviceControlMsg.cpp.o" 15 | "/home/robbie/workspace/media/npsipsdk/Message/DeviceStatusNotifyMsg.cpp" "/home/robbie/workspace/media/npsipsdk/build/CMakeFiles/npsipsdk.dir/Message/DeviceStatusNotifyMsg.cpp.o" 16 | "/home/robbie/workspace/media/npsipsdk/Message/GBMessage.cpp" "/home/robbie/workspace/media/npsipsdk/build/CMakeFiles/npsipsdk.dir/Message/GBMessage.cpp.o" 17 | "/home/robbie/workspace/media/npsipsdk/Message/GetTempAccountMsg.cpp" "/home/robbie/workspace/media/npsipsdk/build/CMakeFiles/npsipsdk.dir/Message/GetTempAccountMsg.cpp.o" 18 | "/home/robbie/workspace/media/npsipsdk/Message/InviteMsg.cpp" "/home/robbie/workspace/media/npsipsdk/build/CMakeFiles/npsipsdk.dir/Message/InviteMsg.cpp.o" 19 | "/home/robbie/workspace/media/npsipsdk/Message/KeepaliveMsg.cpp" "/home/robbie/workspace/media/npsipsdk/build/CMakeFiles/npsipsdk.dir/Message/KeepaliveMsg.cpp.o" 20 | "/home/robbie/workspace/media/npsipsdk/Message/Message.cpp" "/home/robbie/workspace/media/npsipsdk/build/CMakeFiles/npsipsdk.dir/Message/Message.cpp.o" 21 | "/home/robbie/workspace/media/npsipsdk/Message/MessageMsg.cpp" "/home/robbie/workspace/media/npsipsdk/build/CMakeFiles/npsipsdk.dir/Message/MessageMsg.cpp.o" 22 | "/home/robbie/workspace/media/npsipsdk/Message/MsgFactory.cpp" "/home/robbie/workspace/media/npsipsdk/build/CMakeFiles/npsipsdk.dir/Message/MsgFactory.cpp.o" 23 | "/home/robbie/workspace/media/npsipsdk/Message/NpClientMsg.cpp" "/home/robbie/workspace/media/npsipsdk/build/CMakeFiles/npsipsdk.dir/Message/NpClientMsg.cpp.o" 24 | "/home/robbie/workspace/media/npsipsdk/Message/NpGatewayMsg.cpp" "/home/robbie/workspace/media/npsipsdk/build/CMakeFiles/npsipsdk.dir/Message/NpGatewayMsg.cpp.o" 25 | "/home/robbie/workspace/media/npsipsdk/Message/QueryAlarmMsg.cpp" "/home/robbie/workspace/media/npsipsdk/build/CMakeFiles/npsipsdk.dir/Message/QueryAlarmMsg.cpp.o" 26 | "/home/robbie/workspace/media/npsipsdk/Message/QueryCatalogMsg.cpp" "/home/robbie/workspace/media/npsipsdk/build/CMakeFiles/npsipsdk.dir/Message/QueryCatalogMsg.cpp.o" 27 | "/home/robbie/workspace/media/npsipsdk/Message/QueryDeviceInfoMsg.cpp" "/home/robbie/workspace/media/npsipsdk/build/CMakeFiles/npsipsdk.dir/Message/QueryDeviceInfoMsg.cpp.o" 28 | "/home/robbie/workspace/media/npsipsdk/Message/QueryDeviceStatusMsg.cpp" "/home/robbie/workspace/media/npsipsdk/build/CMakeFiles/npsipsdk.dir/Message/QueryDeviceStatusMsg.cpp.o" 29 | "/home/robbie/workspace/media/npsipsdk/Message/QueryRecordInfoMsg.cpp" "/home/robbie/workspace/media/npsipsdk/build/CMakeFiles/npsipsdk.dir/Message/QueryRecordInfoMsg.cpp.o" 30 | "/home/robbie/workspace/media/npsipsdk/Message/RegisterMsg.cpp" "/home/robbie/workspace/media/npsipsdk/build/CMakeFiles/npsipsdk.dir/Message/RegisterMsg.cpp.o" 31 | "/home/robbie/workspace/media/npsipsdk/Message/SubscriptionMsg.cpp" "/home/robbie/workspace/media/npsipsdk/build/CMakeFiles/npsipsdk.dir/Message/SubscriptionMsg.cpp.o" 32 | "/home/robbie/workspace/media/npsipsdk/source/Log.cpp" "/home/robbie/workspace/media/npsipsdk/build/CMakeFiles/npsipsdk.dir/source/Log.cpp.o" 33 | "/home/robbie/workspace/media/npsipsdk/source/NPReproAuthManager.cpp" "/home/robbie/workspace/media/npsipsdk/build/CMakeFiles/npsipsdk.dir/source/NPReproAuthManager.cpp.o" 34 | "/home/robbie/workspace/media/npsipsdk/source/OutboundProxyContainer.cpp" "/home/robbie/workspace/media/npsipsdk/build/CMakeFiles/npsipsdk.dir/source/OutboundProxyContainer.cpp.o" 35 | "/home/robbie/workspace/media/npsipsdk/source/RegisterHandler.cpp" "/home/robbie/workspace/media/npsipsdk/build/CMakeFiles/npsipsdk.dir/source/RegisterHandler.cpp.o" 36 | "/home/robbie/workspace/media/npsipsdk/source/SipClient.cpp" "/home/robbie/workspace/media/npsipsdk/build/CMakeFiles/npsipsdk.dir/source/SipClient.cpp.o" 37 | "/home/robbie/workspace/media/npsipsdk/source/SipGatewary.cpp" "/home/robbie/workspace/media/npsipsdk/build/CMakeFiles/npsipsdk.dir/source/SipGatewary.cpp.o" 38 | "/home/robbie/workspace/media/npsipsdk/source/SipInterface.cpp" "/home/robbie/workspace/media/npsipsdk/build/CMakeFiles/npsipsdk.dir/source/SipInterface.cpp.o" 39 | "/home/robbie/workspace/media/npsipsdk/source/WorkThreads.cpp" "/home/robbie/workspace/media/npsipsdk/build/CMakeFiles/npsipsdk.dir/source/WorkThreads.cpp.o" 40 | "/home/robbie/workspace/media/npsipsdk/tinyxml2/tinyxml2.cpp" "/home/robbie/workspace/media/npsipsdk/build/CMakeFiles/npsipsdk.dir/tinyxml2/tinyxml2.cpp.o" 41 | ) 42 | set(CMAKE_CXX_COMPILER_ID "GNU") 43 | 44 | # Preprocessor definitions for this target. 45 | set(CMAKE_TARGET_DEFINITIONS_CXX 46 | "OUT" 47 | ) 48 | 49 | # The include file search paths: 50 | set(CMAKE_CXX_TARGET_INCLUDE_PATH 51 | "." 52 | "../" 53 | "../tinyxml2" 54 | ".././header" 55 | ) 56 | 57 | # Targets to which this target links. 58 | set(CMAKE_TARGET_LINKED_INFO_FILES 59 | ) 60 | 61 | # Fortran module output directory. 62 | set(CMAKE_Fortran_TARGET_MODULE_DIR "") 63 | -------------------------------------------------------------------------------- /build/CMakeFiles/npsipsdk.dir/cmake_clean.cmake: -------------------------------------------------------------------------------- 1 | file(REMOVE_RECURSE 2 | "CMakeFiles/npsipsdk.dir/tinyxml2/tinyxml2.cpp.o" 3 | "CMakeFiles/npsipsdk.dir/source/NPReproAuthManager.cpp.o" 4 | "CMakeFiles/npsipsdk.dir/source/OutboundProxyContainer.cpp.o" 5 | "CMakeFiles/npsipsdk.dir/source/SipClient.cpp.o" 6 | "CMakeFiles/npsipsdk.dir/source/SipGatewary.cpp.o" 7 | "CMakeFiles/npsipsdk.dir/source/SipInterface.cpp.o" 8 | "CMakeFiles/npsipsdk.dir/source/Log.cpp.o" 9 | "CMakeFiles/npsipsdk.dir/source/RegisterHandler.cpp.o" 10 | "CMakeFiles/npsipsdk.dir/source/WorkThreads.cpp.o" 11 | "CMakeFiles/npsipsdk.dir/Message/DeviceControlMsg.cpp.o" 12 | "CMakeFiles/npsipsdk.dir/Message/QueryDeviceStatusMsg.cpp.o" 13 | "CMakeFiles/npsipsdk.dir/Message/BroadcastMsg.cpp.o" 14 | "CMakeFiles/npsipsdk.dir/Message/QueryAlarmMsg.cpp.o" 15 | "CMakeFiles/npsipsdk.dir/Message/NpClientMsg.cpp.o" 16 | "CMakeFiles/npsipsdk.dir/Message/QueryDeviceInfoMsg.cpp.o" 17 | "CMakeFiles/npsipsdk.dir/Message/DeviceStatusNotifyMsg.cpp.o" 18 | "CMakeFiles/npsipsdk.dir/Message/InviteMsg.cpp.o" 19 | "CMakeFiles/npsipsdk.dir/Message/MessageMsg.cpp.o" 20 | "CMakeFiles/npsipsdk.dir/Message/NpGatewayMsg.cpp.o" 21 | "CMakeFiles/npsipsdk.dir/Message/Message.cpp.o" 22 | "CMakeFiles/npsipsdk.dir/Message/CatalogNotifyMsg.cpp.o" 23 | "CMakeFiles/npsipsdk.dir/Message/CallInfoMsg.cpp.o" 24 | "CMakeFiles/npsipsdk.dir/Message/KeepaliveMsg.cpp.o" 25 | "CMakeFiles/npsipsdk.dir/Message/GetTempAccountMsg.cpp.o" 26 | "CMakeFiles/npsipsdk.dir/Message/QueryRecordInfoMsg.cpp.o" 27 | "CMakeFiles/npsipsdk.dir/Message/ConfigDownloadMsg.cpp.o" 28 | "CMakeFiles/npsipsdk.dir/Message/GBMessage.cpp.o" 29 | "CMakeFiles/npsipsdk.dir/Message/MsgFactory.cpp.o" 30 | "CMakeFiles/npsipsdk.dir/Message/AlarmNotifyMsg.cpp.o" 31 | "CMakeFiles/npsipsdk.dir/Message/DeviceConfigMsg.cpp.o" 32 | "CMakeFiles/npsipsdk.dir/Message/SubscriptionMsg.cpp.o" 33 | "CMakeFiles/npsipsdk.dir/Message/RegisterMsg.cpp.o" 34 | "CMakeFiles/npsipsdk.dir/Message/QueryCatalogMsg.cpp.o" 35 | "CMakeFiles/npsipsdk.dir/Message/CallMessageMsg.cpp.o" 36 | "libnpsipsdk.pdb" 37 | "libnpsipsdk.a" 38 | ) 39 | 40 | # Per-language clean rules from dependency scanning. 41 | foreach(lang CXX) 42 | include(CMakeFiles/npsipsdk.dir/cmake_clean_${lang}.cmake OPTIONAL) 43 | endforeach() 44 | -------------------------------------------------------------------------------- /build/CMakeFiles/npsipsdk.dir/cmake_clean_target.cmake: -------------------------------------------------------------------------------- 1 | file(REMOVE_RECURSE 2 | "libnpsipsdk.a" 3 | ) 4 | -------------------------------------------------------------------------------- /build/CMakeFiles/npsipsdk.dir/flags.make: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.5 3 | 4 | # compile CXX with /usr/bin/x86_64-linux-gnu-g++-5 5 | CXX_FLAGS = -g -std=gnu++14 6 | 7 | CXX_DEFINES = -DOUT 8 | 9 | CXX_INCLUDES = -I/home/robbie/workspace/media/npsipsdk/build -I/home/robbie/workspace/media/npsipsdk -I/home/robbie/workspace/media/npsipsdk/tinyxml2 -I/home/robbie/workspace/media/npsipsdk/./header 10 | 11 | -------------------------------------------------------------------------------- /build/CMakeFiles/npsipsdk.dir/link.txt: -------------------------------------------------------------------------------- 1 | /usr/bin/ar qc libnpsipsdk.a CMakeFiles/npsipsdk.dir/tinyxml2/tinyxml2.cpp.o CMakeFiles/npsipsdk.dir/source/NPReproAuthManager.cpp.o CMakeFiles/npsipsdk.dir/source/OutboundProxyContainer.cpp.o CMakeFiles/npsipsdk.dir/source/SipClient.cpp.o CMakeFiles/npsipsdk.dir/source/SipGatewary.cpp.o CMakeFiles/npsipsdk.dir/source/SipInterface.cpp.o CMakeFiles/npsipsdk.dir/source/Log.cpp.o CMakeFiles/npsipsdk.dir/source/RegisterHandler.cpp.o CMakeFiles/npsipsdk.dir/source/WorkThreads.cpp.o CMakeFiles/npsipsdk.dir/Message/DeviceControlMsg.cpp.o CMakeFiles/npsipsdk.dir/Message/QueryDeviceStatusMsg.cpp.o CMakeFiles/npsipsdk.dir/Message/BroadcastMsg.cpp.o CMakeFiles/npsipsdk.dir/Message/QueryAlarmMsg.cpp.o CMakeFiles/npsipsdk.dir/Message/NpClientMsg.cpp.o CMakeFiles/npsipsdk.dir/Message/QueryDeviceInfoMsg.cpp.o CMakeFiles/npsipsdk.dir/Message/DeviceStatusNotifyMsg.cpp.o CMakeFiles/npsipsdk.dir/Message/InviteMsg.cpp.o CMakeFiles/npsipsdk.dir/Message/MessageMsg.cpp.o CMakeFiles/npsipsdk.dir/Message/NpGatewayMsg.cpp.o CMakeFiles/npsipsdk.dir/Message/Message.cpp.o CMakeFiles/npsipsdk.dir/Message/CatalogNotifyMsg.cpp.o CMakeFiles/npsipsdk.dir/Message/CallInfoMsg.cpp.o CMakeFiles/npsipsdk.dir/Message/KeepaliveMsg.cpp.o CMakeFiles/npsipsdk.dir/Message/GetTempAccountMsg.cpp.o CMakeFiles/npsipsdk.dir/Message/QueryRecordInfoMsg.cpp.o CMakeFiles/npsipsdk.dir/Message/ConfigDownloadMsg.cpp.o CMakeFiles/npsipsdk.dir/Message/GBMessage.cpp.o CMakeFiles/npsipsdk.dir/Message/MsgFactory.cpp.o CMakeFiles/npsipsdk.dir/Message/AlarmNotifyMsg.cpp.o CMakeFiles/npsipsdk.dir/Message/DeviceConfigMsg.cpp.o CMakeFiles/npsipsdk.dir/Message/SubscriptionMsg.cpp.o CMakeFiles/npsipsdk.dir/Message/RegisterMsg.cpp.o CMakeFiles/npsipsdk.dir/Message/QueryCatalogMsg.cpp.o CMakeFiles/npsipsdk.dir/Message/CallMessageMsg.cpp.o 2 | /usr/bin/ranlib libnpsipsdk.a 3 | -------------------------------------------------------------------------------- /build/CMakeFiles/npsipsdk.dir/progress.make: -------------------------------------------------------------------------------- 1 | CMAKE_PROGRESS_1 = 1 2 | CMAKE_PROGRESS_2 = 2 3 | CMAKE_PROGRESS_3 = 3 4 | CMAKE_PROGRESS_4 = 4 5 | CMAKE_PROGRESS_5 = 5 6 | CMAKE_PROGRESS_6 = 6 7 | CMAKE_PROGRESS_7 = 7 8 | CMAKE_PROGRESS_8 = 8 9 | CMAKE_PROGRESS_9 = 9 10 | CMAKE_PROGRESS_10 = 10 11 | CMAKE_PROGRESS_11 = 11 12 | CMAKE_PROGRESS_12 = 12 13 | CMAKE_PROGRESS_13 = 13 14 | CMAKE_PROGRESS_14 = 14 15 | CMAKE_PROGRESS_15 = 15 16 | CMAKE_PROGRESS_16 = 16 17 | CMAKE_PROGRESS_17 = 17 18 | CMAKE_PROGRESS_18 = 18 19 | CMAKE_PROGRESS_19 = 19 20 | CMAKE_PROGRESS_20 = 20 21 | CMAKE_PROGRESS_21 = 21 22 | CMAKE_PROGRESS_22 = 22 23 | CMAKE_PROGRESS_23 = 23 24 | CMAKE_PROGRESS_24 = 24 25 | CMAKE_PROGRESS_25 = 25 26 | CMAKE_PROGRESS_26 = 26 27 | CMAKE_PROGRESS_27 = 27 28 | CMAKE_PROGRESS_28 = 28 29 | CMAKE_PROGRESS_29 = 29 30 | CMAKE_PROGRESS_30 = 30 31 | CMAKE_PROGRESS_31 = 31 32 | CMAKE_PROGRESS_32 = 32 33 | CMAKE_PROGRESS_33 = 33 34 | CMAKE_PROGRESS_34 = 34 35 | CMAKE_PROGRESS_35 = 35 36 | 37 | -------------------------------------------------------------------------------- /build/CMakeFiles/progress.marks: -------------------------------------------------------------------------------- 1 | 35 2 | -------------------------------------------------------------------------------- /build/cmake_install.cmake: -------------------------------------------------------------------------------- 1 | # Install script for directory: /home/robbie/workspace/media/npsipsdk 2 | 3 | # Set the install prefix 4 | if(NOT DEFINED CMAKE_INSTALL_PREFIX) 5 | set(CMAKE_INSTALL_PREFIX "/usr/local") 6 | endif() 7 | string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") 8 | 9 | # Set the install configuration name. 10 | if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) 11 | if(BUILD_TYPE) 12 | string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" 13 | CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") 14 | else() 15 | set(CMAKE_INSTALL_CONFIG_NAME "Debug") 16 | endif() 17 | message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") 18 | endif() 19 | 20 | # Set the component getting installed. 21 | if(NOT CMAKE_INSTALL_COMPONENT) 22 | if(COMPONENT) 23 | message(STATUS "Install component: \"${COMPONENT}\"") 24 | set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") 25 | else() 26 | set(CMAKE_INSTALL_COMPONENT) 27 | endif() 28 | endif() 29 | 30 | # Install shared libraries without execute permission? 31 | if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) 32 | set(CMAKE_INSTALL_SO_NO_EXE "1") 33 | endif() 34 | 35 | if(CMAKE_INSTALL_COMPONENT) 36 | set(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INSTALL_COMPONENT}.txt") 37 | else() 38 | set(CMAKE_INSTALL_MANIFEST "install_manifest.txt") 39 | endif() 40 | 41 | string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT 42 | "${CMAKE_INSTALL_MANIFEST_FILES}") 43 | file(WRITE "/home/robbie/workspace/media/npsipsdk/build/${CMAKE_INSTALL_MANIFEST}" 44 | "${CMAKE_INSTALL_MANIFEST_CONTENT}") 45 | -------------------------------------------------------------------------------- /cmake_install.cmake: -------------------------------------------------------------------------------- 1 | # Install script for directory: /home/robbie/workspace/media/npsipsdk 2 | 3 | # Set the install prefix 4 | if(NOT DEFINED CMAKE_INSTALL_PREFIX) 5 | set(CMAKE_INSTALL_PREFIX "/usr/local") 6 | endif() 7 | string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") 8 | 9 | # Set the install configuration name. 10 | if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) 11 | if(BUILD_TYPE) 12 | string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" 13 | CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") 14 | else() 15 | set(CMAKE_INSTALL_CONFIG_NAME "") 16 | endif() 17 | message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") 18 | endif() 19 | 20 | # Set the component getting installed. 21 | if(NOT CMAKE_INSTALL_COMPONENT) 22 | if(COMPONENT) 23 | message(STATUS "Install component: \"${COMPONENT}\"") 24 | set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") 25 | else() 26 | set(CMAKE_INSTALL_COMPONENT) 27 | endif() 28 | endif() 29 | 30 | # Install shared libraries without execute permission? 31 | if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) 32 | set(CMAKE_INSTALL_SO_NO_EXE "1") 33 | endif() 34 | 35 | if(CMAKE_INSTALL_COMPONENT) 36 | set(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INSTALL_COMPONENT}.txt") 37 | else() 38 | set(CMAKE_INSTALL_MANIFEST "install_manifest.txt") 39 | endif() 40 | 41 | string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT 42 | "${CMAKE_INSTALL_MANIFEST_FILES}") 43 | file(WRITE "/home/robbie/workspace/media/npsipsdk/${CMAKE_INSTALL_MANIFEST}" 44 | "${CMAKE_INSTALL_MANIFEST_CONTENT}") 45 | -------------------------------------------------------------------------------- /header/InviteHandler.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/escoffier/sipsdk/4d906b32cdc0677be6663249712825eb57d1f870/header/InviteHandler.h -------------------------------------------------------------------------------- /header/Log.hpp: -------------------------------------------------------------------------------- 1 | #ifndef WHL_LOG_HPP_ 2 | #define WHL_LOG_HPP_ 3 | 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | #include 10 | #ifdef WIN32 11 | #include 12 | #include 13 | #else 14 | #include 15 | #include 16 | #endif 17 | #include 18 | //#include "ILocker.h" 19 | 20 | #define DEBUG_LOG( msg ) std::cout << msg << std::endl; /*if( whl::log::get_log_level() >= log_level_debug ) { std::lock_guard _gb_lock_( whl::log::m_lock() ); whl::log::get() << "[DEBUG]: " << "<" << __FILE__ << ":" << __LINE__ << "> " << msg << std::endl; }*/ 21 | #define INFO_LOG( msg ) std::cout << msg << std::endl; /*if( whl::log::get_log_level() >= log_level_info ) { std::lock_guard _gb_lock_( whl::log::m_lock() ); whl::log::get() << "[INFO ]: " << msg << std::endl; }*/ 22 | #define WARN_LOG( msg ) std::cout << msg << std::endl; /*if( whl::log::get_log_level() >= log_level_warn ) { std::lock_guard _gb_lock_( whl::log::m_lock() ); whl::log::get() << "[WARN ]: " << msg << std::endl; }*/ 23 | #define ERROR_LOG( msg ) std::cout << msg << std::endl; /*if( whl::log::get_log_level() >= log_level_error ) { std::lock_guard _gb_lock_( whl::log::get_lock ); whl::log::get() << "[ERROR]: " << msg << std::endl; }*/ 24 | 25 | ////////////////////////////////////////////////////////////////////////// 26 | enum log_level 27 | { 28 | log_level_nouse = 0, 29 | log_level_error, 30 | log_level_warn, 31 | log_level_info, 32 | log_level_debug, 33 | }; 34 | 35 | /////////////////////////////////////////////////////////////////////////////////////////////////// 36 | namespace whl 37 | { 38 | /////////////////////////////////////////////////////////////////////////////////////////////////// 39 | class log : public std::ofstream 40 | { 41 | private: 42 | log(); 43 | ~log(); 44 | 45 | private: 46 | log( const log &rhs ); 47 | void operator=( const log &rhs ); 48 | 49 | public: 50 | static void set_log_path( std::string &path ); 51 | static log_level get_log_level(); 52 | static void set_log_level( int level ); 53 | static std::mutex& get_lock(); 54 | static log& get(); 55 | 56 | private: 57 | static log& instance() 58 | { 59 | static log obj; 60 | return obj; 61 | } 62 | 63 | private: 64 | 65 | log_level m_level; 66 | time_t m_time; 67 | int m_year; 68 | int m_month; 69 | int m_day; 70 | char m_timebuf[24]; 71 | std::string m_path; 72 | public: 73 | std::mutex m_lock; 74 | private: 75 | static int m_count; 76 | }; 77 | } // end namespace whl 78 | ////////////////////////////////////////////////////////////////////////// 79 | #endif // WHL_LOG_HPP_ 80 | -------------------------------------------------------------------------------- /header/MessageHandler.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/escoffier/sipsdk/4d906b32cdc0677be6663249712825eb57d1f870/header/MessageHandler.h -------------------------------------------------------------------------------- /header/MessageQueue.hpp: -------------------------------------------------------------------------------- 1 | #ifndef MESSAGE_QUEUE_HPP_ 2 | #define MESSAGE_QUEUE_HPP_ 3 | 4 | #include 5 | //#include "ILocker.h" 6 | #include 7 | #include "../Message/Message.hpp" 8 | 9 | class CMessageQueue 10 | { 11 | public: 12 | CMessageQueue() 13 | { 14 | } 15 | 16 | ~CMessageQueue() 17 | { 18 | std::lock_guard locker( m_lock ); 19 | while( !m_queue.empty() ) 20 | { 21 | CMessage *msg = m_queue.front(); 22 | m_queue.pop(); 23 | delete msg; 24 | } 25 | } 26 | 27 | private: 28 | CMessageQueue( const CMessageQueue& ); 29 | CMessageQueue& operator= ( const CMessageQueue& ); 30 | 31 | public: 32 | static void AddMessage( CMessage *msg ) 33 | { 34 | CMessageQueue &obj = GetInstance(); 35 | obj.AddHelper( msg ); 36 | } 37 | 38 | static CMessage* GetMessage() 39 | { 40 | CMessageQueue &obj = GetInstance(); 41 | return obj.GetHelper(); 42 | } 43 | 44 | private: 45 | static CMessageQueue& GetInstance() 46 | { 47 | static CMessageQueue obj; 48 | return obj; 49 | } 50 | 51 | void AddHelper( CMessage *msg ) 52 | { 53 | std::lock_guard locker( m_lock ); 54 | if( msg != 0 ) 55 | { 56 | m_queue.push( msg ); 57 | } 58 | } 59 | 60 | CMessage* GetHelper() 61 | { 62 | std::lock_guard locker( m_lock ); 63 | CMessage *msg = 0; 64 | if( !m_queue.empty() ) 65 | { 66 | msg = m_queue.front(); 67 | m_queue.pop(); 68 | } 69 | 70 | return msg; 71 | } 72 | 73 | private: 74 | std::queue< CMessage* > m_queue; 75 | //CLocker m_lock; 76 | std::mutex m_lock; 77 | }; 78 | 79 | #endif // MESSAGE_QUEUE_HPP_ -------------------------------------------------------------------------------- /header/NPReproAuthMananger.h: -------------------------------------------------------------------------------- 1 | #ifndef _NPREPRO_AUTH_MANANGER_H_ 2 | #define _NPREPRO_AUTH_MANANGER_H_ 3 | 4 | #include "resip/dum/ServerAuthManager.hxx" 5 | #include "OutboundProxyContainer.h" 6 | class CSipInterface; 7 | 8 | class NPReproAuthManager : public resip::ServerAuthManager 9 | { 10 | public: 11 | NPReproAuthManager( CSipInterface *pSip, resip::DialogUsageManager& dum ); 12 | 13 | public: 14 | virtual bool isMyRealm(const resip::Data& realm); 15 | virtual bool proxyAuthenticationMode() const; 16 | 17 | public: 18 | virtual AsyncBool requiresChallenge(const resip::SipMessage& msg); 19 | virtual void onAuthSuccess(const resip::SipMessage& msg); 20 | virtual void onAuthFailure(resip::ServerAuthManager::AuthFailureReason reason, const resip::SipMessage& msg); 21 | virtual void requestCredential(const resip::Data& user, 22 | const resip::Data& realm, 23 | const resip::SipMessage& msg, 24 | const resip::Auth& auth, 25 | const resip::Data& transactionToken ); 26 | 27 | private: 28 | CSipInterface* m_pSip; 29 | }; 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /header/NotifyHandler.h: -------------------------------------------------------------------------------- 1 | #ifndef _C94BE2E4_86F1_4025_951E_335156D36D5A_ 2 | #define _C94BE2E4_86F1_4025_951E_335156D36D5A_ 3 | 4 | //#include "OutOfDialogHandler.hxx" 5 | #include "SipInterface.h" 6 | 7 | class CNotifyHandler : public resip::OutOfDialogHandler 8 | { 9 | public: 10 | CNotifyHandler( CSipInterface *pSip ) : m_pSip( pSip ) 11 | { 12 | } 13 | 14 | public: 15 | virtual void onSuccess(resip::ClientOutOfDialogReqHandle h, const resip::SipMessage& successResponse) 16 | { 17 | if( m_pSip != NULL ) 18 | { 19 | m_pSip->OnNotifyResponse( h.get(), &successResponse ); 20 | } 21 | } 22 | 23 | virtual void onFailure(resip::ClientOutOfDialogReqHandle h, const resip::SipMessage& errorResponse) 24 | { 25 | if( m_pSip != NULL ) 26 | { 27 | m_pSip->OnNotifyResponse( h.get(), &errorResponse ); 28 | } 29 | } 30 | 31 | virtual void onReceivedRequest(resip::ServerOutOfDialogReqHandle h, const resip::SipMessage& request) 32 | { 33 | if( m_pSip != NULL ) 34 | { 35 | m_pSip->OnNotify( h.get(), &request ); 36 | } 37 | } 38 | 39 | private: 40 | CSipInterface* m_pSip; 41 | }; 42 | 43 | #endif 44 | -------------------------------------------------------------------------------- /header/OutboundProxyContainer.h: -------------------------------------------------------------------------------- 1 | #ifndef _OUTBOUNDPROXYCONTAINER_H_ 2 | #define _OUTBOUNDPROXYCONTAINER_H_ 3 | 4 | #include 5 | #include "rutil/Data.hxx" 6 | #include "resip/stack/Uri.hxx" 7 | 8 | class OutboundProxyContainer 9 | { 10 | struct OutboundProxy 11 | { 12 | OutboundProxy(const char* id, const char* ip, int port, const char* password, const char* realm); 13 | resip::Data m_id; 14 | resip::Data m_password; 15 | resip::Data m_realm; 16 | resip::Uri m_uri; 17 | }; 18 | 19 | public: 20 | typedef std::list::const_iterator Iterator; 21 | bool isMatchedServerCode(const resip::Data& userId, resip::Uri& mathedUri); 22 | void addOutboundProxyInfo(const char* id, const char* ip, int port, const char* password, const char* realm); 23 | bool isForMe(const resip::Data& userId); 24 | OutboundProxyContainer::Iterator begin()const; 25 | OutboundProxyContainer::Iterator end()const; 26 | static resip::Data getPassword(); 27 | 28 | private: 29 | std::list m_OutboundProxyList; 30 | static resip::Data m_password; 31 | }; 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /header/RegisterHandler.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/escoffier/sipsdk/4d906b32cdc0677be6663249712825eb57d1f870/header/RegisterHandler.h -------------------------------------------------------------------------------- /header/SipClient.hpp: -------------------------------------------------------------------------------- 1 | #ifndef _SIP_CLIENT_HPP__ 2 | #define _SIP_CLIENT_HPP__ 3 | 4 | #include "SipInterface.h" 5 | 6 | typedef void (*Callback_SipOffline)(); 7 | typedef void (*CallBack_RealStream)( std::string id, int videoType, char* data, int len, int isKey, int64_t pts ); 8 | 9 | ////////////////////////////////////////////////////////////////////////// 10 | class CSipClient : public CSipInterface 11 | { 12 | public: 13 | CSipClient(); 14 | virtual ~CSipClient(); 15 | 16 | public: 17 | virtual void RunSipStack(); 18 | virtual bool GetTargetAddr( const std::string& code, resip::Uri& targetAddr ); 19 | 20 | virtual void OnOffline( const CClientOfflineMsg& ) {} 21 | 22 | std::string m_sSeverid; 23 | }; 24 | 25 | #endif // _SIP_CLIENT_HPP__ 26 | -------------------------------------------------------------------------------- /header/SipGateway.hpp: -------------------------------------------------------------------------------- 1 | #ifndef _SIP_GATEWARY_HPP__ 2 | #define _SIP_GATEWARY_HPP__ 3 | 4 | #include "SipInterface.h" 5 | 6 | ////////////////////////////////////////////////////////////////////////// 7 | class CSipGateway : public CSipInterface 8 | { 9 | public: 10 | CSipGateway(); 11 | virtual ~CSipGateway(); 12 | 13 | public: 14 | virtual void RunSipStack(); 15 | virtual bool GetTargetAddr( const std::string& code, resip::Uri& targetAddr ); 16 | virtual bool CheckUserRegExpires( const std::string &user ); 17 | 18 | public: 19 | virtual void OnOffline( const COfflineMsg& ) {} 20 | virtual void OnPlayOver( const CPlayOverMsg& ) {} 21 | virtual void OnPlayClose( const CPlayCloseMsg& ) {} 22 | virtual void OnMediaConnect( const CMediaReconnectMsg & ) {} 23 | 24 | public: 25 | static void SipMsgCallBack(const resip::SipMessage &msg, bool isRecv); 26 | 27 | protected: 28 | resip::RegistrationPersistenceManager* m_regData; 29 | }; 30 | 31 | #endif // _SIP_GATEWARY_HPP__ 32 | -------------------------------------------------------------------------------- /header/SipInterface.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/escoffier/sipsdk/4d906b32cdc0677be6663249712825eb57d1f870/header/SipInterface.h -------------------------------------------------------------------------------- /header/SubscriptionHandler.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/escoffier/sipsdk/4d906b32cdc0677be6663249712825eb57d1f870/header/SubscriptionHandler.h -------------------------------------------------------------------------------- /header/WorkThreads.h: -------------------------------------------------------------------------------- 1 | #ifndef PROCESS_THREADS_H_ 2 | #define PROCESS_THREADS_H_ 3 | //#include "npthread.h" 4 | #include "SipInterface.h" 5 | 6 | class CWorkThreads 7 | { 8 | public: 9 | static void Start( CSipInterface *pInterface, int threads ); 10 | static void Stop(); 11 | 12 | private: 13 | CWorkThreads() 14 | { 15 | } 16 | 17 | private: 18 | static CWorkThreads& GetInstance() 19 | { 20 | static CWorkThreads obj; 21 | return obj; 22 | } 23 | }; 24 | 25 | #endif // PROCESS_THREADS_H 26 | 27 | -------------------------------------------------------------------------------- /npsipsdk.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 14 4 | VisualStudioVersion = 14.0.25420.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "npsipsdk", "npsipsdk.vcxproj", "{7BEA7E4B-DDA3-4ACF-96E9-CF613E0B84F9}" 7 | EndProject 8 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "gbuac1", "..\gbuac1\gbuac1.vcxproj", "{EBFF516E-018F-4341-8156-C0D3E618A155}" 9 | EndProject 10 | Global 11 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 12 | Debug|x64 = Debug|x64 13 | Debug|x86 = Debug|x86 14 | Release|x64 = Release|x64 15 | Release|x86 = Release|x86 16 | EndGlobalSection 17 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 18 | {7BEA7E4B-DDA3-4ACF-96E9-CF613E0B84F9}.Debug|x64.ActiveCfg = Debug|x64 19 | {7BEA7E4B-DDA3-4ACF-96E9-CF613E0B84F9}.Debug|x64.Build.0 = Debug|x64 20 | {7BEA7E4B-DDA3-4ACF-96E9-CF613E0B84F9}.Debug|x86.ActiveCfg = Debug|Win32 21 | {7BEA7E4B-DDA3-4ACF-96E9-CF613E0B84F9}.Debug|x86.Build.0 = Debug|Win32 22 | {7BEA7E4B-DDA3-4ACF-96E9-CF613E0B84F9}.Release|x64.ActiveCfg = Release|x64 23 | {7BEA7E4B-DDA3-4ACF-96E9-CF613E0B84F9}.Release|x64.Build.0 = Release|x64 24 | {7BEA7E4B-DDA3-4ACF-96E9-CF613E0B84F9}.Release|x86.ActiveCfg = Release|Win32 25 | {7BEA7E4B-DDA3-4ACF-96E9-CF613E0B84F9}.Release|x86.Build.0 = Release|Win32 26 | {EBFF516E-018F-4341-8156-C0D3E618A155}.Debug|x64.ActiveCfg = Debug|x64 27 | {EBFF516E-018F-4341-8156-C0D3E618A155}.Debug|x64.Build.0 = Debug|x64 28 | {EBFF516E-018F-4341-8156-C0D3E618A155}.Debug|x86.ActiveCfg = Debug|Win32 29 | {EBFF516E-018F-4341-8156-C0D3E618A155}.Debug|x86.Build.0 = Debug|Win32 30 | {EBFF516E-018F-4341-8156-C0D3E618A155}.Release|x64.ActiveCfg = Release|x64 31 | {EBFF516E-018F-4341-8156-C0D3E618A155}.Release|x64.Build.0 = Release|x64 32 | {EBFF516E-018F-4341-8156-C0D3E618A155}.Release|x86.ActiveCfg = Release|Win32 33 | {EBFF516E-018F-4341-8156-C0D3E618A155}.Release|x86.Build.0 = Release|Win32 34 | EndGlobalSection 35 | GlobalSection(SolutionProperties) = preSolution 36 | HideSolutionNode = FALSE 37 | EndGlobalSection 38 | EndGlobal 39 | -------------------------------------------------------------------------------- /npsipsdk.vcproj: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 15 | 16 | 17 | 18 | 19 | 26 | 29 | 32 | 35 | 38 | 41 | 54 | 57 | 60 | 63 | 66 | 69 | 72 | 75 | 78 | 81 | 82 | 90 | 93 | 96 | 99 | 102 | 105 | 119 | 122 | 125 | 128 | 131 | 134 | 137 | 140 | 143 | 146 | 147 | 148 | 149 | 150 | 151 | 156 | 159 | 160 | 163 | 164 | 167 | 168 | 171 | 172 | 175 | 176 | 179 | 180 | 183 | 184 | 187 | 188 | 189 | 194 | 197 | 198 | 201 | 202 | 205 | 206 | 209 | 210 | 213 | 214 | 217 | 218 | 221 | 222 | 225 | 226 | 229 | 230 | 233 | 234 | 237 | 238 | 241 | 242 | 245 | 246 | 247 | 250 | 253 | 254 | 257 | 258 | 261 | 262 | 265 | 266 | 269 | 270 | 273 | 274 | 277 | 278 | 281 | 282 | 285 | 286 | 289 | 290 | 293 | 294 | 297 | 298 | 301 | 302 | 305 | 306 | 309 | 310 | 313 | 314 | 317 | 318 | 321 | 322 | 325 | 326 | 329 | 330 | 333 | 334 | 337 | 338 | 341 | 342 | 345 | 346 | 349 | 350 | 353 | 354 | 357 | 358 | 361 | 362 | 365 | 366 | 369 | 370 | 373 | 374 | 377 | 378 | 381 | 382 | 385 | 386 | 389 | 390 | 393 | 394 | 397 | 398 | 401 | 402 | 405 | 406 | 409 | 410 | 413 | 414 | 417 | 418 | 421 | 422 | 425 | 426 | 429 | 430 | 433 | 434 | 437 | 438 | 441 | 442 | 445 | 446 | 449 | 450 | 453 | 454 | 455 | 456 | 457 | 458 | 459 | -------------------------------------------------------------------------------- /npsipsdk.vcxproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | Win32 7 | 8 | 9 | Debug 10 | x64 11 | 12 | 13 | Release 14 | Win32 15 | 16 | 17 | Release 18 | x64 19 | 20 | 21 | 22 | {7BEA7E4B-DDA3-4ACF-96E9-CF613E0B84F9} 23 | npsipsdk 24 | Win32Proj 25 | 26 | 27 | 28 | StaticLibrary 29 | v140 30 | MultiByte 31 | true 32 | 33 | 34 | StaticLibrary 35 | v140 36 | MultiByte 37 | true 38 | 39 | 40 | StaticLibrary 41 | v140 42 | MultiByte 43 | 44 | 45 | StaticLibrary 46 | v140 47 | MultiByte 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | <_ProjectFileVersion>14.0.25431.1 67 | 68 | 69 | $(SolutionDir)$(Configuration)\ 70 | $(Configuration)\ 71 | 72 | 73 | 74 | $(SolutionDir)$(Configuration)\ 75 | $(Configuration)\ 76 | 77 | 78 | 79 | Disabled 80 | C:\netposa_pubsdk\include;.\tinyxml2;header;..\resiprocate;lib_npsipsdk\header;%(AdditionalIncludeDirectories) 81 | WIN32;_DEBUG;_WINDOWS;_USRDLL;NPGATEWAY;NPSIPSDK_EXPORTS;%(PreprocessorDefinitions) 82 | true 83 | EnableFastChecks 84 | MultiThreadedDebugDLL 85 | 86 | Level3 87 | EditAndContinue 88 | 4100;%(DisableSpecificWarnings) 89 | 90 | 91 | 92 | 93 | Disabled 94 | C:\netposa_pubsdk\include;.\tinyxml2;header;..\resiprocate;lib_npsipsdk\header;%(AdditionalIncludeDirectories) 95 | WIN32;_DEBUG;_WINDOWS;_USRDLL;NPGATEWAY;NPSIPSDK_EXPORTS;%(PreprocessorDefinitions) 96 | EnableFastChecks 97 | MultiThreadedDebugDLL 98 | 99 | 100 | Level3 101 | ProgramDatabase 102 | 4100;%(DisableSpecificWarnings) 103 | 104 | 105 | 106 | 107 | Disabled 108 | Default 109 | true 110 | false 111 | C:\netposa_pubsdk\include;..\pub\codelib\ext\tinyxml;header;..\resiprocate-1.7;%(AdditionalIncludeDirectories) 112 | WIN32;NDEBUG;_WINDOWS;_USRDLL;NPSIPSDK_EXPORTS;%(PreprocessorDefinitions) 113 | MultiThreadedDLL 114 | true 115 | 116 | Level3 117 | ProgramDatabase 118 | 119 | 120 | 121 | 122 | Disabled 123 | Default 124 | true 125 | false 126 | C:\netposa_pubsdk\include;..\pub\codelib\ext\tinyxml;header;..\resiprocate-1.7;%(AdditionalIncludeDirectories) 127 | WIN32;NDEBUG;_WINDOWS;_USRDLL;NPSIPSDK_EXPORTS;%(PreprocessorDefinitions) 128 | MultiThreadedDLL 129 | true 130 | 131 | 132 | Level3 133 | ProgramDatabase 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | -------------------------------------------------------------------------------- /npsipsdk.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {1528915e-f4d9-4f0b-8ad7-297cdfc412f2} 14 | 15 | 16 | {31573626-061a-4b87-8e43-a79ec7ec4770} 17 | 18 | 19 | 20 | 21 | Source Files 22 | 23 | 24 | Source Files 25 | 26 | 27 | Source Files 28 | 29 | 30 | Source Files 31 | 32 | 33 | Source Files 34 | 35 | 36 | Source Files 37 | 38 | 39 | Source Files 40 | 41 | 42 | Source Files 43 | 44 | 45 | Message 46 | 47 | 48 | Message 49 | 50 | 51 | Message 52 | 53 | 54 | Message 55 | 56 | 57 | Message 58 | 59 | 60 | Message 61 | 62 | 63 | Message 64 | 65 | 66 | Message 67 | 68 | 69 | Message 70 | 71 | 72 | Message 73 | 74 | 75 | Message 76 | 77 | 78 | Message 79 | 80 | 81 | Message 82 | 83 | 84 | Message 85 | 86 | 87 | Message 88 | 89 | 90 | Message 91 | 92 | 93 | Message 94 | 95 | 96 | Message 97 | 98 | 99 | Message 100 | 101 | 102 | Message 103 | 104 | 105 | Message 106 | 107 | 108 | Message 109 | 110 | 111 | Message 112 | 113 | 114 | Message 115 | 116 | 117 | tinyxml2 118 | 119 | 120 | 121 | 122 | Header Files 123 | 124 | 125 | Header Files 126 | 127 | 128 | Header Files 129 | 130 | 131 | Header Files 132 | 133 | 134 | Header Files 135 | 136 | 137 | Header Files 138 | 139 | 140 | Header Files 141 | 142 | 143 | Header Files 144 | 145 | 146 | Header Files 147 | 148 | 149 | Header Files 150 | 151 | 152 | Header Files 153 | 154 | 155 | Header Files 156 | 157 | 158 | Header Files 159 | 160 | 161 | Message 162 | 163 | 164 | Message 165 | 166 | 167 | Message 168 | 169 | 170 | Message 171 | 172 | 173 | Message 174 | 175 | 176 | Message 177 | 178 | 179 | Message 180 | 181 | 182 | Message 183 | 184 | 185 | Message 186 | 187 | 188 | Message 189 | 190 | 191 | Message 192 | 193 | 194 | Message 195 | 196 | 197 | Message 198 | 199 | 200 | Message 201 | 202 | 203 | Message 204 | 205 | 206 | Message 207 | 208 | 209 | Message 210 | 211 | 212 | Message 213 | 214 | 215 | Message 216 | 217 | 218 | Message 219 | 220 | 221 | Message 222 | 223 | 224 | Message 225 | 226 | 227 | Message 228 | 229 | 230 | Message 231 | 232 | 233 | Message 234 | 235 | 236 | Message 237 | 238 | 239 | Message 240 | 241 | 242 | tinyxml2 243 | 244 | 245 | -------------------------------------------------------------------------------- /source/Log.cpp: -------------------------------------------------------------------------------- 1 | #include "Log.hpp" 2 | 3 | int whl::log::m_count = 7; 4 | 5 | whl::log::log() 6 | { 7 | m_level = log_level_nouse; 8 | m_year = 0; 9 | m_month = 0; 10 | m_day = 0; 11 | #ifdef WIN32 12 | _mkdir( "log" ); 13 | #else 14 | mkdir( "log", 0 ); 15 | #endif 16 | } 17 | 18 | whl::log::~log() 19 | { 20 | } 21 | 22 | void whl::log::set_log_path( std::string &path ) 23 | { 24 | #ifdef WIN32 25 | _mkdir( path.c_str() ); 26 | #else 27 | mkdir( path.c_str(), 0 ); 28 | #endif 29 | 30 | whl::log &obj = instance(); 31 | obj.m_path = path; 32 | } 33 | 34 | log_level whl::log::get_log_level() 35 | { 36 | whl::log &obj = instance(); 37 | return obj.m_level; 38 | } 39 | 40 | void whl::log::set_log_level( int level ) 41 | { 42 | whl::log &obj = instance(); 43 | switch( level ) 44 | { 45 | case log_level_debug: obj.m_level = log_level_debug; break; 46 | case log_level_info: obj.m_level = log_level_info; break; 47 | case log_level_warn: obj.m_level = log_level_warn; break; 48 | case log_level_error: obj.m_level = log_level_error; break; 49 | default: obj.m_level = log_level_nouse; break; 50 | } 51 | } 52 | 53 | std::mutex& whl::log::get_lock() 54 | { 55 | whl::log &obj = instance(); 56 | return( obj.m_lock ); 57 | } 58 | 59 | whl::log& whl::log::get() 60 | { 61 | whl::log &obj = instance(); 62 | time( &obj.m_time ); 63 | struct tm *p = localtime( &obj.m_time ); 64 | sprintf( obj.m_timebuf, "%04d-%02d-%02d %02d:%02d:%02d(%03d) ", 65 | p->tm_year + 1900, 66 | p->tm_mon + 1, 67 | p->tm_mday, 68 | p->tm_hour, 69 | p->tm_min, 70 | p->tm_sec, 71 | 0 ); 72 | 73 | if( p->tm_year + 1900 != obj.m_year || p->tm_mon + 1 != obj.m_month || p->tm_mday != obj.m_day ) 74 | { 75 | obj.m_year = p->tm_year + 1900; 76 | obj.m_month = p->tm_mon + 1; 77 | obj.m_day = p->tm_mday; 78 | 79 | if( obj.is_open() ) 80 | { 81 | obj.close(); 82 | } 83 | 84 | // clear(); 85 | 86 | char name[32] = { 0 }; 87 | sprintf( name, "%s/%04d%02d%02d.log", obj.m_path.c_str(), obj.m_year, obj.m_month, obj.m_day ); 88 | obj.open( name, std::ios_base::app ); 89 | 90 | if( !obj.is_open() ) 91 | { 92 | std::cout << "open log file \'" << name << "\' failuee!" << std::endl; 93 | #ifdef WIN32 94 | exit( -1 ); 95 | #else 96 | _exit( -1 ); 97 | #endif 98 | } 99 | obj << name; 100 | } 101 | 102 | obj << obj.m_timebuf; 103 | return obj; 104 | } 105 | -------------------------------------------------------------------------------- /source/NPReproAuthManager.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/escoffier/sipsdk/4d906b32cdc0677be6663249712825eb57d1f870/source/NPReproAuthManager.cpp -------------------------------------------------------------------------------- /source/OutboundProxyContainer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/escoffier/sipsdk/4d906b32cdc0677be6663249712825eb57d1f870/source/OutboundProxyContainer.cpp -------------------------------------------------------------------------------- /source/RegisterHandler.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/escoffier/sipsdk/4d906b32cdc0677be6663249712825eb57d1f870/source/RegisterHandler.cpp -------------------------------------------------------------------------------- /source/SipClient.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/escoffier/sipsdk/4d906b32cdc0677be6663249712825eb57d1f870/source/SipClient.cpp -------------------------------------------------------------------------------- /source/SipGatewary.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/escoffier/sipsdk/4d906b32cdc0677be6663249712825eb57d1f870/source/SipGatewary.cpp -------------------------------------------------------------------------------- /source/SipInterface.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/escoffier/sipsdk/4d906b32cdc0677be6663249712825eb57d1f870/source/SipInterface.cpp -------------------------------------------------------------------------------- /source/WorkThreads.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/escoffier/sipsdk/4d906b32cdc0677be6663249712825eb57d1f870/source/WorkThreads.cpp --------------------------------------------------------------------------------