Skip to content

Commit 6d50e2a

Browse files
Zainullin DamirZainullin Damir
authored andcommitted
Process plugins - Introduce SIP process plugin
1 parent be96cbc commit 6d50e2a

File tree

8 files changed

+500
-1006
lines changed

8 files changed

+500
-1006
lines changed

src/plugins/process/sip/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ project(ipfixprobe-process-sip VERSION 1.0.0 DESCRIPTION "ipfixprobe-process-sip
33
add_library(ipfixprobe-process-sip MODULE
44
src/sip.cpp
55
src/sip.hpp
6+
src/sipContext.hpp
7+
src/sipFields.hpp
8+
src/sipMessageType.hpp
69
)
710

811
set_target_properties(ipfixprobe-process-sip PROPERTIES
@@ -12,6 +15,10 @@ set_target_properties(ipfixprobe-process-sip PROPERTIES
1215

1316
target_include_directories(ipfixprobe-process-sip PRIVATE
1417
${CMAKE_SOURCE_DIR}/include/
18+
${CMAKE_SOURCE_DIR}/include/ipfixprobe/processPlugin
19+
${CMAKE_SOURCE_DIR}/include/ipfixprobe/pluginFactory
20+
${CMAKE_SOURCE_DIR}/src/plugins/process/common
21+
${adaptmon_SOURCE_DIR}/lib/include/public/
1522
)
1623

1724
if(ENABLE_NEMEA)

src/plugins/process/sip/README.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# SIP Plugin
2+
3+
The **SIP Plugin** parses SIP data and exports relevant fields.
4+
5+
## Features
6+
7+
- Reinserts the flow after the second SIP message is received.
8+
9+
## Output Fields
10+
11+
| Field Name | Data Type | Description |
12+
| ---------------------------- | ---------- | ---------------------------------------- |
13+
| `RTSP_REQUEST_METHOD` | `string` | Method of the RTSP request |
14+
| `RTSP_REQUEST_AGENT` | `string` | User-Agent header of the RTSP request |
15+
| `RTSP_REQUEST_URI` | `string` | URI of the RTSP request |
16+
| `RTSP_RESPONSE_STATUS_CODE` | `uint16_t` | Status code of the RTSP response |
17+
| `RTSP_RESPONSE_SERVER` | `string` | Server header of the RTSP response |
18+
| `RTSP_RESPONSE_CONTENT_TYPE` | `string` | Content-Type header of the RTSP response |
19+
20+
## Usage
21+
22+
### YAML Configuration
23+
24+
Add the plugin to your ipfixprobe YAML configuration:
25+
26+
```yaml
27+
process_plugins:
28+
- rtsp
29+
```
30+
31+
### CLI Usage
32+
33+
You can also enable the plugin directly from the command line:
34+
35+
`ipfixprobe -p rtsp ...`

0 commit comments

Comments
 (0)