# PCAP Data

DeNovoLab Class 4 fusion automatically captures all PCAP and keeps it in hard disk for 7 days.  You can configure the pcap capture behavior of switch by modifying the \[capture] section of dnl\_softswitch.conf.  By default it has the following setting:

```
[capture]
#enable_capture = yes
#enable_compress = yes
pcap_save_day = 7
#Query duration, in hour, default is 24Hours
#pcap_query_duration = 24
#pcap_dir =
```

Here are the meaning of each fields and you can modify them based on your needs according:

| Field Name             | Description                                                                                                                                                                                                                                                                                               |
| ---------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| enable\_capture        | Enable switch to capture PCAP of each call.  Default is "yes"                                                                                                                                                                                                                                             |
| enable\_compress       | Enable switch to auto compress PCAP file.  Default is "yes"                                                                                                                                                                                                                                               |
| pcap\_*save\_*&#x64;ay | Number of days to keep pcap in disk.  Default is "7"                                                                                                                                                                                                                                                      |
| pcap\_query\_duration  | The switch record pcap data in a per-minute file basis.  However, it is likely that a call has long duration and its pcap may span across multiple per-minute file.  This variable specify how far ahead the switch will look up for PCAP when a query to look for pcap for a specific call is requested. |
| pcap\_dir              | This is the directory where you want pcap to be stored.  By default, it is stored in {base dir}/dnl\_softswitch/pcap                                                                                                                                                                                      |

```
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cookbook.denovolab.com/data-access/raw-switch-data/pcap-data.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
