Various GUIDs and other signatures in SIP exist to link branches, transactions, and dialogs, but none that are uniquely generated per packet. The best you're going to be able to do is to compute a checksum, but even that is no guarantee in a REGISTER flow.
So im logging lots of information to Syslog to assist our helpdesk in diagnosing customer issues.
Im seeing LOTS of user agents that re-use the sip Call-ID ( especially in registers ).
What im wanting to be able to do is link a log message ( that I log at some point in my dialplan ) to a specific SIP packet ( viewed from voipmonitor, HOMER, wireshark ).
I cant REALLY see anything in the SIP to uniquely identify a packet, however if kamailio provided the UDP packet checksum in a pseudo variable then we could combine that with the sip call-id to hopefully do what im after.
does anyone else have any ideas about how do what im after ?