[rtcweb] Script to extract the SDP from draft-ietf-rtcweb-sdp-08

Nils Ohlmeier <nohlmeier@mozilla.com> Wed, 15 November 2017 10:29 UTC

Return-Path: <nohlmeier@mozilla.com>
X-Original-To: rtcweb@ietfa.amsl.com
Delivered-To: rtcweb@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 93E181294DC for <rtcweb@ietfa.amsl.com>; Wed, 15 Nov 2017 02:29:47 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level:
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=mozilla.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rcVaxCth1XaQ for <rtcweb@ietfa.amsl.com>; Wed, 15 Nov 2017 02:29:45 -0800 (PST)
Received: from mail-pf0-x22d.google.com (mail-pf0-x22d.google.com [IPv6:2607:f8b0:400e:c00::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 88665129447 for <rtcweb@ietf.org>; Wed, 15 Nov 2017 02:29:45 -0800 (PST)
Received: by mail-pf0-x22d.google.com with SMTP id i15so6396929pfa.3 for <rtcweb@ietf.org>; Wed, 15 Nov 2017 02:29:45 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mozilla.com; s=google; h=from:mime-version:subject:message-id:date:cc:to; bh=ttq6gnx/SwBoLcjF0nx83nkz/Pq9z6HF+oO/nbJbplI=; b=WYlL6+KX9T7Xv7x46O31itnAygzVC0gCDgN+UWYrQhOvV5kL6pPbxzs3oCN6vzfB1b +3T1UMCR2v0LtnAdTzzTIlYc729tThkAFeNwoQC/N21UCn8Skl+npUlNanORQanwf8tW bfDMGICR36aU7edypTliy4NOTSFalTTOMz6AE=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:message-id:date:cc:to; bh=ttq6gnx/SwBoLcjF0nx83nkz/Pq9z6HF+oO/nbJbplI=; b=rtc3MMfOyqtUsImaqukZEczhkwX31l8BoR+BHjmT+PbUlorkjW8tbnPpTXef+qvriG s9ByM4jTuCe/gz/tOxfOxQsyaYCEsLt6XXTZulKcGmjFpXzxabpxWtYuHCB0gQvZiKA3 XsijZj7cHzTO1dSJaWkm4YFS7+r6CvCej6mgpIxcVMeM5B+IF1Sp6Sald1vUJqxqeQDI Pjf5wa6sgSJvsGs6x/JND39AWYuwGCbikU09Hj4xiNp08NxIezQGgZ6VJ3WxUAH4QzFB cJn6CSk7GPmV12OtpARGTiaDqRzkU7zeBPvb+UhMUcRlWqGrVzeb7pUZop4Tsmcyct1A w/Vw==
X-Gm-Message-State: AJaThX5OUk3s8NSWokAinx54mdYXVoU9DNCxnQrjVNZr5yTcUQYkiEaO q7JoxZEw1vRFQ2pCpToIfSn7TT6PcGo=
X-Google-Smtp-Source: AGs4zMZAdsLlpwnK4DrmDN4B3zYVbLmd9vaG1rPxBWhnYU4sgxGkUZpdWKu4J7pidKAHTynA2ZvWOA==
X-Received: by 10.159.252.138 with SMTP id bb10mr4966837plb.163.1510741784629; Wed, 15 Nov 2017 02:29:44 -0800 (PST)
Received: from ?IPv6:2001:67c:370:128:1d7b:1f1d:98a4:b846? ([2001:67c:370:128:1d7b:1f1d:98a4:b846]) by smtp.gmail.com with ESMTPSA id r16sm33536708pgt.72.2017.11.15.02.29.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Nov 2017 02:29:43 -0800 (PST)
From: Nils Ohlmeier <nohlmeier@mozilla.com>
Content-Type: multipart/signed; boundary="Apple-Mail=_4A1A1582-E31B-488F-99CD-2806D859CF0D"; protocol="application/pgp-signature"; micalg="pgp-sha512"
Mime-Version: 1.0 (Mac OS X Mail 11.1 \(3445.4.7\))
Message-Id: <5F4CA14A-A894-4EA4-B402-AB1B655E26CA@mozilla.com>
Date: Wed, 15 Nov 2017 18:26:30 +0800
Cc: draft-ietf-rtcweb-sdp@ietf.org, Harald Alvestrand <harald@alvestrand.no>
To: rtcweb@ietf.org
X-Mailer: Apple Mail (2.3445.4.7)
Archived-At: <https://mailarchive.ietf.org/arch/msg/rtcweb/1LVlh4szK6iFQcs5tDdabaDIiLI>
Subject: [rtcweb] Script to extract the SDP from draft-ietf-rtcweb-sdp-08
X-BeenThere: rtcweb@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: Real-Time Communication in WEB-browsers working group list <rtcweb.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/rtcweb>, <mailto:rtcweb-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/rtcweb/>
List-Post: <mailto:rtcweb@ietf.org>
List-Help: <mailto:rtcweb-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/rtcweb>, <mailto:rtcweb-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 15 Nov 2017 10:29:47 -0000

Hello,

I quickly created a python script to extract the SDP from draft-ietf-rtcweb-sdp-08.
You can find it here https://github.com/nils-ohlmeier/sdpextractor <https://github.com/nils-ohlmeier/sdpextractor>

But I realized that the text version of the draft actually contains spaces in places where they don’t belong.
I believe these are caused by lines breaks in the XML source of the draft.

Best regards
  Nils Ohlmeier