[SIPForum-discussion] SIP Parser
Gonzalo Gasca
gogasca at cisco.com
Thu May 6 06:05:26 UTC 2010
Hi all,
I'm looking for a SIP parser which help me reading SIP messages I have in my
log file:
My log file is in this form:
XXXX: Date Year/Month/Day hh:mm:ss
Direction TX: | RX:
Method INVITE, TRYING, RINGING etc
Body..
XXXX: Date
Direction
Method
Body..
XXXX: Date
Direction
Method
Body..
::::
Looking for some program or library to use to either create a Perl or any
dirty program which help me parsing the call by Call-ID, Method, Direction
etc or any advise will be appreciated
Thanks
0994: 2010/03/06 15:52:26
RX:
INVITE sip:4002 at 172.16.154.15:5060 SIP/2.0
Date: Sat, 06 Mar 2010 21:00:04 GMT
Call-Info:
<sip:172.16.154.9:5061>;method="NOTIFY;Event=telephone-event;Duration=500"
Allow: INVITE, OPTIONS, INFO, BYE, CANCEL, ACK, PRACK, UPDATE, REFER,
SUBSCRIBE, NOTIFY
From: "CTMS Cluster 2"
<sip:3004 at 172.16.154.9>;tag=75c99fa6-2fe2-4964-9904-073e83f2c91b-63071170
Allow-Events: presence, kpml
P-Asserted-Identity: "CTMS Cluster 2" <sip:3004 at 172.16.154.9>
Supported: timer,resource-priority,replaces
Supported: X-cisco-srtp-fallback
Supported: Geolocation
Min-SE: 1800
Remote-Party-ID: "CTMS Cluster 2"
<sip:3004 at 172.16.154.9>;party=calling;screen=yes;privacy=off
Content-Length: 0
User-Agent: Cisco-CUCM7.1
To: <sip:4002 at 172.16.154.15>
Contact: <sip:3004 at 172.16.154.9:5061;transport=tls>;video;audio
Expires: 180
Call-ID: 3b67a780-b921c254-4cf-99a10ac at 172.16.154.9
Via: SIP/2.0/TLS 172.16.154.9:5061;branch=z9hG4bKa2d288ab093
CSeq: 101 INVITE
Session-Expires: 1800
Max-Forwards: 69
0663: 2010/03/06 15:52:26
TX:
SIP/2.0 100 Trying
Via: SIP/2.0/TLS 172.16.154.9:5061;branch=z9hG4bKa2d288ab093
From: "CTMS Cluster 2"
<sip:3004 at 172.16.154.9>;tag=75c99fa6-2fe2-4964-9904-073e83f2c91b-63071170
To: <sip:4002 at 172.16.154.15>
Call-ID: 3b67a780-b921c254-4cf-99a10ac at 172.16.154.9
Date: Sat, 06 Mar 2010 20:52:26 GMT
CSeq: 101 INVITE
Server: Cisco-Telepresence-Multipoint-Switch-1.0
Contact: <sip:4000 at 172.16.154.15:5060;transport=tls>
Allow:
ACK,BYE,CANCEL,INVITE,NOTIFY,OPTIONS,REFER,REGISTER,UPDATE,INFO,SUBSCRIBE
Remote-Party-ID: "CTMS-CL2-A"
<sip:4002 at 172.16.154.15>;party=called;id-type=subscriber;privacy=off;screen=
yes
Allow-Events: kpml,dialog
Content-Length: 0
More information about the discussion
mailing list