> For the complete documentation index, see [llms.txt](https://cookbook.denovolab.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cookbook.denovolab.com/data-access/raw-switch-data/pcap-data.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
