We are developing CTI applications where we need SIP data from PBX such as SourceIP,Username,Destination IP,TAG,VIA,Contact,CALL-ID,C-Sequence etc for each of the SIP packets such as REGISTER,BYE,INVITE,ACK,SUBSCRIBE,NOTIFY etc.
e.g Wrieshark displays SIP packets for activities going on SIP port in the below mentioned format:
SIP Packet as displayed on wireshark*************
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.3.35:5060;branch=z9hG4bK10e203f8;rport=5060
CSeq: 102 NOTIFY
User-Agent: X-Lite release 1003l stamp 30942
After receiving these SIP Packets from Asterisk,we can parse that data according to our requirements.
Is there any text/data file or database where asterisk stores all the information in above format?
If we need to fetch this data at realtime from the port than how can we do that?