Which part giving BYE/CANCEL sip response

Giving the following example using Wireshark

Is there any possibility of getting the caller number, time of day (call date/time) and from which part (ip address) the BYE/CANCEL is coming from ?

Using any asterisk functions or agi script .

In the giving example the values which I’m trying to retrieve are :

  1. date 2023-05-06 10:16:19
  2. My provider ip
  3. From part in the second image which is like <sip:number@providerdomain/ip