@koi-design/callkit 2.0.0-beta.15 → 2.0.0-beta.16
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/index.global.js +9 -8
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +9 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.global.js
CHANGED
|
@@ -18760,19 +18760,19 @@ var WebCall = (() => {
|
|
|
18760
18760
|
const observeSocketStatus = (userAgent, extra) => {
|
|
18761
18761
|
const { that = this } = extra;
|
|
18762
18762
|
const core = userAgent.userAgentCore;
|
|
18763
|
-
const
|
|
18764
|
-
core.
|
|
18763
|
+
const originalReceiveIncomingRequestFromTransport = core.receiveIncomingRequestFromTransport.bind(core);
|
|
18764
|
+
core.receiveIncomingRequestFromTransport = (request2) => {
|
|
18765
18765
|
if (request2.method === "OPTIONS") {
|
|
18766
18766
|
that.startHeartbeat();
|
|
18767
18767
|
}
|
|
18768
|
-
that.callKit.logger.info(`SIP Receive
|
|
18769
|
-
caller: "Connect.register.observeSocketStatus",
|
|
18768
|
+
that.callKit.logger.info(`SIP Receive: ${request2?.method}`, {
|
|
18769
|
+
caller: "Connect.register.observeSocketStatus.receiveRequest",
|
|
18770
18770
|
type: "SIP",
|
|
18771
18771
|
content: {
|
|
18772
18772
|
request: request2
|
|
18773
18773
|
}
|
|
18774
18774
|
});
|
|
18775
|
-
return
|
|
18775
|
+
return originalReceiveIncomingRequestFromTransport(request2);
|
|
18776
18776
|
};
|
|
18777
18777
|
const { transport } = userAgent;
|
|
18778
18778
|
if (transport) {
|
|
@@ -19647,6 +19647,7 @@ var WebCall = (() => {
|
|
|
19647
19647
|
}
|
|
19648
19648
|
if (data.event === SocketReceiveEvent.SESSION_ERROR) {
|
|
19649
19649
|
this.socketError = true;
|
|
19650
|
+
this.callKit.reset();
|
|
19650
19651
|
this.callKit.logger.error(data.msg, {
|
|
19651
19652
|
caller: `Socket.onMessage:${data.event}`,
|
|
19652
19653
|
type: "INCALL",
|
|
@@ -19716,8 +19717,7 @@ var WebCall = (() => {
|
|
|
19716
19717
|
caller: "Socket.send",
|
|
19717
19718
|
type: "INCALL",
|
|
19718
19719
|
content: {
|
|
19719
|
-
|
|
19720
|
-
message
|
|
19720
|
+
...msg
|
|
19721
19721
|
}
|
|
19722
19722
|
});
|
|
19723
19723
|
switch (event) {
|
|
@@ -19739,7 +19739,8 @@ var WebCall = (() => {
|
|
|
19739
19739
|
caller: "Socket.sendMessage",
|
|
19740
19740
|
type: "INCALL",
|
|
19741
19741
|
content: {
|
|
19742
|
-
errCode: ErrorCode.SOCKET_CONNECT_ERROR
|
|
19742
|
+
errCode: ErrorCode.SOCKET_CONNECT_ERROR,
|
|
19743
|
+
message
|
|
19743
19744
|
}
|
|
19744
19745
|
});
|
|
19745
19746
|
return;
|