Skip to content

Commit

Permalink
3.9.4
Browse files Browse the repository at this point in the history
  • Loading branch information
jmillan committed Nov 5, 2022
1 parent 019db97 commit 9e66a05
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 13 deletions.
24 changes: 14 additions & 10 deletions dist/jssip.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* JsSIP v3.9.3
* JsSIP v3.9.4
* the Javascript SIP library
* Copyright: 2012-2022
* Homepage: https://jssip.net
Expand Down Expand Up @@ -495,7 +495,8 @@ var logger = new Logger('Dialog');
var C = {
// Dialog states.
STATUS_EARLY: 1,
STATUS_CONFIRMED: 2
STATUS_CONFIRMED: 2,
STATUS_TERMINATED: 3
}; // RFC 3261 12.1.

module.exports = /*#__PURE__*/function () {
Expand Down Expand Up @@ -570,6 +571,11 @@ module.exports = /*#__PURE__*/function () {
}

_createClass(Dialog, [{
key: "isTerminated",
value: function isTerminated() {
return this._status === C.STATUS_TERMINATED;
}
}, {
key: "update",
value: function update(message, type) {
this._state = C.STATUS_CONFIRMED;
Expand All @@ -586,6 +592,8 @@ module.exports = /*#__PURE__*/function () {
logger.debug("dialog ".concat(this._id.toString(), " deleted"));

this._ua.destroyDialog(this);

this._state = C.STATUS_TERMINATED;
}
}, {
key: "sendRequest",
Expand Down Expand Up @@ -762,8 +770,6 @@ var JsSIP_C = require('../Constants');

var Transactions = require('../Transactions');

var RTCSession = require('../RTCSession');

var RequestSender = require('../RequestSender'); // Default event handlers.


Expand Down Expand Up @@ -849,8 +855,7 @@ module.exports = /*#__PURE__*/function () {
} else {
this._request.cseq = this._dialog.local_seqnum += 1;
this._reattemptTimer = setTimeout(function () {
// TODO: look at dialog state instead.
if (_this2._dialog.owner.status !== RTCSession.C.STATUS_TERMINATED) {
if (!_this2._dialog.isTerminated()) {
_this2._reattempt = true;

_this2.send();
Expand All @@ -872,7 +877,7 @@ module.exports = /*#__PURE__*/function () {

return DialogRequestSender;
}();
},{"../Constants":2,"../RTCSession":14,"../RequestSender":20,"../Transactions":24}],5:[function(require,module,exports){
},{"../Constants":2,"../RequestSender":20,"../Transactions":24}],5:[function(require,module,exports){
"use strict";

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
Expand Down Expand Up @@ -21121,7 +21126,7 @@ module.exports = /*#__PURE__*/function (_EventEmitter) {
return;
}

var status_line = Grammar.parse(request.body.trim(), 'Status_Line');
var status_line = Grammar.parse(request.body.trim().split('\r\n', 1)[0], 'Status_Line');

if (status_line === -1) {
logger.debug("receiveNotify() | error parsing NOTIFY body: \"".concat(request.body, "\""));
Expand Down Expand Up @@ -25488,7 +25493,6 @@ exports.calculateMD5 = function (string) {
}

function utf8Encode(str) {
str = str.replace(/\r\n/g, '\n');
var utftext = '';

for (var n = 0; n < str.length; n++) {
Expand Down Expand Up @@ -28281,7 +28285,7 @@ module.exports={
"name": "jssip",
"title": "JsSIP",
"description": "the Javascript SIP library",
"version": "3.9.3",
"version": "3.9.4",
"homepage": "https://jssip.net",
"contributors": [
"José Luis Millán <jmillan@aliax.net> (https://github.com/jmillan)",
Expand Down
4 changes: 2 additions & 2 deletions dist/jssip.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "jssip",
"title": "JsSIP",
"description": "the Javascript SIP library",
"version": "3.9.3",
"version": "3.9.4",
"homepage": "https://jssip.net",
"contributors": [
"José Luis Millán <jmillan@aliax.net> (https://github.com/jmillan)",
Expand Down

0 comments on commit 9e66a05

Please sign in to comment.