diff --git a/.gitignore b/.gitignore index 7be6dec5..74f6abc9 100644 --- a/.gitignore +++ b/.gitignore @@ -37,4 +37,5 @@ node_modules examples/* -ecosystem.config.js \ No newline at end of file +ecosystem.config.js +.vscode diff --git a/lib/tasks/say.js b/lib/tasks/say.js index 8a735223..18f24f54 100644 --- a/lib/tasks/say.js +++ b/lib/tasks/say.js @@ -21,7 +21,7 @@ class TaskSay extends Task { this.ep = ep; try { const filepath = []; - while (!this.killed && this.loop--) { + while (!this.killed && this.loop-- && this.ep.connected) { let segment = 0; do { if (filepath.length <= segment) { diff --git a/package-lock.json b/package-lock.json index 1cfa34f4..ab5ab0f4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1095,9 +1095,9 @@ } }, "drachtio-srf": { - "version": "4.4.28", - "resolved": "https://registry.npmjs.org/drachtio-srf/-/drachtio-srf-4.4.28.tgz", - "integrity": "sha512-gY/wmH6JFmeEv2/jhwFbky1NYUmDwgIJzjNeGlDiAkQEA6GgcI/CFi5RRHAUzghpczTwXQNDXpARPB8QDWX1JA==", + "version": "4.4.34", + "resolved": "https://registry.npmjs.org/drachtio-srf/-/drachtio-srf-4.4.34.tgz", + "integrity": "sha512-hTaO45Hc9SOJlxucZxnNGtvoIXG1loeu0H8W4U3WU9va3BY2U0kK2f2sT8mvqURA3c7/jFRfSicvDniZYKWwyg==", "requires": { "async": "^1.4.2", "debug": "^3.1.0", @@ -1108,6 +1108,7 @@ "lodash": "^4.17.13", "node-noop": "0.0.1", "only": "0.0.2", + "sdp-transform": "^2.14.0", "sip-methods": "^0.3.0", "utils-merge": "1.0.0", "uuid": "^3.0.0" diff --git a/package.json b/package.json index 9cd386d1..dcc3b91b 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "cidr-matcher": "^2.1.1", "debug": "^4.1.1", "drachtio-fsmrf": "^2.0.1", - "drachtio-srf": "^4.4.28", + "drachtio-srf": "^4.4.34", "express": "^4.17.1", "ip": "^1.1.5", "@jambonz/db-helpers": "^0.3.7",