#!/usr/bin/perl
use strict;
my $bdata = "";
use MIME::Base64;
while(<>)
{
if (/begin-base64 644 clf_ws_record/ .. /-- ==== --/)
{
if ( m/^\s*[^\s]+\s*$/)
{
$bdata = $bdata . $_;
}
}
}
print decode_base64($bdata);
Salgueiro, et al. Informational [Page 5]
RFC 7355 WebSocket Transport in SIP CLF September 2014
5.2. SIP over Secure WebSocket (WSS)
The following example represents a SIP INVITE request sent over a
secure WebSocket connection (i.e., WebSocket over TLS [RFC5246]).
For the sake of brevity, the SDP body is omitted.
INVITE sip:bob@example.com SIP/2.0
Via: SIP/2.0/WSS df7jal23ls0d.invalid;branch=z9hG4bK56sdasks
From: sip:alice@example.com;tag=asdyka899
To: sip:bob@example.com
Call-ID: asidkj3ss
CSeq: 1 INVITE
Max-Forwards: 70
Date: Thu, 6 Feb 2014 15:02:03 GMT
Supported: path, outbound, gruu
Route:
Contact:
Content-Type: application/sdp
Content-Length: 439
Shown below is approximately how this message would appear as a
single record in a SIP CLF logging file if encoded according to the
syntax described in [RFC6873]. Due to RFC conventions, this log
entry has been split into five lines, instead of the two lines that
actually appear in a log file; and the tab characters have been
padded out using spaces to simulate their appearance in a text
terminal.
A0000E8,0053005C005E00720081009300A700A900BF00C900D300DF00E8
1328821153.010 RORWE 1 INVITE - sip:bob@example.com
192.0.2.10:443 192.0.2.200:56485 sip:bob@example.com -
sip:alice@example.com:5060 asdyka899 asidkj3ss S1781761-88
C67651-11
A bit-exact version of the actual log entry is provided here, Base64
encoded.
begin-base64 644 clf_ws_record
QTAwMDBFOCwwMDUzMDA1QzAwNUUwMDcyMDA4MTAwOTMwMEE3MDBBOTAwQkYwMEM5MDBE
MzAwREYwMEU4CjEzMjg4MjExNTMuMDEwCVJPUldVCTEgSU5WSVRFCS0Jc2lwOmJvYkBl
eGFtcGxlLmNvbQkxOTIuMC4yLjEwOjQ0MwkxOTIuMC4yLjIwMDo1NjQ4NQlzaXA6Ym9i
QGV4YW1wbGUuY29tCS0Jc2lwOmFsaWNlQGV4YW1wbGUuY29tCWFzZHlrYTg5OQlhc2lk
a2ozc3MJUzE3ODE3NjEtODgJQzY3NjUxLTExCgo=
====
Salgueiro, et al. Informational [Page 6]
RFC 7355 WebSocket Transport in SIP CLF September 2014
6. Security Considerations
This document merely adds a new "Transport Flag" value for the
WebSocket protocol. This value may be set in a SIP CLF record, but
its use does not intrinsically introduce any new security
considerations. When logging protocol information, such as with SIP
CLF, there are a myriad of security, privacy, and data protection
issues to consider. These are exhaustively described in RFC 6872
[RFC6872] and RFC 6873 [RFC6873].
Any security considerations specific to the WebSocket protocol or its
application as a transport for SIP are detailed in the relevant
specifications (the WebSocket protocol [RFC6455] and SIP over
WebSockets [RFC7118]) and are considered outside the scope of this
document.
7. IANA Considerations
This document defines a new value ('W') for SIP CLF "Transport Flag".
IANA has registered this value in the "SIP CLF Transport Flag Values"
registry, as shown in Table 1 below.
+-------+--------------------+--------------------+
| Value | Transport Protocol | Reference |
+-------+--------------------+--------------------+
| W | WebSocket | RFC 7118, RFC 7355 |
+-------+--------------------+--------------------+
Table 1: IANA-Registered SIP CLF Transport Flag
8. Acknowledgements
The authors would like to thank Vijay Gurbani for shepherding this
document and Area Director Richard Barnes for his sponsorship. This
work benefitted from the thorough review and constructive comments of
Richard Barnes, Barry Leiba, Benoit Claise, Pete Resnick, Stephen
Farrel, and Vijay Gurbani.
Salgueiro, et al. Informational [Page 7]
RFC 7355 WebSocket Transport in SIP CLF September 2014
9. References
9.1. Normative References
[RFC2119] Bradner, S., "Key words for use in RFCs to Indicate
Requirement Levels", BCP 14, RFC 2119, March 1997.
[RFC6455] Fette, I. and A. Melnikov, "The WebSocket Protocol", RFC
6455, December 2011.
[RFC6872] Gurbani, V., Burger, E., Anjali, T., Abdelnur, H., and O.
Festor, "The Common Log Format (CLF) for the Session
Initiation Protocol (SIP): Framework and Information
Model", RFC 6872, February 2013.
[RFC6873] Salgueiro, G., Gurbani, V., and A. Roach, "Format for the
Session Initiation Protocol (SIP) Common Log Format
(CLF)", RFC 6873, February 2013.
[RFC7118] Baz Castillo, I., Millan Villegas, J., and V. Pascual,
"The WebSocket Protocol as a Transport for the Session
Initiation Protocol (SIP)", RFC 7118, January 2014.
9.2. Informative References
[RFC4475] Sparks, R., Hawrylyshen, A., Johnston, A., Rosenberg, J.,
and H. Schulzrinne, "Session Initiation Protocol (SIP)
Torture Test Messages", RFC 4475, May 2006.
[RFC4566] Handley, M., Jacobson, V., and C. Perkins, "SDP: Session
Description Protocol", RFC 4566, July 2006.
[RFC4648] Josefsson, S., "The Base16, Base32, and Base64 Data
Encodings", RFC 4648, October 2006.
[RFC5246] Dierks, T. and E. Rescorla, "The Transport Layer Security
(TLS) Protocol Version 1.2", RFC 5246, August 2008.
[RFC7230] Fielding, R. and J. Reschke, "Hypertext Transfer Protocol
(HTTP/1.1): Message Syntax and Routing", RFC 7230, June
2014.
Salgueiro, et al. Informational [Page 8]
RFC 7355 WebSocket Transport in SIP CLF September 2014
Authors' Addresses
Gonzalo Salgueiro
Cisco Systems, Inc.
7200-12 Kit Creek Road
Research Triangle Park, NC 27709
US
EMail: gsalguei@cisco.com
Victor Pascual
Quobis
EMail: victor.pascual@quobis.com
Anton Roman
Quobis
EMail: anton.roman@quobis.com
Sergio Garcia Ramos
Quobis
EMail: sergio.garcia@quobis.com
Salgueiro, et al. Informational [Page 9]
gemini://gemini.bortzmeyer.org/rfc-mirror/rfc7355.txt -- Leo's gemini proxy
-- Connecting to gemini.bortzmeyer.org:1965...
-- Connected
-- Sending request
-- Meta line: 20 text/plain
-- Response ended
-- Page fetched on Mon May 6 12:03:38 2024