tkr@foo:~/ipon$ perl -e 'open $fh, "<", "bar.txt"; $txt = do { local $/; <$fh>; }; $txt =~ s/^Content-Type: application\/ISUP ;version=itu-t.*--Boundary/--Boundary/g; $txt =~ s/--Boundary.*$//g; print $txt' U 2007/10/05 12:26:58.832161 xxx.18.234.14:5060 -> xxx.18.238.2:5060 SIP/2.0 180 Ringing. From: "aki";tag=as508b1a29. To: ;tag=eea1259-13c4-47060394-b296ee66-575d. Call-ID: 7b18b07b06335629699f1d5818e07548@devel.foo.fi. CSeq: 102 INVITE. Via: SIP/2.0/UDP xxx.18.238.2;branch=z9hG4bK570f.7ca86953.0. Via: SIP/2.0/UDP xxx.18.238.15:5060;branch=z9hG4bK68f201e6. Contact: . Record-Route: . Content-Type: multipart/mixed ;boundary="Boundary47060397_b296f9ef_3ecc_bc780ec". Content-Length: 397. . --Boundary47060397_b296f9ef_3ecc_bc780ec. Content-Type: application/SDP. . v=0. o=xxx.18.234.23 1191575887 1191575887 IN IP4 xxx.18.234.23. s=Session SDP. c=IN IP4 xxx.18.234.23. t=0 0. m=audio 11130 RTP/AVP 0. a=rtpmap:0 PCMU/8000. a=ptime:20. . --Boundary47060397_b296f9ef_3ecc_bc780ec. Content-Type: application/ISUP ;version=itu-t. . ,.....4)..9.7.7....