It would be very helpful if you could activate a packet capture on a per-call level assigned as part of an Inbound Route rule. This would make it much easier to catch specific calls. The pcap files could also be delivered via email.
That would require changes to Asterisk itself. Also, Asterisk has a fairly weak concept of a call, and only fully knows which channels formed part of a call after the call ends, but you may only be interested in degenerate cases, so that might not matter.
Moreover, the most important packet is likely to be the initial INVITE, which arrives before the dialplan has control, or a REGISTER, which is totally outside the dialplan.
There is currently no code in Asterisk for writing pcap files, only that to output the packet to the log files.
@david55 The PJSIP logger does actually have supporting for writing out pcap files instead of just log messages. It’s not logging the raw packets but writes its own pcap contents, so even if on the wire stuff is encrypted for example it will still show up in the pcap.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.