webitel-sdk 0.1.181 → 0.1.183

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.
@@ -32810,7 +32810,7 @@ class SipPhone extends EventEmitter {
32810
32810
  });
32811
32811
  }
32812
32812
  }
32813
- SipPhone.userAgent = `Webitel-Phone/${"0.1.181"}`;
32813
+ SipPhone.userAgent = `Webitel-Phone/${version}`;
32814
32814
  SipPhone.sipVersion = version;
32815
32815
  async function getMediaStream(constraints) {
32816
32816
  return new Promise((resolve, reject) => {
@@ -32831,9 +32831,12 @@ async function getMediaStream(constraints) {
32831
32831
  });
32832
32832
  }
32833
32833
 
32834
+ /** * @internal */
32835
+ const VERSION = '0.0.2';
32836
+
32834
32837
  const getVersion = () => {
32835
32838
  // @ts-ignore
32836
- return '"0.1.181"';
32839
+ return VERSION;
32837
32840
  };
32838
32841
  var version$1 = getVersion();
32839
32842
 
@@ -33658,10 +33661,12 @@ class Call {
33658
33661
  }
33659
33662
  get autoAnswer() {
33660
33663
  return ((this.queue && this.queue.queue_type === 'offline') ||
33661
- (this.params && this.params.autoAnswer === true));
33664
+ this.autoAnswerDelay > 0);
33662
33665
  }
33663
33666
  get autoAnswerDelay() {
33664
- if (!this.params.autoAnswer || `${this.params.autoAnswer}` === 'false') {
33667
+ if (!this.params ||
33668
+ !this.params.autoAnswer ||
33669
+ `${this.params.autoAnswer}` === 'false') {
33665
33670
  return 0;
33666
33671
  }
33667
33672
  else if (isFinite(+this.params.autoAnswer)) {