Test Block: Difference between revisions

From VoIPmonitor.org
No edit summary
 
No edit summary
Line 1: Line 1:
Test 1 - Mermaid Block Diagram:
<kroki lang="mermaid">
block-beta
    columns 3
    block:network:1
        NET["Network\nSIP/RTP/WebRTC"]
    end
    space
    space
    block:sensor:1
        SENS["Sensor\nPacket Capture"]
    end
    space
    space
    block:storage:2
        DB[("MySQL\nCDR")]
        PCAP[["PCAP\nRecordings"]]
    end
    block:gui:1
        GUI["Web GUI\nAnalysis"]
    end
    NET --> SENS
    SENS --> DB
    SENS --> PCAP
    GUI --> DB
    GUI --> PCAP
</kroki>
Test 2 - Mermaid Flowchart TB:
<kroki lang="mermaid">
<kroki lang="mermaid">
flowchart TB
flowchart TB
     subgraph NET[Network]
     NET([Network\nSIP / RTP / WebRTC])
        SIP[SIP Signaling]
        RTP[RTP Media]
    end


     subgraph SENSOR[Sensor]
     subgraph SENSOR[Sensor]
Line 50: Line 9:


     subgraph STORAGE[Storage]
     subgraph STORAGE[Storage]
         DB[(MySQL/MariaDB)]
         DB[(MySQL/MariaDB\nCDR Data)]
         PCAP[(PCAP Files)]
         PCAP[(PCAP Files\nRecordings)]
     end
     end


     subgraph GUI[Web GUI]
     subgraph GUI[Web GUI]
         WEB[Web Interface]
         WEB[Web Interface]
         REP[Reports]
         REP[Reports & Playback]
     end
     end


Line 65: Line 24:
     GUI --> |playback| PCAP
     GUI --> |playback| PCAP


     style NET fill:#e0f4fc,stroke:#00A7E3
     style NET fill:#fff,stroke:#00719A,stroke-width:2px,color:#1e293b
     style SENSOR fill:#e0f4fc,stroke:#00A7E3
     style SENSOR fill:#fff,stroke:#00A7E3,stroke-width:2px,color:#1e293b
     style STORAGE fill:#fef3e2,stroke:#f78d1d
     style STORAGE fill:#fff,stroke:#f78d1d,stroke-width:2px,color:#1e293b
     style GUI fill:#e0f4fc,stroke:#00A7E3
     style GUI fill:#fff,stroke:#00A7E3,stroke-width:2px,color:#1e293b
</kroki>
     style DB fill:#fff,stroke:#f78d1d,color:#1e293b
 
    style PCAP fill:#fff,stroke:#f78d1d,color:#1e293b
Test 3 - BlockDiag:
     style CAP fill:#e0f4fc,stroke:#00A7E3,color:#1e293b
 
     style QA fill:#e0f4fc,stroke:#00A7E3,color:#1e293b
<kroki lang="blockdiag">
     style WEB fill:#e0f4fc,stroke:#00A7E3,color:#1e293b
blockdiag {
     style REP fill:#e0f4fc,stroke:#00A7E3,color:#1e293b
    orientation = portrait;
 
    Network [label = "Network\nSIP/RTP"];
    Sensor [label = "Sensor\nCapture & Analysis"];
    MySQL [label = "MySQL\nCDR Storage"];
    PCAP [label = "PCAP\nRecordings"];
    GUI [label = "Web GUI\nAnalysis"];
 
    Network -> Sensor -> MySQL;
    Sensor -> PCAP;
    GUI -> MySQL;
    GUI -> PCAP;
 
    group {
        color = "#e0f4fc";
        Network; Sensor;
     }
 
    group {
        color = "#fef3e2";
        MySQL; PCAP;
    }
}
</kroki>
 
Test 4 - D2:
 
<kroki lang="d2">
direction: down
 
Network: Network Traffic {
     style.fill: "#e0f4fc"
    style.stroke: "#00A7E3"
    SIP
    RTP
}
 
Sensor: Sensor {
     style.fill: "#e0f4fc"
    style.stroke: "#00A7E3"
    Capture
    Analysis
}
 
Storage: Storage {
     style.fill: "#fef3e2"
    style.stroke: "#f78d1d"
    MySQL: MySQL/MariaDB
    PCAP: PCAP Files
}
 
GUI: Web GUI {
     style.fill: "#e0f4fc"
    style.stroke: "#00A7E3"
}
 
Network -> Sensor: capture
Sensor -> Storage.MySQL: CDR
Sensor -> Storage.PCAP: packets
GUI -> Storage.MySQL: query
GUI -> Storage.PCAP: playback
</kroki>
</kroki>

Revision as of 19:43, 11 December 2025