@wazo/sdk 1.0.0-alpha.4 → 1.0.0-alpha.5
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/wazo-sdk.js +1 -1
- package/esm/voice/call.js +1 -1
- package/lib/voice/call.js +2 -1
- package/package.json +1 -1
- package/src/voice/call.ts +1 -1
package/esm/voice/call.js
CHANGED
|
@@ -461,7 +461,7 @@ class Call extends EventEmitter {
|
|
|
461
461
|
return otherCall && this.id && this.id === otherCall.id;
|
|
462
462
|
}
|
|
463
463
|
shouldAutoAnswer() {
|
|
464
|
-
return !!this.sipCall.request
|
|
464
|
+
return !!this.sipCall.request?.getHeader('alert-info');
|
|
465
465
|
}
|
|
466
466
|
get id() {
|
|
467
467
|
return getSipSessionId(this.sipCall);
|
package/lib/voice/call.js
CHANGED
|
@@ -507,7 +507,8 @@ class Call extends events_1.EventEmitter {
|
|
|
507
507
|
return otherCall && this.id && this.id === otherCall.id;
|
|
508
508
|
}
|
|
509
509
|
shouldAutoAnswer() {
|
|
510
|
-
|
|
510
|
+
var _a;
|
|
511
|
+
return !!((_a = this.sipCall.request) === null || _a === void 0 ? void 0 : _a.getHeader('alert-info'));
|
|
511
512
|
}
|
|
512
513
|
get id() {
|
|
513
514
|
return (0, sdp_1.getSipSessionId)(this.sipCall);
|
package/package.json
CHANGED