It is a bit more ‘SIP feature specific’ than tcpdump.
Each call creates a new file. You can include RTP in the file if desired.
Both pcapsipdump and tcpdump capture packets. You will need to ‘format’ the packets using tcpdump, sngrep, wireshark, etc, to fulfill your request.
You could also configure Asterisk to log the packets it sees and sends.
Note that packet capture programs see incoming packets before iptables and IIRC see outbound packets after iptables. Thus, they may see things that never make it to/from Asterisk and your endpoint.
That would be too late, as there are important parts of SIP (possibly the most
important) which cause the dialplan to be executed, and if you start capturing
after the diaplan executes, you miss those.
If you want SIP captured whenever a call happens, Homer would be the way to go.
With a homer setup, you configure Asterisk to forward all signalling to the homer server. This solution also works for encrypted traffic (Eg. sips and WebRTC that runs over HTTPS), while everything that just captures packets on the network level, will NEVER be able to save the encrypted signalling.