├── .gitignore
├── LICENSE
├── README.md
├── config.toml
├── mxvoiptestd
├── __init__.py
├── __main__.py
├── datachannel_test.py
├── sdp_doctor.py
├── static
│ ├── adapter.min.0.15.4.js
│ ├── hello.txt
│ ├── tester.css
│ ├── tester.html
│ ├── tester_abstract.js
│ └── tester_builtin.js
└── webapi.py
├── scss
├── _normalize.scss
├── _skeleton.scss
└── tester.scss
├── setup.cfg
└── setup.py
/.gitignore:
--------------------------------------------------------------------------------
1 | /.idea
2 | .sass-cache
3 | /matrix_voip_tester.egg-info
4 | /mxvoiptestd/__pycache__
5 | /.private
6 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 |
2 | Apache License
3 | Version 2.0, January 2004
4 | http://www.apache.org/licenses/
5 |
6 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7 |
8 | 1. Definitions.
9 |
10 | "License" shall mean the terms and conditions for use, reproduction,
11 | and distribution as defined by Sections 1 through 9 of this document.
12 |
13 | "Licensor" shall mean the copyright owner or entity authorized by
14 | the copyright owner that is granting the License.
15 |
16 | "Legal Entity" shall mean the union of the acting entity and all
17 | other entities that control, are controlled by, or are under common
18 | control with that entity. For the purposes of this definition,
19 | "control" means (i) the power, direct or indirect, to cause the
20 | direction or management of such entity, whether by contract or
21 | otherwise, or (ii) ownership of fifty percent (50%) or more of the
22 | outstanding shares, or (iii) beneficial ownership of such entity.
23 |
24 | "You" (or "Your") shall mean an individual or Legal Entity
25 | exercising permissions granted by this License.
26 |
27 | "Source" form shall mean the preferred form for making modifications,
28 | including but not limited to software source code, documentation
29 | source, and configuration files.
30 |
31 | "Object" form shall mean any form resulting from mechanical
32 | transformation or translation of a Source form, including but
33 | not limited to compiled object code, generated documentation,
34 | and conversions to other media types.
35 |
36 | "Work" shall mean the work of authorship, whether in Source or
37 | Object form, made available under the License, as indicated by a
38 | copyright notice that is included in or attached to the work
39 | (an example is provided in the Appendix below).
40 |
41 | "Derivative Works" shall mean any work, whether in Source or Object
42 | form, that is based on (or derived from) the Work and for which the
43 | editorial revisions, annotations, elaborations, or other modifications
44 | represent, as a whole, an original work of authorship. For the purposes
45 | of this License, Derivative Works shall not include works that remain
46 | separable from, or merely link (or bind by name) to the interfaces of,
47 | the Work and Derivative Works thereof.
48 |
49 | "Contribution" shall mean any work of authorship, including
50 | the original version of the Work and any modifications or additions
51 | to that Work or Derivative Works thereof, that is intentionally
52 | submitted to Licensor for inclusion in the Work by the copyright owner
53 | or by an individual or Legal Entity authorized to submit on behalf of
54 | the copyright owner. For the purposes of this definition, "submitted"
55 | means any form of electronic, verbal, or written communication sent
56 | to the Licensor or its representatives, including but not limited to
57 | communication on electronic mailing lists, source code control systems,
58 | and issue tracking systems that are managed by, or on behalf of, the
59 | Licensor for the purpose of discussing and improving the Work, but
60 | excluding communication that is conspicuously marked or otherwise
61 | designated in writing by the copyright owner as "Not a Contribution."
62 |
63 | "Contributor" shall mean Licensor and any individual or Legal Entity
64 | on behalf of whom a Contribution has been received by Licensor and
65 | subsequently incorporated within the Work.
66 |
67 | 2. Grant of Copyright License. Subject to the terms and conditions of
68 | this License, each Contributor hereby grants to You a perpetual,
69 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70 | copyright license to reproduce, prepare Derivative Works of,
71 | publicly display, publicly perform, sublicense, and distribute the
72 | Work and such Derivative Works in Source or Object form.
73 |
74 | 3. Grant of Patent License. Subject to the terms and conditions of
75 | this License, each Contributor hereby grants to You a perpetual,
76 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77 | (except as stated in this section) patent license to make, have made,
78 | use, offer to sell, sell, import, and otherwise transfer the Work,
79 | where such license applies only to those patent claims licensable
80 | by such Contributor that are necessarily infringed by their
81 | Contribution(s) alone or by combination of their Contribution(s)
82 | with the Work to which such Contribution(s) was submitted. If You
83 | institute patent litigation against any entity (including a
84 | cross-claim or counterclaim in a lawsuit) alleging that the Work
85 | or a Contribution incorporated within the Work constitutes direct
86 | or contributory patent infringement, then any patent licenses
87 | granted to You under this License for that Work shall terminate
88 | as of the date such litigation is filed.
89 |
90 | 4. Redistribution. You may reproduce and distribute copies of the
91 | Work or Derivative Works thereof in any medium, with or without
92 | modifications, and in Source or Object form, provided that You
93 | meet the following conditions:
94 |
95 | (a) You must give any other recipients of the Work or
96 | Derivative Works a copy of this License; and
97 |
98 | (b) You must cause any modified files to carry prominent notices
99 | stating that You changed the files; and
100 |
101 | (c) You must retain, in the Source form of any Derivative Works
102 | that You distribute, all copyright, patent, trademark, and
103 | attribution notices from the Source form of the Work,
104 | excluding those notices that do not pertain to any part of
105 | the Derivative Works; and
106 |
107 | (d) If the Work includes a "NOTICE" text file as part of its
108 | distribution, then any Derivative Works that You distribute must
109 | include a readable copy of the attribution notices contained
110 | within such NOTICE file, excluding those notices that do not
111 | pertain to any part of the Derivative Works, in at least one
112 | of the following places: within a NOTICE text file distributed
113 | as part of the Derivative Works; within the Source form or
114 | documentation, if provided along with the Derivative Works; or,
115 | within a display generated by the Derivative Works, if and
116 | wherever such third-party notices normally appear. The contents
117 | of the NOTICE file are for informational purposes only and
118 | do not modify the License. You may add Your own attribution
119 | notices within Derivative Works that You distribute, alongside
120 | or as an addendum to the NOTICE text from the Work, provided
121 | that such additional attribution notices cannot be construed
122 | as modifying the License.
123 |
124 | You may add Your own copyright statement to Your modifications and
125 | may provide additional or different license terms and conditions
126 | for use, reproduction, or distribution of Your modifications, or
127 | for any such Derivative Works as a whole, provided Your use,
128 | reproduction, and distribution of the Work otherwise complies with
129 | the conditions stated in this License.
130 |
131 | 5. Submission of Contributions. Unless You explicitly state otherwise,
132 | any Contribution intentionally submitted for inclusion in the Work
133 | by You to the Licensor shall be under the terms and conditions of
134 | this License, without any additional terms or conditions.
135 | Notwithstanding the above, nothing herein shall supersede or modify
136 | the terms of any separate license agreement you may have executed
137 | with Licensor regarding such Contributions.
138 |
139 | 6. Trademarks. This License does not grant permission to use the trade
140 | names, trademarks, service marks, or product names of the Licensor,
141 | except as required for reasonable and customary use in describing the
142 | origin of the Work and reproducing the content of the NOTICE file.
143 |
144 | 7. Disclaimer of Warranty. Unless required by applicable law or
145 | agreed to in writing, Licensor provides the Work (and each
146 | Contributor provides its Contributions) on an "AS IS" BASIS,
147 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148 | implied, including, without limitation, any warranties or conditions
149 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150 | PARTICULAR PURPOSE. You are solely responsible for determining the
151 | appropriateness of using or redistributing the Work and assume any
152 | risks associated with Your exercise of permissions under this License.
153 |
154 | 8. Limitation of Liability. In no event and under no legal theory,
155 | whether in tort (including negligence), contract, or otherwise,
156 | unless required by applicable law (such as deliberate and grossly
157 | negligent acts) or agreed to in writing, shall any Contributor be
158 | liable to You for damages, including any direct, indirect, special,
159 | incidental, or consequential damages of any character arising as a
160 | result of this License or out of the use or inability to use the
161 | Work (including but not limited to damages for loss of goodwill,
162 | work stoppage, computer failure or malfunction, or any and all
163 | other commercial damages or losses), even if such Contributor
164 | has been advised of the possibility of such damages.
165 |
166 | 9. Accepting Warranty or Additional Liability. While redistributing
167 | the Work or Derivative Works thereof, You may choose to offer,
168 | and charge a fee for, acceptance of support, warranty, indemnity,
169 | or other liability obligations and/or rights consistent with this
170 | License. However, in accepting such obligations, You may act only
171 | on Your own behalf and on Your sole responsibility, not on behalf
172 | of any other Contributor, and only if You agree to indemnify,
173 | defend, and hold each Contributor harmless for any liability
174 | incurred by, or claims asserted against, such Contributor by reason
175 | of your accepting any such warranty or additional liability.
176 |
177 | END OF TERMS AND CONDITIONS
178 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | This is a work-in-progress VoIP test utility for Matrix.
2 |
3 | There is the opportunity to build on it programatically, but the project also
4 | includes a web frontend that runs in-browser.
5 |
6 | It tests your homeserver's STUN/TURN servers and generates a report and score.
7 |
8 |
9 | ## mxvoiptestd (test daemon)
10 |
11 | ### How it's used
12 |
13 | The user accesses the test utility page in their web browser. (Their web browser
14 | must support WebRTC.)
15 |
16 | The user logs in to an account on their homeserver and their web browser requests
17 | the homeserver's ICE (STUN/TURN) server details.
18 |
19 | The browser contacts the TURN servers and gathers ICE candidates. Once this is
20 | done, the browser offers the candidates to the `mxvoiptestd` server and waits for
21 | an answer.
22 |
23 | `mxvoiptestd` begins gathering its own candidates and answers.
24 |
25 | The browser and the server connect to each other and exchange a greeting over an
26 | `RTCDataChannel`.
27 |
28 | This process is repeated for every TURN URI and in both IPv4 and IPv6 to build up
29 | a report.
30 |
31 |
32 | #### Current scoring system
33 |
34 | **Overall scores for IPv4 and IPv6 support**:
35 |
36 | * Fail: No STUN or TURN support whatsoever.
37 | * Poor: Either only STUN or only TURN.
38 | * Good: STUN and TURN supported over at least one protocol.
39 | * Great: STUN and TURN over both TCP and UDP, both secure and insecure.
40 | * Excellent: In addition to great, there is a secure TURN service over TCP port
41 | 443 (which looks like HTTPS traffic and will likely get through more firewalls).
42 |
43 | Note: The requirement to have insecure transports to get a 'Great' score is
44 | likely to go away.
45 |
46 | **Scores for individual TURN URIs:**
47 |
48 | * Fail: Neither STUN candidates nor (working) TURN candidates found.
49 | * Poor: Either only STUN candidates found, or only (working) TURN candidates found.
50 | * Excellent: Both STUN candidates and TURN candidates found — and the TURN candidate
51 | was tested to work.
52 |
53 | Note: Currently, only unencrypted UDP TURN URIs seem to generate STUN
54 | URIs and thus other TURN URIs fail to achieve Excellent — even on reputable
55 | servers. This is being investigated and may be a bug in the tester.
56 |
57 |
58 | ### Warning
59 |
60 | This utility is not yet finished and is not known to behave or report correctly;
61 | please see the list of issues for points of needed development and investigation.
62 |
63 | Notably, there is doubt about the grades assigned by this tool, so there is not
64 | necessarily anything wrong if you receive *poor* and only *good* scores on some
65 | aspects.
66 |
67 |
68 | ### Thoughts on further directions
69 |
70 | The browser WebRTC API is quite restrictive; e.g. it does not allow changing the
71 | candidates in use (even by attempting to alter the SDP).
72 |
73 | We also can't access any of the information needed to deeply diagnose STUN and
74 | TURN errors.
75 |
76 | Ultimately, I would loved to have taken this further but I think that needs to
77 | go out of the browser.
78 |
79 | (With the user's consent, the TURN credentials could be shared with the server
80 | to do this testing and have the results show up in the report.)
81 |
82 |
83 | ### Notes on deployment
84 |
85 | Install into a venv and run with `hypercorn`:
86 |
87 | `VOIPTEST_CONFIG=/path/to/config.toml hypercorn mxvoiptestd.webapi:app --log-level info --error-logfile -`
88 |
89 | Note that a configuration file is optional — but you will need one if you need
90 | to use a TURN server for your `mxvoiptestd` (such as if `mxvoiptestd` is behind NAT).
91 |
92 |
93 | ## Development instructions
94 |
95 | ### Set up
96 |
97 | You may need some dependencies which can be installed on Debian and Ubuntu with:
98 |
99 | `sudo apt install libavdevice-dev libavfilter-dev libopus-dev libvpx-dev pkg-config`
100 |
101 | These dependencies may be required for `aiortc`, which has instructions for other
102 | operating systems [here](https://github.com/aiortc/aiortc#installing).
103 |
104 | (In some cases, binary releases are available for `aiortc` so you may not need
105 | to install these manually.)
106 |
107 | Create a venv for this project and `pip install -e /path/to/mxvoiptestd` whilst
108 | having the venv activated.
109 |
110 |
111 | ### Compiling SCSS
112 |
113 | ```
114 | scss scss/tester.scss -t compressed > mxvoiptestd/static/tester.css
115 | ```
116 |
117 | Currently, to avoid hassle, the resultant `tester.css` should be committed in
118 | this repository whenever `tester.scss` is updated.
119 |
--------------------------------------------------------------------------------
/config.toml:
--------------------------------------------------------------------------------
1 | [TURN]
2 | # optional, but may be necessary if operating the tester locally for development
3 | uri = "turn:turn.example.org:3478?transport=udp"
4 | username = "example"
5 | password = "secret"
6 |
--------------------------------------------------------------------------------
/mxvoiptestd/__init__.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/matrix-org/voip-tester/c6ec4ff0ef6b9d38d4d7c05e21a8083bd0a5b8b2/mxvoiptestd/__init__.py
--------------------------------------------------------------------------------
/mxvoiptestd/__main__.py:
--------------------------------------------------------------------------------
1 | import logging
2 |
3 | from mxvoiptestd import webapi
4 |
5 | if __name__ == "__main__":
6 | # intended for development. In production, use an ASGI runner.
7 | logging.basicConfig(level=logging.DEBUG, force=True)
8 | logging.warning("Running in debug mode. Do not use in production.")
9 | webapi.app.run(debug=True)
10 |
--------------------------------------------------------------------------------
/mxvoiptestd/datachannel_test.py:
--------------------------------------------------------------------------------
1 | # -*- coding: utf-8 -*-
2 | # Copyright 2019-2020 The Matrix.org Foundation C.I.C.
3 | #
4 | # Licensed under the Apache License, Version 2.0 (the "License");
5 | # you may not use this file except in compliance with the License.
6 | # You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 |
16 | import asyncio
17 | import logging
18 |
19 | from aiortc import RTCSessionDescription, RTCPeerConnection, RTCDataChannel
20 | from aiortc.sdp import SessionDescription
21 |
22 | MAGIC_QUESTION = "Hello? Is this on?"
23 | MAGIC_ANSWER = "Yes; yes, it is! :^)"
24 |
25 | TIMEOUT_TIME = 300
26 |
27 | logger = logging.getLogger(__name__)
28 |
29 |
30 | async def setup_test(connection: RTCPeerConnection, offer) -> RTCSessionDescription:
31 | description = RTCSessionDescription(offer["sdp"], offer["type"])
32 |
33 | session_description = SessionDescription.parse(offer["sdp"])
34 | if len(session_description.media) != 1:
35 | raise ValueError("Only one media channel accepted.")
36 |
37 | media = session_description.media[0]
38 | if len(media.ice_candidates) != 1:
39 | raise ValueError("Only one ICE candidate accepted.")
40 |
41 | if not media.ice_candidates_complete:
42 | raise ValueError("ICE candidates must be completed")
43 |
44 | candidate = media.ice_candidates[0]
45 |
46 | await connection.setRemoteDescription(description)
47 | await connection.setLocalDescription(await connection.createAnswer())
48 |
49 | logger.debug(f"[{candidate}] Beginning test with this candidate…")
50 |
51 | @connection.on("datachannel")
52 | def on_datachannel(channel: RTCDataChannel):
53 | logger.debug(f"[{candidate}] Established an RTCDataChannel")
54 |
55 | @channel.on("message")
56 | def on_message(message):
57 | logger.debug(f"[{candidate}] Received a message")
58 |
59 | if message == MAGIC_QUESTION:
60 | channel.send(MAGIC_ANSWER)
61 | else:
62 | channel.close()
63 | asyncio.ensure_future(connection.close())
64 |
65 | # Make the connection time out
66 | asyncio.get_event_loop().call_later(
67 | TIMEOUT_TIME, asyncio.ensure_future, connection.close()
68 | )
69 |
70 | # this is the answer to return
71 | return connection.localDescription
72 |
--------------------------------------------------------------------------------
/mxvoiptestd/sdp_doctor.py:
--------------------------------------------------------------------------------
1 | # -*- coding: utf-8 -*-
2 | # Copyright 2019-2020 The Matrix.org Foundation C.I.C.
3 | #
4 | # Licensed under the Apache License, Version 2.0 (the "License");
5 | # you may not use this file except in compliance with the License.
6 | # You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 |
16 | from aiortc.sdp import SessionDescription
17 |
18 |
19 | def doctor_sdp(original_sdp, sole_wanted_candidate):
20 | # filter out irrelevant candidates from the SDP directly
21 | session_description = SessionDescription.parse(original_sdp)
22 |
23 | for media in session_description.media:
24 | print("media", media)
25 | # note that this could cause problems with multiple media
26 | # as I guess you should only use each candidate once…
27 | media.ice_candidates = [sole_wanted_candidate]
28 | media.ice_candidates_complete = True
29 |
30 | # remove a=ice-options: to prevent Trickle ICE, as we need to
31 | # generate all the candidates at once as we only get one chance to
32 | # answer over a REST call.
33 | media.ice_options = None
34 |
35 | return str(session_description)
36 |
37 |
38 | def remove_all_candidates(original_sdp):
39 | # filter out all candidates from the SDP directly
40 | session_description = SessionDescription.parse(original_sdp)
41 |
42 | for media in session_description.media:
43 | print("media", media)
44 | media.ice_candidates = []
45 | media.ice_candidates_complete = True
46 |
47 | # remove a=ice-options: to prevent Trickle ICE, as we need to
48 | # generate all the candidates at once as we only get one chance to
49 | # answer over a REST call.
50 | media.ice_options = None
51 |
52 | return str(session_description)
53 |
--------------------------------------------------------------------------------
/mxvoiptestd/static/hello.txt:
--------------------------------------------------------------------------------
1 | Hullo!
--------------------------------------------------------------------------------
/mxvoiptestd/static/tester.css:
--------------------------------------------------------------------------------
1 | /*! normalize.css v3.0.2 | MIT License | git.io/normalize */html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}dfn{font-style:italic}h1{font-size:2em;margin:0.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace, monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0}input[type="number"]::-webkit-inner-spin-button,input[type="number"]::-webkit-outer-spin-button{height:auto}input[type="search"]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid #c0c0c0;margin:0 2px;padding:0.35em 0.625em 0.75em}legend{border:0;padding:0}textarea{overflow:auto}optgroup{font-weight:bold}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}.container{position:relative;width:100%;max-width:960px;margin:0 auto;padding:0 20px;box-sizing:border-box}.column,.columns{width:100%;float:left;box-sizing:border-box}@media (min-width: 400px){.container{width:85%;padding:0}}@media (min-width: 550px){.container{width:80%}.column,.columns{margin-left:4%}.column:first-child,.columns:first-child{margin-left:0}.one.column,.one.columns{width:4.66666666667%}.two.columns{width:13.3333333333%}.three.columns{width:22%}.four.columns{width:30.6666666667%}.five.columns{width:39.3333333333%}.six.columns{width:48%}.seven.columns{width:56.6666666667%}.eight.columns{width:65.3333333333%}.nine.columns{width:74.0%}.ten.columns{width:82.6666666667%}.eleven.columns{width:91.3333333333%}.twelve.columns{width:100%;margin-left:0}.one-third.column{width:30.6666666667%}.two-thirds.column{width:65.3333333333%}.one-half.column{width:48%}.offset-by-one.column,.offset-by-one.columns{margin-left:8.66666666667%}.offset-by-two.column,.offset-by-two.columns{margin-left:17.3333333333%}.offset-by-three.column,.offset-by-three.columns{margin-left:26%}.offset-by-four.column,.offset-by-four.columns{margin-left:34.6666666667%}.offset-by-five.column,.offset-by-five.columns{margin-left:43.3333333333%}.offset-by-six.column,.offset-by-six.columns{margin-left:52%}.offset-by-seven.column,.offset-by-seven.columns{margin-left:60.6666666667%}.offset-by-eight.column,.offset-by-eight.columns{margin-left:69.3333333333%}.offset-by-nine.column,.offset-by-nine.columns{margin-left:78.0%}.offset-by-ten.column,.offset-by-ten.columns{margin-left:86.6666666667%}.offset-by-eleven.column,.offset-by-eleven.columns{margin-left:95.3333333333%}.offset-by-one-third.column,.offset-by-one-third.columns{margin-left:34.6666666667%}.offset-by-two-thirds.column,.offset-by-two-thirds.columns{margin-left:69.3333333333%}.offset-by-one-half.column,.offset-by-one-half.columns{margin-left:52%}}html{font-size:62.5%}body{font-size:1.5em;line-height:1.6;font-weight:400;font-family:"Raleway", "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;color:#222}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:2rem;font-weight:300}h1{font-size:4.0rem;line-height:1.2;letter-spacing:-.1rem}h2{font-size:3.6rem;line-height:1.25;letter-spacing:-.1rem}h3{font-size:3.0rem;line-height:1.3;letter-spacing:-.1rem}h4{font-size:2.4rem;line-height:1.35;letter-spacing:-.08rem}h5{font-size:1.8rem;line-height:1.5;letter-spacing:-.05rem}h6{font-size:1.5rem;line-height:1.6;letter-spacing:0}@media (min-width: 550px){h1{font-size:5.0rem}h2{font-size:4.2rem}h3{font-size:3.6rem}h4{font-size:3.0rem}h5{font-size:2.4rem}h6{font-size:1.5rem}}p{margin-top:0}a{color:#1EAEDB}a:hover{color:#0FA0CE}.button,button,input[type="submit"],input[type="reset"],input[type="button"]{display:inline-block;height:38px;padding:0 30px;color:#555;text-align:center;font-size:11px;font-weight:600;line-height:38px;letter-spacing:.1rem;text-transform:uppercase;text-decoration:none;white-space:nowrap;background-color:transparent;border-radius:4px;border:1px solid #bbb;cursor:pointer;box-sizing:border-box}.button:hover,button:hover,input[type="submit"]:hover,input[type="reset"]:hover,input[type="button"]:hover,.button:focus,button:focus,input[type="submit"]:focus,input[type="reset"]:focus,input[type="button"]:focus{color:#333;border-color:#888;outline:0}.button.button-primary,button.button-primary,input[type="submit"].button-primary,input[type="reset"].button-primary,input[type="button"].button-primary{color:#FFF;background-color:#33C3F0;border-color:#33C3F0}.button.button-primary:hover,button.button-primary:hover,input[type="submit"].button-primary:hover,input[type="reset"].button-primary:hover,input[type="button"].button-primary:hover,.button.button-primary:focus,button.button-primary:focus,input[type="submit"].button-primary:focus,input[type="reset"].button-primary:focus,input[type="button"].button-primary:focus{color:#FFF;background-color:#1EAEDB;border-color:#1EAEDB}input[type="email"],input[type="number"],input[type="search"],input[type="text"],input[type="tel"],input[type="url"],input[type="password"],textarea,select{height:38px;padding:6px 10px;background-color:#fff;border:1px solid #D1D1D1;border-radius:4px;box-shadow:none;box-sizing:border-box}input[type="email"],input[type="number"],input[type="search"],input[type="text"],input[type="tel"],input[type="url"],input[type="password"],textarea{-webkit-appearance:none;-moz-appearance:none;appearance:none}textarea{min-height:65px;padding-top:6px;padding-bottom:6px}input[type="email"]:focus,input[type="number"]:focus,input[type="search"]:focus,input[type="text"]:focus,input[type="tel"]:focus,input[type="url"]:focus,input[type="password"]:focus,textarea:focus,select:focus{border:1px solid #33C3F0;outline:0}label,legend{display:block;margin-bottom:.5rem;font-weight:600}fieldset{padding:0;border-width:0}input[type="checkbox"],input[type="radio"]{display:inline}label>.label-body{display:inline-block;margin-left:.5rem;font-weight:normal}ul{list-style:circle inside}ol{list-style:decimal inside}ol,ul{padding-left:0;margin-top:0}ul ul,ul ol,ol ol,ol ul{margin:1.5rem 0 1.5rem 3rem;font-size:90%}li{margin-bottom:1rem}code{padding:.2rem .5rem;margin:0 .2rem;font-size:90%;white-space:nowrap;background:#F1F1F1;border:1px solid #E1E1E1;border-radius:4px}pre>code{display:block;padding:1rem 1.5rem;white-space:pre}th,td{padding:12px 15px;text-align:left;border-bottom:1px solid #E1E1E1}th:first-child,td:first-child{padding-left:0}th:last-child,td:last-child{padding-right:0}button,.button{margin-bottom:1rem}input,textarea,select,fieldset{margin-bottom:1.5rem}pre,blockquote,dl,figure,table,p,ul,ol,form{margin-bottom:2.5rem}.u-full-width{width:100%;box-sizing:border-box}.u-max-full-width{max-width:100%;box-sizing:border-box}.u-pull-right{float:right}.u-pull-left{float:left}hr{margin-top:3rem;margin-bottom:3.5rem;border-width:0;border-top:1px solid #E1E1E1}.container:after,.row:after,.u-cf{content:"";display:table;clear:both}html,body{margin:0;padding:0;background:#203040;color:#eee;font-family:sans-serif}hr{background-color:#d5d5d5}.container{margin-top:2em}input{background-color:#222 !important}#progresslist li{list-style-type:none}#progresslist progress{width:10em;height:1em;display:inline;margin-right:1em}.report-node{display:flex;flex-direction:row;align-items:center;margin:1em;background-color:#456}.report-node.expandable{cursor:pointer}.report-node.expandable::before{padding:1em;content:'+'}.report-node.expandable.expanded::before{content:'−'}.report-node .title{flex:1 0;margin:1em}.report-node .subtitle{margin:1em}.verdict{padding:1em}.verdict.fail{background-color:#bb0000}.verdict.poor{background-color:#bb5e00}.verdict.good{background-color:#bbbb00}.verdict.great{background-color:#9ebb00}.verdict.excellent{background-color:#3dbb00}.report-subtree{margin-left:1em}.report-info-node{margin:1em;margin-right:0}
2 |
--------------------------------------------------------------------------------
/mxvoiptestd/static/tester.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |