module-develop-kit 0.5.10 → 0.5.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commonjs-virtual-dir/Config.js +4 -0
- package/dist/commonjs-virtual-dir/Constants.js +5 -0
- package/dist/commonjs-virtual-dir/DTMF.js +4 -0
- package/dist/commonjs-virtual-dir/JsSIP.js +5 -0
- package/dist/commonjs-virtual-dir/Parser2.js +4 -0
- package/dist/commonjs-virtual-dir/Socket.js +4 -0
- package/dist/commonjs-virtual-dir/Utils.js +4 -0
- package/dist/commonjs-virtual-dir/___vite-browser-external.js +6 -0
- package/dist/commonjs-virtual-dir/__vite-browser-external.js +4 -0
- package/dist/commonjs-virtual-dir/_commonjs-dynamic-modules.js +6 -0
- package/dist/commonjs-virtual-dir/_commonjsHelpers.js +33 -0
- package/dist/commonjs-virtual-dir/_virtual_mobile-compatibility-detection.js +4 -0
- package/dist/commonjs-virtual-dir/_virtual_pc-compatibility-detection.js +4 -0
- package/dist/commonjs-virtual-dir/aes.js +4 -0
- package/dist/commonjs-virtual-dir/blowfish.js +4 -0
- package/dist/commonjs-virtual-dir/browser.js +4 -0
- package/dist/commonjs-virtual-dir/cipher-core.js +4 -0
- package/dist/commonjs-virtual-dir/core.js +4 -0
- package/dist/commonjs-virtual-dir/enc-base64.js +4 -0
- package/dist/commonjs-virtual-dir/enc-base64url.js +4 -0
- package/dist/commonjs-virtual-dir/enc-utf16.js +4 -0
- package/dist/commonjs-virtual-dir/events.js +4 -0
- package/dist/commonjs-virtual-dir/evpkdf.js +4 -0
- package/dist/commonjs-virtual-dir/format-hex.js +4 -0
- package/dist/commonjs-virtual-dir/grammar.js +4 -0
- package/dist/commonjs-virtual-dir/hmac.js +4 -0
- package/dist/commonjs-virtual-dir/index.js +5 -0
- package/dist/commonjs-virtual-dir/index2.js +5 -0
- package/dist/commonjs-virtual-dir/index3.js +7 -0
- package/dist/commonjs-virtual-dir/index4.js +7 -0
- package/dist/commonjs-virtual-dir/index5.js +4 -0
- package/dist/commonjs-virtual-dir/index6.js +4 -0
- package/dist/commonjs-virtual-dir/index7.js +4 -0
- package/dist/commonjs-virtual-dir/index8.js +4 -0
- package/dist/commonjs-virtual-dir/lib-typedarrays.js +4 -0
- package/dist/commonjs-virtual-dir/md5.js +4 -0
- package/dist/commonjs-virtual-dir/mode-cfb.js +4 -0
- package/dist/commonjs-virtual-dir/mode-ctr-gladman.js +4 -0
- package/dist/commonjs-virtual-dir/mode-ctr.js +4 -0
- package/dist/commonjs-virtual-dir/mode-ecb.js +4 -0
- package/dist/commonjs-virtual-dir/mode-ofb.js +4 -0
- package/dist/commonjs-virtual-dir/pad-ansix923.js +4 -0
- package/dist/commonjs-virtual-dir/pad-iso10126.js +4 -0
- package/dist/commonjs-virtual-dir/pad-iso97971.js +4 -0
- package/dist/commonjs-virtual-dir/pad-nopadding.js +4 -0
- package/dist/commonjs-virtual-dir/pad-zeropadding.js +4 -0
- package/dist/commonjs-virtual-dir/parser.js +4 -0
- package/dist/commonjs-virtual-dir/pbkdf2.js +4 -0
- package/dist/commonjs-virtual-dir/rabbit-legacy.js +4 -0
- package/dist/commonjs-virtual-dir/rabbit.js +4 -0
- package/dist/commonjs-virtual-dir/rc4.js +4 -0
- package/dist/commonjs-virtual-dir/ripemd160.js +4 -0
- package/dist/commonjs-virtual-dir/sha1.js +4 -0
- package/dist/commonjs-virtual-dir/sha224.js +4 -0
- package/dist/commonjs-virtual-dir/sha256.js +4 -0
- package/dist/commonjs-virtual-dir/sha3.js +4 -0
- package/dist/commonjs-virtual-dir/sha384.js +4 -0
- package/dist/commonjs-virtual-dir/sha512.js +4 -0
- package/dist/commonjs-virtual-dir/tripledes.js +4 -0
- package/dist/commonjs-virtual-dir/x64-core.js +4 -0
- package/dist/main.js +25 -0
- package/dist/src/outside-call/CallManagement.js +249 -0
- package/dist/src/outside-call/constants.js +42 -0
- package/dist/src/outside-call/index.js +74 -0
- package/dist/src/outside-call/utils.js +50 -0
- package/dist/src/shield/crypto.js +28 -0
- package/dist/src/shield/index.js +59 -0
- package/dist/src/shield/no-debugger.js +26 -0
- package/dist/src/utils/eventBus.js +59 -0
- package/dist/src/vite-plugins/getCompatibilityPlugins.js +13 -0
- package/dist/src/vite-plugins/vitePluginCompatibilityDetection.js +28 -0
- package/dist/vendor/base64-js/index.js +52 -0
- package/dist/vendor/crypto-js/aes.js +69 -0
- package/dist/vendor/crypto-js/blowfish.js +1131 -0
- package/dist/vendor/crypto-js/cipher-core.js +544 -0
- package/dist/vendor/crypto-js/core.js +508 -0
- package/dist/vendor/crypto-js/enc-base64.js +80 -0
- package/dist/vendor/crypto-js/enc-base64url.js +87 -0
- package/dist/vendor/crypto-js/enc-utf16.js +99 -0
- package/dist/vendor/crypto-js/evpkdf.js +70 -0
- package/dist/vendor/crypto-js/format-hex.js +53 -0
- package/dist/vendor/crypto-js/hmac.js +83 -0
- package/dist/vendor/crypto-js/index.js +49 -0
- package/dist/vendor/crypto-js/lib-typedarrays.js +27 -0
- package/dist/vendor/crypto-js/md5.js +71 -0
- package/dist/vendor/crypto-js/mode-cfb.js +36 -0
- package/dist/vendor/crypto-js/mode-ctr-gladman.js +45 -0
- package/dist/vendor/crypto-js/mode-ctr.js +28 -0
- package/dist/vendor/crypto-js/mode-ecb.js +27 -0
- package/dist/vendor/crypto-js/mode-ofb.js +26 -0
- package/dist/vendor/crypto-js/pad-ansix923.js +25 -0
- package/dist/vendor/crypto-js/pad-iso10126.js +25 -0
- package/dist/vendor/crypto-js/pad-iso97971.js +23 -0
- package/dist/vendor/crypto-js/pad-nopadding.js +21 -0
- package/dist/vendor/crypto-js/pad-zeropadding.js +28 -0
- package/dist/vendor/crypto-js/pbkdf2.js +74 -0
- package/dist/vendor/crypto-js/rabbit-legacy.js +73 -0
- package/dist/vendor/crypto-js/rabbit.js +75 -0
- package/dist/vendor/crypto-js/rc4.js +63 -0
- package/dist/vendor/crypto-js/ripemd160.js +398 -0
- package/dist/vendor/crypto-js/sha1.js +49 -0
- package/dist/vendor/crypto-js/sha224.js +36 -0
- package/dist/vendor/crypto-js/sha256.js +57 -0
- package/dist/vendor/crypto-js/sha3.js +116 -0
- package/dist/vendor/crypto-js/sha384.js +37 -0
- package/dist/vendor/crypto-js/sha512.js +147 -0
- package/dist/vendor/crypto-js/tripledes.js +729 -0
- package/dist/vendor/crypto-js/x64-core.js +235 -0
- package/dist/vendor/debug/src/browser.js +146 -0
- package/dist/vendor/debug/src/common.js +97 -0
- package/dist/vendor/events/events.js +216 -0
- package/dist/vendor/gm-crypt/index.js +10 -0
- package/dist/vendor/gm-crypt/src/crypt.js +60 -0
- package/dist/vendor/gm-crypt/src/sm4.js +513 -0
- package/dist/vendor/jsbn/index.js +714 -0
- package/dist/vendor/jssip/lib/Constants.js +180 -0
- package/dist/vendor/jssip/lib-es5/Config.js +263 -0
- package/dist/vendor/jssip/lib-es5/Constants.js +180 -0
- package/dist/vendor/jssip/lib-es5/Dialog/RequestSender.js +84 -0
- package/dist/vendor/jssip/lib-es5/Dialog.js +179 -0
- package/dist/vendor/jssip/lib-es5/DigestAuthentication.js +93 -0
- package/dist/vendor/jssip/lib-es5/Exceptions.js +131 -0
- package/dist/vendor/jssip/lib-es5/Grammar.js +1937 -0
- package/dist/vendor/jssip/lib-es5/JsSIP.js +37 -0
- package/dist/vendor/jssip/lib-es5/Logger.js +44 -0
- package/dist/vendor/jssip/lib-es5/Message.js +229 -0
- package/dist/vendor/jssip/lib-es5/NameAddrHeader.js +107 -0
- package/dist/vendor/jssip/lib-es5/Options.js +227 -0
- package/dist/vendor/jssip/lib-es5/Parser.js +202 -0
- package/dist/vendor/jssip/lib-es5/RTCSession/DTMF.js +175 -0
- package/dist/vendor/jssip/lib-es5/RTCSession/Info.js +149 -0
- package/dist/vendor/jssip/lib-es5/RTCSession/ReferNotifier.js +52 -0
- package/dist/vendor/jssip/lib-es5/RTCSession/ReferSubscriber.js +187 -0
- package/dist/vendor/jssip/lib-es5/RTCSession.js +1799 -0
- package/dist/vendor/jssip/lib-es5/Registrator.js +194 -0
- package/dist/vendor/jssip/lib-es5/RequestSender.js +99 -0
- package/dist/vendor/jssip/lib-es5/SIPMessage.js +623 -0
- package/dist/vendor/jssip/lib-es5/Socket.js +38 -0
- package/dist/vendor/jssip/lib-es5/Timers.js +25 -0
- package/dist/vendor/jssip/lib-es5/Transactions.js +481 -0
- package/dist/vendor/jssip/lib-es5/Transport.js +220 -0
- package/dist/vendor/jssip/lib-es5/UA.js +663 -0
- package/dist/vendor/jssip/lib-es5/URI.js +221 -0
- package/dist/vendor/jssip/lib-es5/Utils.js +263 -0
- package/dist/vendor/jssip/lib-es5/WebSocketInterface.js +120 -0
- package/dist/vendor/jssip/lib-es5/sanityCheck.js +170 -0
- package/dist/vendor/jssip/package.json.js +9 -0
- package/dist/vendor/ms/index.js +85 -0
- package/dist/vendor/sdp-transform/lib/grammar.js +449 -0
- package/dist/vendor/sdp-transform/lib/index.js +14 -0
- package/dist/vendor/sdp-transform/lib/parser.js +70 -0
- package/dist/vendor/sdp-transform/lib/writer.js +74 -0
- package/dist/vendor/sm-crypto/src/index.js +14 -0
- package/dist/vendor/sm-crypto/src/sm2/asn1.js +86 -0
- package/dist/vendor/sm-crypto/src/sm2/ec.js +205 -0
- package/dist/vendor/sm-crypto/src/sm2/index.js +114 -0
- package/dist/vendor/sm-crypto/src/sm2/sm3.js +71 -0
- package/dist/vendor/sm-crypto/src/sm2/utils.js +95 -0
- package/dist/vendor/sm-crypto/src/sm3/index.js +50 -0
- package/dist/vendor/sm-crypto/src/sm4/index.js +408 -0
- package/dist/vite-plugins/index.d.ts +1 -1
- package/dist/vite-plugins/index.js +6 -0
- package/package.json +6 -5
- package/dist/index.es.js +0 -18159
- package/dist/vite-plugins/index.es.js +0 -33
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
import { __require as P } from "./Constants.js";
|
|
2
|
+
import { __require as b } from "./Utils.js";
|
|
3
|
+
import { __require as O } from "./Grammar.js";
|
|
4
|
+
var c, p;
|
|
5
|
+
function A() {
|
|
6
|
+
if (p) return c;
|
|
7
|
+
p = 1;
|
|
8
|
+
function m(n, t) {
|
|
9
|
+
var e;
|
|
10
|
+
if (typeof Symbol > "u" || n[Symbol.iterator] == null) {
|
|
11
|
+
if (Array.isArray(n) || (e = d(n)) || t) {
|
|
12
|
+
e && (n = e);
|
|
13
|
+
var r = 0, o = function() {
|
|
14
|
+
};
|
|
15
|
+
return { s: o, n: function() {
|
|
16
|
+
return r >= n.length ? { done: !0 } : { done: !1, value: n[r++] };
|
|
17
|
+
}, e: function(f) {
|
|
18
|
+
throw f;
|
|
19
|
+
}, f: o };
|
|
20
|
+
}
|
|
21
|
+
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
22
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
23
|
+
}
|
|
24
|
+
var i = !0, s = !1, u;
|
|
25
|
+
return { s: function() {
|
|
26
|
+
e = n[Symbol.iterator]();
|
|
27
|
+
}, n: function() {
|
|
28
|
+
var f = e.next();
|
|
29
|
+
return i = f.done, f;
|
|
30
|
+
}, e: function(f) {
|
|
31
|
+
s = !0, u = f;
|
|
32
|
+
}, f: function() {
|
|
33
|
+
try {
|
|
34
|
+
!i && e.return != null && e.return();
|
|
35
|
+
} finally {
|
|
36
|
+
if (s) throw u;
|
|
37
|
+
}
|
|
38
|
+
} };
|
|
39
|
+
}
|
|
40
|
+
function d(n, t) {
|
|
41
|
+
if (n) {
|
|
42
|
+
if (typeof n == "string") return l(n, t);
|
|
43
|
+
var e = Object.prototype.toString.call(n).slice(8, -1);
|
|
44
|
+
if (e === "Object" && n.constructor && (e = n.constructor.name), e === "Map" || e === "Set") return Array.from(n);
|
|
45
|
+
if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)) return l(n, t);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
function l(n, t) {
|
|
49
|
+
(t == null || t > n.length) && (t = n.length);
|
|
50
|
+
for (var e = 0, r = new Array(t); e < t; e++)
|
|
51
|
+
r[e] = n[e];
|
|
52
|
+
return r;
|
|
53
|
+
}
|
|
54
|
+
function v(n, t) {
|
|
55
|
+
if (!(n instanceof t))
|
|
56
|
+
throw new TypeError("Cannot call a class as a function");
|
|
57
|
+
}
|
|
58
|
+
function _(n, t) {
|
|
59
|
+
for (var e = 0; e < t.length; e++) {
|
|
60
|
+
var r = t[e];
|
|
61
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(n, r.key, r);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
function y(n, t, e) {
|
|
65
|
+
return t && _(n.prototype, t), e && _(n, e), n;
|
|
66
|
+
}
|
|
67
|
+
var g = P(), h = b(), w = O();
|
|
68
|
+
return c = /* @__PURE__ */ function() {
|
|
69
|
+
y(n, null, [{
|
|
70
|
+
key: "parse",
|
|
71
|
+
/**
|
|
72
|
+
* Parse the given string and returns a JsSIP.URI instance or undefined if
|
|
73
|
+
* it is an invalid URI.
|
|
74
|
+
*/
|
|
75
|
+
value: function(e) {
|
|
76
|
+
if (e = w.parse(e, "SIP_URI"), e !== -1)
|
|
77
|
+
return e;
|
|
78
|
+
}
|
|
79
|
+
}]);
|
|
80
|
+
function n(t, e, r, o) {
|
|
81
|
+
var i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {}, s = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {};
|
|
82
|
+
if (v(this, n), !r)
|
|
83
|
+
throw new TypeError('missing or invalid "host" parameter');
|
|
84
|
+
this._parameters = {}, this._headers = {}, this._scheme = t || g.SIP, this._user = e, this._host = r, this._port = o;
|
|
85
|
+
for (var u in i)
|
|
86
|
+
Object.prototype.hasOwnProperty.call(i, u) && this.setParam(u, i[u]);
|
|
87
|
+
for (var a in s)
|
|
88
|
+
Object.prototype.hasOwnProperty.call(s, a) && this.setHeader(a, s[a]);
|
|
89
|
+
}
|
|
90
|
+
return y(n, [{
|
|
91
|
+
key: "setParam",
|
|
92
|
+
value: function(e, r) {
|
|
93
|
+
e && (this._parameters[e.toLowerCase()] = typeof r > "u" || r === null ? null : r.toString());
|
|
94
|
+
}
|
|
95
|
+
}, {
|
|
96
|
+
key: "getParam",
|
|
97
|
+
value: function(e) {
|
|
98
|
+
if (e)
|
|
99
|
+
return this._parameters[e.toLowerCase()];
|
|
100
|
+
}
|
|
101
|
+
}, {
|
|
102
|
+
key: "hasParam",
|
|
103
|
+
value: function(e) {
|
|
104
|
+
if (e)
|
|
105
|
+
return this._parameters.hasOwnProperty(e.toLowerCase()) && !0 || !1;
|
|
106
|
+
}
|
|
107
|
+
}, {
|
|
108
|
+
key: "deleteParam",
|
|
109
|
+
value: function(e) {
|
|
110
|
+
if (e = e.toLowerCase(), this._parameters.hasOwnProperty(e)) {
|
|
111
|
+
var r = this._parameters[e];
|
|
112
|
+
return delete this._parameters[e], r;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}, {
|
|
116
|
+
key: "clearParams",
|
|
117
|
+
value: function() {
|
|
118
|
+
this._parameters = {};
|
|
119
|
+
}
|
|
120
|
+
}, {
|
|
121
|
+
key: "setHeader",
|
|
122
|
+
value: function(e, r) {
|
|
123
|
+
this._headers[h.headerize(e)] = Array.isArray(r) ? r : [r];
|
|
124
|
+
}
|
|
125
|
+
}, {
|
|
126
|
+
key: "getHeader",
|
|
127
|
+
value: function(e) {
|
|
128
|
+
if (e)
|
|
129
|
+
return this._headers[h.headerize(e)];
|
|
130
|
+
}
|
|
131
|
+
}, {
|
|
132
|
+
key: "hasHeader",
|
|
133
|
+
value: function(e) {
|
|
134
|
+
if (e)
|
|
135
|
+
return this._headers.hasOwnProperty(h.headerize(e)) && !0 || !1;
|
|
136
|
+
}
|
|
137
|
+
}, {
|
|
138
|
+
key: "deleteHeader",
|
|
139
|
+
value: function(e) {
|
|
140
|
+
if (e = h.headerize(e), this._headers.hasOwnProperty(e)) {
|
|
141
|
+
var r = this._headers[e];
|
|
142
|
+
return delete this._headers[e], r;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}, {
|
|
146
|
+
key: "clearHeaders",
|
|
147
|
+
value: function() {
|
|
148
|
+
this._headers = {};
|
|
149
|
+
}
|
|
150
|
+
}, {
|
|
151
|
+
key: "clone",
|
|
152
|
+
value: function() {
|
|
153
|
+
return new n(this._scheme, this._user, this._host, this._port, JSON.parse(JSON.stringify(this._parameters)), JSON.parse(JSON.stringify(this._headers)));
|
|
154
|
+
}
|
|
155
|
+
}, {
|
|
156
|
+
key: "toString",
|
|
157
|
+
value: function() {
|
|
158
|
+
var e = [], r = "".concat(this._scheme, ":");
|
|
159
|
+
this._user && (r += "".concat(h.escapeUser(this._user), "@")), r += this._host, (this._port || this._port === 0) && (r += ":".concat(this._port));
|
|
160
|
+
for (var o in this._parameters)
|
|
161
|
+
Object.prototype.hasOwnProperty.call(this._parameters, o) && (r += ";".concat(o), this._parameters[o] !== null && (r += "=".concat(this._parameters[o])));
|
|
162
|
+
for (var i in this._headers)
|
|
163
|
+
if (Object.prototype.hasOwnProperty.call(this._headers, i)) {
|
|
164
|
+
var s = m(this._headers[i]), u;
|
|
165
|
+
try {
|
|
166
|
+
for (s.s(); !(u = s.n()).done; ) {
|
|
167
|
+
var a = u.value;
|
|
168
|
+
e.push("".concat(i, "=").concat(a));
|
|
169
|
+
}
|
|
170
|
+
} catch (f) {
|
|
171
|
+
s.e(f);
|
|
172
|
+
} finally {
|
|
173
|
+
s.f();
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
return e.length > 0 && (r += "?".concat(e.join("&"))), r;
|
|
177
|
+
}
|
|
178
|
+
}, {
|
|
179
|
+
key: "toAor",
|
|
180
|
+
value: function(e) {
|
|
181
|
+
var r = "".concat(this._scheme, ":");
|
|
182
|
+
return this._user && (r += "".concat(h.escapeUser(this._user), "@")), r += this._host, e && (this._port || this._port === 0) && (r += ":".concat(this._port)), r;
|
|
183
|
+
}
|
|
184
|
+
}, {
|
|
185
|
+
key: "scheme",
|
|
186
|
+
get: function() {
|
|
187
|
+
return this._scheme;
|
|
188
|
+
},
|
|
189
|
+
set: function(e) {
|
|
190
|
+
this._scheme = e.toLowerCase();
|
|
191
|
+
}
|
|
192
|
+
}, {
|
|
193
|
+
key: "user",
|
|
194
|
+
get: function() {
|
|
195
|
+
return this._user;
|
|
196
|
+
},
|
|
197
|
+
set: function(e) {
|
|
198
|
+
this._user = e;
|
|
199
|
+
}
|
|
200
|
+
}, {
|
|
201
|
+
key: "host",
|
|
202
|
+
get: function() {
|
|
203
|
+
return this._host;
|
|
204
|
+
},
|
|
205
|
+
set: function(e) {
|
|
206
|
+
this._host = e.toLowerCase();
|
|
207
|
+
}
|
|
208
|
+
}, {
|
|
209
|
+
key: "port",
|
|
210
|
+
get: function() {
|
|
211
|
+
return this._port;
|
|
212
|
+
},
|
|
213
|
+
set: function(e) {
|
|
214
|
+
this._port = e === 0 ? e : parseInt(e, 10) || null;
|
|
215
|
+
}
|
|
216
|
+
}]), n;
|
|
217
|
+
}(), c;
|
|
218
|
+
}
|
|
219
|
+
export {
|
|
220
|
+
A as __require
|
|
221
|
+
};
|
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
import { __exports as y } from "../../../commonjs-virtual-dir/Utils.js";
|
|
2
|
+
import { __require as ar } from "./Constants.js";
|
|
3
|
+
import { __require as cr } from "./URI.js";
|
|
4
|
+
import { __require as xr } from "./Grammar.js";
|
|
5
|
+
var rr;
|
|
6
|
+
function dr() {
|
|
7
|
+
if (rr) return y;
|
|
8
|
+
rr = 1;
|
|
9
|
+
function I(r) {
|
|
10
|
+
"@babel/helpers - typeof";
|
|
11
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? I = function(u) {
|
|
12
|
+
return typeof u;
|
|
13
|
+
} : I = function(u) {
|
|
14
|
+
return u && typeof Symbol == "function" && u.constructor === Symbol && u !== Symbol.prototype ? "symbol" : typeof u;
|
|
15
|
+
}, I(r);
|
|
16
|
+
}
|
|
17
|
+
function J(r, a) {
|
|
18
|
+
var u;
|
|
19
|
+
if (typeof Symbol > "u" || r[Symbol.iterator] == null) {
|
|
20
|
+
if (Array.isArray(r) || (u = er(r)) || a) {
|
|
21
|
+
u && (r = u);
|
|
22
|
+
var l = 0, m = function() {
|
|
23
|
+
};
|
|
24
|
+
return { s: m, n: function() {
|
|
25
|
+
return l >= r.length ? { done: !0 } : { done: !1, value: r[l++] };
|
|
26
|
+
}, e: function(d) {
|
|
27
|
+
throw d;
|
|
28
|
+
}, f: m };
|
|
29
|
+
}
|
|
30
|
+
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
31
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
32
|
+
}
|
|
33
|
+
var C = !0, D = !1, v;
|
|
34
|
+
return { s: function() {
|
|
35
|
+
u = r[Symbol.iterator]();
|
|
36
|
+
}, n: function() {
|
|
37
|
+
var d = u.next();
|
|
38
|
+
return C = d.done, d;
|
|
39
|
+
}, e: function(d) {
|
|
40
|
+
D = !0, v = d;
|
|
41
|
+
}, f: function() {
|
|
42
|
+
try {
|
|
43
|
+
!C && u.return != null && u.return();
|
|
44
|
+
} finally {
|
|
45
|
+
if (D) throw v;
|
|
46
|
+
}
|
|
47
|
+
} };
|
|
48
|
+
}
|
|
49
|
+
function er(r, a) {
|
|
50
|
+
if (r) {
|
|
51
|
+
if (typeof r == "string") return K(r, a);
|
|
52
|
+
var u = Object.prototype.toString.call(r).slice(8, -1);
|
|
53
|
+
if (u === "Object" && r.constructor && (u = r.constructor.name), u === "Map" || u === "Set") return Array.from(r);
|
|
54
|
+
if (u === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)) return K(r, a);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
function K(r, a) {
|
|
58
|
+
(a == null || a > r.length) && (a = r.length);
|
|
59
|
+
for (var u = 0, l = new Array(a); u < a; u++)
|
|
60
|
+
l[u] = r[u];
|
|
61
|
+
return l;
|
|
62
|
+
}
|
|
63
|
+
var b = ar(), Q = cr(), nr = xr();
|
|
64
|
+
y.str_utf8_length = function(r) {
|
|
65
|
+
return unescape(encodeURIComponent(r)).length;
|
|
66
|
+
};
|
|
67
|
+
var tr = y.isFunction = function(r) {
|
|
68
|
+
return r !== void 0 ? Object.prototype.toString.call(r) === "[object Function]" : !1;
|
|
69
|
+
};
|
|
70
|
+
y.isString = function(r) {
|
|
71
|
+
return r !== void 0 ? Object.prototype.toString.call(r) === "[object String]" : !1;
|
|
72
|
+
}, y.isDecimal = function(r) {
|
|
73
|
+
return !isNaN(r) && parseFloat(r) === parseInt(r, 10);
|
|
74
|
+
}, y.isEmpty = function(r) {
|
|
75
|
+
return r === null || r === "" || r === void 0 || Array.isArray(r) && r.length === 0 || typeof r == "number" && isNaN(r);
|
|
76
|
+
}, y.hasMethods = function(r) {
|
|
77
|
+
for (var a = arguments.length, u = new Array(a > 1 ? a - 1 : 0), l = 1; l < a; l++)
|
|
78
|
+
u[l - 1] = arguments[l];
|
|
79
|
+
for (var m = 0, C = u; m < C.length; m++) {
|
|
80
|
+
var D = C[m];
|
|
81
|
+
if (tr(r[D]))
|
|
82
|
+
return !1;
|
|
83
|
+
}
|
|
84
|
+
return !0;
|
|
85
|
+
};
|
|
86
|
+
var or = y.createRandomToken = function(r) {
|
|
87
|
+
var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 32, u, l, m = "";
|
|
88
|
+
for (u = 0; u < r; u++)
|
|
89
|
+
l = Math.random() * a | 0, m += l.toString(a);
|
|
90
|
+
return m;
|
|
91
|
+
};
|
|
92
|
+
y.newTag = function() {
|
|
93
|
+
return or(10);
|
|
94
|
+
}, y.newUUID = function() {
|
|
95
|
+
var r = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(a) {
|
|
96
|
+
var u = Math.random() * 16 | 0, l = a === "x" ? u : u & 3 | 8;
|
|
97
|
+
return l.toString(16);
|
|
98
|
+
});
|
|
99
|
+
return r;
|
|
100
|
+
}, y.hostType = function(r) {
|
|
101
|
+
if (r) {
|
|
102
|
+
if (r = nr.parse(r, "host"), r !== -1)
|
|
103
|
+
return r.host_type;
|
|
104
|
+
} else
|
|
105
|
+
return;
|
|
106
|
+
};
|
|
107
|
+
var ur = y.escapeUser = function(r) {
|
|
108
|
+
return encodeURIComponent(decodeURIComponent(r)).replace(/%3A/ig, ":").replace(/%2B/ig, "+").replace(/%3F/ig, "?").replace(/%2F/ig, "/");
|
|
109
|
+
};
|
|
110
|
+
return y.normalizeTarget = function(r, a) {
|
|
111
|
+
if (r) {
|
|
112
|
+
if (r instanceof Q)
|
|
113
|
+
return r;
|
|
114
|
+
if (typeof r == "string") {
|
|
115
|
+
var u = r.split("@"), l, m;
|
|
116
|
+
switch (u.length) {
|
|
117
|
+
case 1:
|
|
118
|
+
if (!a)
|
|
119
|
+
return;
|
|
120
|
+
l = r, m = a;
|
|
121
|
+
break;
|
|
122
|
+
case 2:
|
|
123
|
+
l = u[0], m = u[1];
|
|
124
|
+
break;
|
|
125
|
+
default:
|
|
126
|
+
l = u.slice(0, u.length - 1).join("@"), m = u[u.length - 1];
|
|
127
|
+
}
|
|
128
|
+
l = l.replace(/^(sips?|tel):/i, ""), /^[-.()]*\+?[0-9\-.()]+$/.test(l) && (l = l.replace(/[-.()]/g, "")), r = "".concat(b.SIP, ":").concat(ur(l), "@").concat(m);
|
|
129
|
+
var C;
|
|
130
|
+
return (C = Q.parse(r)) ? C : void 0;
|
|
131
|
+
} else
|
|
132
|
+
return;
|
|
133
|
+
} else return;
|
|
134
|
+
}, y.headerize = function(r) {
|
|
135
|
+
var a = {
|
|
136
|
+
"Call-Id": "Call-ID",
|
|
137
|
+
Cseq: "CSeq",
|
|
138
|
+
"Www-Authenticate": "WWW-Authenticate"
|
|
139
|
+
}, u = r.toLowerCase().replace(/_/g, "-").split("-"), l = "", m = u.length, C;
|
|
140
|
+
for (C = 0; C < m; C++)
|
|
141
|
+
C !== 0 && (l += "-"), l += u[C].charAt(0).toUpperCase() + u[C].substring(1);
|
|
142
|
+
return a[l] && (l = a[l]), l;
|
|
143
|
+
}, y.sipErrorCause = function(r) {
|
|
144
|
+
for (var a in b.SIP_ERROR_CAUSES)
|
|
145
|
+
if (b.SIP_ERROR_CAUSES[a].indexOf(r) !== -1)
|
|
146
|
+
return b.causes[a];
|
|
147
|
+
return b.causes.SIP_FAILURE_CODE;
|
|
148
|
+
}, y.getRandomTestNetIP = function() {
|
|
149
|
+
function r(a, u) {
|
|
150
|
+
return Math.floor(Math.random() * (u - a + 1) + a);
|
|
151
|
+
}
|
|
152
|
+
return "192.0.2.".concat(r(1, 254));
|
|
153
|
+
}, y.calculateMD5 = function(r) {
|
|
154
|
+
function a(x, c) {
|
|
155
|
+
return x << c | x >>> 32 - c;
|
|
156
|
+
}
|
|
157
|
+
function u(x, c) {
|
|
158
|
+
var s = x & 2147483648, F = c & 2147483648, E = x & 1073741824, h = c & 1073741824, A = (x & 1073741823) + (c & 1073741823);
|
|
159
|
+
return E & h ? A ^ 2147483648 ^ s ^ F : E | h ? A & 1073741824 ? A ^ 3221225472 ^ s ^ F : A ^ 1073741824 ^ s ^ F : A ^ s ^ F;
|
|
160
|
+
}
|
|
161
|
+
function l(x, c, s) {
|
|
162
|
+
return x & c | ~x & s;
|
|
163
|
+
}
|
|
164
|
+
function m(x, c, s) {
|
|
165
|
+
return x & s | c & ~s;
|
|
166
|
+
}
|
|
167
|
+
function C(x, c, s) {
|
|
168
|
+
return x ^ c ^ s;
|
|
169
|
+
}
|
|
170
|
+
function D(x, c, s) {
|
|
171
|
+
return c ^ (x | ~s);
|
|
172
|
+
}
|
|
173
|
+
function v(x, c, s, F, E, h, A) {
|
|
174
|
+
return x = u(x, u(u(l(c, s, F), E), A)), u(a(x, h), c);
|
|
175
|
+
}
|
|
176
|
+
function p(x, c, s, F, E, h, A) {
|
|
177
|
+
return x = u(x, u(u(m(c, s, F), E), A)), u(a(x, h), c);
|
|
178
|
+
}
|
|
179
|
+
function d(x, c, s, F, E, h, A) {
|
|
180
|
+
return x = u(x, u(u(C(c, s, F), E), A)), u(a(x, h), c);
|
|
181
|
+
}
|
|
182
|
+
function S(x, c, s, F, E, h, A) {
|
|
183
|
+
return x = u(x, u(u(D(c, s, F), E), A)), u(a(x, h), c);
|
|
184
|
+
}
|
|
185
|
+
function B(x) {
|
|
186
|
+
for (var c, s = x.length, F = s + 8, E = (F - F % 64) / 64, h = (E + 1) * 16, A = new Array(h - 1), z = 0, g = 0; g < s; )
|
|
187
|
+
c = (g - g % 4) / 4, z = g % 4 * 8, A[c] = A[c] | x.charCodeAt(g) << z, g++;
|
|
188
|
+
return c = (g - g % 4) / 4, z = g % 4 * 8, A[c] = A[c] | 128 << z, A[h - 2] = s << 3, A[h - 1] = s >>> 29, A;
|
|
189
|
+
}
|
|
190
|
+
function U(x) {
|
|
191
|
+
var c = "", s = "", F, E;
|
|
192
|
+
for (E = 0; E <= 3; E++)
|
|
193
|
+
F = x >>> E * 8 & 255, s = "0".concat(F.toString(16)), c = c + s.substr(s.length - 2, 2);
|
|
194
|
+
return c;
|
|
195
|
+
}
|
|
196
|
+
function ir(x) {
|
|
197
|
+
for (var c = "", s = 0; s < x.length; s++) {
|
|
198
|
+
var F = x.charCodeAt(s);
|
|
199
|
+
F < 128 ? c += String.fromCharCode(F) : F > 127 && F < 2048 ? (c += String.fromCharCode(F >> 6 | 192), c += String.fromCharCode(F & 63 | 128)) : (c += String.fromCharCode(F >> 12 | 224), c += String.fromCharCode(F >> 6 & 63 | 128), c += String.fromCharCode(F & 63 | 128));
|
|
200
|
+
}
|
|
201
|
+
return c;
|
|
202
|
+
}
|
|
203
|
+
var f = [], i, X, Y, Z, _, e, n, t, o, w = 7, R = 12, T = 17, O = 22, q = 5, W = 9, M = 14, j = 20, H = 4, P = 11, N = 16, G = 23, L = 6, k = 10, V = 15, $ = 21;
|
|
204
|
+
for (r = ir(r), f = B(r), e = 1732584193, n = 4023233417, t = 2562383102, o = 271733878, i = 0; i < f.length; i += 16)
|
|
205
|
+
X = e, Y = n, Z = t, _ = o, e = v(e, n, t, o, f[i + 0], w, 3614090360), o = v(o, e, n, t, f[i + 1], R, 3905402710), t = v(t, o, e, n, f[i + 2], T, 606105819), n = v(n, t, o, e, f[i + 3], O, 3250441966), e = v(e, n, t, o, f[i + 4], w, 4118548399), o = v(o, e, n, t, f[i + 5], R, 1200080426), t = v(t, o, e, n, f[i + 6], T, 2821735955), n = v(n, t, o, e, f[i + 7], O, 4249261313), e = v(e, n, t, o, f[i + 8], w, 1770035416), o = v(o, e, n, t, f[i + 9], R, 2336552879), t = v(t, o, e, n, f[i + 10], T, 4294925233), n = v(n, t, o, e, f[i + 11], O, 2304563134), e = v(e, n, t, o, f[i + 12], w, 1804603682), o = v(o, e, n, t, f[i + 13], R, 4254626195), t = v(t, o, e, n, f[i + 14], T, 2792965006), n = v(n, t, o, e, f[i + 15], O, 1236535329), e = p(e, n, t, o, f[i + 1], q, 4129170786), o = p(o, e, n, t, f[i + 6], W, 3225465664), t = p(t, o, e, n, f[i + 11], M, 643717713), n = p(n, t, o, e, f[i + 0], j, 3921069994), e = p(e, n, t, o, f[i + 5], q, 3593408605), o = p(o, e, n, t, f[i + 10], W, 38016083), t = p(t, o, e, n, f[i + 15], M, 3634488961), n = p(n, t, o, e, f[i + 4], j, 3889429448), e = p(e, n, t, o, f[i + 9], q, 568446438), o = p(o, e, n, t, f[i + 14], W, 3275163606), t = p(t, o, e, n, f[i + 3], M, 4107603335), n = p(n, t, o, e, f[i + 8], j, 1163531501), e = p(e, n, t, o, f[i + 13], q, 2850285829), o = p(o, e, n, t, f[i + 2], W, 4243563512), t = p(t, o, e, n, f[i + 7], M, 1735328473), n = p(n, t, o, e, f[i + 12], j, 2368359562), e = d(e, n, t, o, f[i + 5], H, 4294588738), o = d(o, e, n, t, f[i + 8], P, 2272392833), t = d(t, o, e, n, f[i + 11], N, 1839030562), n = d(n, t, o, e, f[i + 14], G, 4259657740), e = d(e, n, t, o, f[i + 1], H, 2763975236), o = d(o, e, n, t, f[i + 4], P, 1272893353), t = d(t, o, e, n, f[i + 7], N, 4139469664), n = d(n, t, o, e, f[i + 10], G, 3200236656), e = d(e, n, t, o, f[i + 13], H, 681279174), o = d(o, e, n, t, f[i + 0], P, 3936430074), t = d(t, o, e, n, f[i + 3], N, 3572445317), n = d(n, t, o, e, f[i + 6], G, 76029189), e = d(e, n, t, o, f[i + 9], H, 3654602809), o = d(o, e, n, t, f[i + 12], P, 3873151461), t = d(t, o, e, n, f[i + 15], N, 530742520), n = d(n, t, o, e, f[i + 2], G, 3299628645), e = S(e, n, t, o, f[i + 0], L, 4096336452), o = S(o, e, n, t, f[i + 7], k, 1126891415), t = S(t, o, e, n, f[i + 14], V, 2878612391), n = S(n, t, o, e, f[i + 5], $, 4237533241), e = S(e, n, t, o, f[i + 12], L, 1700485571), o = S(o, e, n, t, f[i + 3], k, 2399980690), t = S(t, o, e, n, f[i + 10], V, 4293915773), n = S(n, t, o, e, f[i + 1], $, 2240044497), e = S(e, n, t, o, f[i + 8], L, 1873313359), o = S(o, e, n, t, f[i + 15], k, 4264355552), t = S(t, o, e, n, f[i + 6], V, 2734768916), n = S(n, t, o, e, f[i + 13], $, 1309151649), e = S(e, n, t, o, f[i + 4], L, 4149444226), o = S(o, e, n, t, f[i + 11], k, 3174756917), t = S(t, o, e, n, f[i + 2], V, 718787259), n = S(n, t, o, e, f[i + 9], $, 3951481745), e = u(e, X), n = u(n, Y), t = u(t, Z), o = u(o, _);
|
|
206
|
+
var fr = U(e) + U(n) + U(t) + U(o);
|
|
207
|
+
return fr.toLowerCase();
|
|
208
|
+
}, y.closeMediaStream = function(r) {
|
|
209
|
+
if (r)
|
|
210
|
+
try {
|
|
211
|
+
var a;
|
|
212
|
+
if (r.getTracks) {
|
|
213
|
+
a = r.getTracks();
|
|
214
|
+
var u = J(a), l;
|
|
215
|
+
try {
|
|
216
|
+
for (u.s(); !(l = u.n()).done; ) {
|
|
217
|
+
var m = l.value;
|
|
218
|
+
m.stop();
|
|
219
|
+
}
|
|
220
|
+
} catch (B) {
|
|
221
|
+
u.e(B);
|
|
222
|
+
} finally {
|
|
223
|
+
u.f();
|
|
224
|
+
}
|
|
225
|
+
} else {
|
|
226
|
+
a = r.getAudioTracks();
|
|
227
|
+
var C = J(a), D;
|
|
228
|
+
try {
|
|
229
|
+
for (C.s(); !(D = C.n()).done; ) {
|
|
230
|
+
var v = D.value;
|
|
231
|
+
v.stop();
|
|
232
|
+
}
|
|
233
|
+
} catch (B) {
|
|
234
|
+
C.e(B);
|
|
235
|
+
} finally {
|
|
236
|
+
C.f();
|
|
237
|
+
}
|
|
238
|
+
a = r.getVideoTracks();
|
|
239
|
+
var p = J(a), d;
|
|
240
|
+
try {
|
|
241
|
+
for (p.s(); !(d = p.n()).done; ) {
|
|
242
|
+
var S = d.value;
|
|
243
|
+
S.stop();
|
|
244
|
+
}
|
|
245
|
+
} catch (B) {
|
|
246
|
+
p.e(B);
|
|
247
|
+
} finally {
|
|
248
|
+
p.f();
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
} catch {
|
|
252
|
+
(typeof r.stop == "function" || I(r.stop) === "object") && r.stop();
|
|
253
|
+
}
|
|
254
|
+
}, y.cloneArray = function(r) {
|
|
255
|
+
return r && r.slice() || [];
|
|
256
|
+
}, y.cloneObject = function(r) {
|
|
257
|
+
var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
258
|
+
return r && Object.assign({}, r) || a;
|
|
259
|
+
}, y;
|
|
260
|
+
}
|
|
261
|
+
export {
|
|
262
|
+
dr as __require
|
|
263
|
+
};
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { __require as d } from "./Logger.js";
|
|
2
|
+
import { __require as b } from "./Grammar.js";
|
|
3
|
+
var o, r;
|
|
4
|
+
function k() {
|
|
5
|
+
if (r) return o;
|
|
6
|
+
r = 1;
|
|
7
|
+
function c(i, e) {
|
|
8
|
+
if (!(i instanceof e))
|
|
9
|
+
throw new TypeError("Cannot call a class as a function");
|
|
10
|
+
}
|
|
11
|
+
function a(i, e) {
|
|
12
|
+
for (var n = 0; n < e.length; n++) {
|
|
13
|
+
var s = e[n];
|
|
14
|
+
s.enumerable = s.enumerable || !1, s.configurable = !0, "value" in s && (s.writable = !0), Object.defineProperty(i, s.key, s);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
function u(i, e, n) {
|
|
18
|
+
return e && a(i.prototype, e), i;
|
|
19
|
+
}
|
|
20
|
+
var h = d(), _ = b(), t = new h("WebSocketInterface");
|
|
21
|
+
return o = /* @__PURE__ */ function() {
|
|
22
|
+
function i(e) {
|
|
23
|
+
c(this, i), t.debug('new() [url:"%s"]', e), this._url = e, this._sip_uri = null, this._via_transport = null, this._ws = null;
|
|
24
|
+
var n = _.parse(e, "absoluteURI");
|
|
25
|
+
if (n === -1)
|
|
26
|
+
throw t.warn("invalid WebSocket URI: ".concat(e)), new TypeError("Invalid argument: ".concat(e));
|
|
27
|
+
if (n.scheme !== "wss" && n.scheme !== "ws")
|
|
28
|
+
throw t.warn("invalid WebSocket URI scheme: ".concat(n.scheme)), new TypeError("Invalid argument: ".concat(e));
|
|
29
|
+
this._sip_uri = "sip:".concat(n.host).concat(n.port ? ":".concat(n.port) : "", ";transport=ws"), this._via_transport = n.scheme.toUpperCase();
|
|
30
|
+
}
|
|
31
|
+
return u(i, [{
|
|
32
|
+
key: "connect",
|
|
33
|
+
value: function() {
|
|
34
|
+
if (t.debug("connect()"), this.isConnected()) {
|
|
35
|
+
t.debug("WebSocket ".concat(this._url, " is already connected"));
|
|
36
|
+
return;
|
|
37
|
+
} else if (this.isConnecting()) {
|
|
38
|
+
t.debug("WebSocket ".concat(this._url, " is connecting"));
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
this._ws && this.disconnect(), t.debug("connecting to WebSocket ".concat(this._url));
|
|
42
|
+
try {
|
|
43
|
+
this._ws = new WebSocket(this._url, "sip"), this._ws.binaryType = "arraybuffer", this._ws.onopen = this._onOpen.bind(this), this._ws.onclose = this._onClose.bind(this), this._ws.onmessage = this._onMessage.bind(this), this._ws.onerror = this._onError.bind(this);
|
|
44
|
+
} catch (n) {
|
|
45
|
+
this._onError(n);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}, {
|
|
49
|
+
key: "disconnect",
|
|
50
|
+
value: function() {
|
|
51
|
+
t.debug("disconnect()"), this._ws && (this._ws.onopen = function() {
|
|
52
|
+
}, this._ws.onclose = function() {
|
|
53
|
+
}, this._ws.onmessage = function() {
|
|
54
|
+
}, this._ws.onerror = function() {
|
|
55
|
+
}, this._ws.close(), this._ws = null);
|
|
56
|
+
}
|
|
57
|
+
}, {
|
|
58
|
+
key: "send",
|
|
59
|
+
value: function(n) {
|
|
60
|
+
return t.debug("send()"), this.isConnected() ? (this._ws.send(n), !0) : (t.warn("unable to send message, WebSocket is not open"), !1);
|
|
61
|
+
}
|
|
62
|
+
}, {
|
|
63
|
+
key: "isConnected",
|
|
64
|
+
value: function() {
|
|
65
|
+
return this._ws && this._ws.readyState === this._ws.OPEN;
|
|
66
|
+
}
|
|
67
|
+
}, {
|
|
68
|
+
key: "isConnecting",
|
|
69
|
+
value: function() {
|
|
70
|
+
return this._ws && this._ws.readyState === this._ws.CONNECTING;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* WebSocket Event Handlers
|
|
74
|
+
*/
|
|
75
|
+
}, {
|
|
76
|
+
key: "_onOpen",
|
|
77
|
+
value: function() {
|
|
78
|
+
t.debug("WebSocket ".concat(this._url, " connected")), this.onconnect();
|
|
79
|
+
}
|
|
80
|
+
}, {
|
|
81
|
+
key: "_onClose",
|
|
82
|
+
value: function(n) {
|
|
83
|
+
var s = n.wasClean, l = n.code, f = n.reason;
|
|
84
|
+
t.debug("WebSocket ".concat(this._url, " closed")), s === !1 && t.debug("WebSocket abrupt disconnection"), this.ondisconnect(!s, l, f);
|
|
85
|
+
}
|
|
86
|
+
}, {
|
|
87
|
+
key: "_onMessage",
|
|
88
|
+
value: function(n) {
|
|
89
|
+
var s = n.data;
|
|
90
|
+
t.debug("received WebSocket message"), this.ondata(s);
|
|
91
|
+
}
|
|
92
|
+
}, {
|
|
93
|
+
key: "_onError",
|
|
94
|
+
value: function(n) {
|
|
95
|
+
t.warn("WebSocket ".concat(this._url, " error: "), n);
|
|
96
|
+
}
|
|
97
|
+
}, {
|
|
98
|
+
key: "via_transport",
|
|
99
|
+
get: function() {
|
|
100
|
+
return this._via_transport;
|
|
101
|
+
},
|
|
102
|
+
set: function(n) {
|
|
103
|
+
this._via_transport = n.toUpperCase();
|
|
104
|
+
}
|
|
105
|
+
}, {
|
|
106
|
+
key: "sip_uri",
|
|
107
|
+
get: function() {
|
|
108
|
+
return this._sip_uri;
|
|
109
|
+
}
|
|
110
|
+
}, {
|
|
111
|
+
key: "url",
|
|
112
|
+
get: function() {
|
|
113
|
+
return this._url;
|
|
114
|
+
}
|
|
115
|
+
}]), i;
|
|
116
|
+
}(), o;
|
|
117
|
+
}
|
|
118
|
+
export {
|
|
119
|
+
k as __require
|
|
120
|
+
};
|