asterisk / asterisk-feature-requests

A place to submit feature and improvement requests for the Asterisk project. Contains no code.
2 stars 1 forks source link

[bug]: pjsip set logger pcap produces a capture file with local IP set to 0.0.0.0 and both MAC set to 00:00:00:00:00:00 #49

Open oza4h07 opened 1 month ago

oza4h07 commented 1 month ago

Severity

Trivial

Versions

20.9

Components/Modules

logger

Operating Environment

Debian 11

Frequency of Occurrence

Constant

Issue Description

I'm discovering pjsip set logger pcap feature. On a multi-homed host, local IP is set to 0.0.0.0 while local and remote MAC addresses are set to 00:00:00:00:00:00. The SIP message content seems OK. I would expect from a capture file to exactly reflect what is sent over the wire so that the logged content can be relied on when debugging is needed. I can privately provide one such pcap file.

Relevant log output

No response

Asterisk Issue Guidelines

jcolp commented 1 month ago

The pcap functionality constructs a pcap file with information from the application layer for convenience (for example for TLS it would not be encrypted). It's not a wire capture, and will never show precisely what goes out over the wire. It is most useful for the SIP packet contents and the destination address.