@babblevoice/babble-drachtio-callmanager 1.0.4 → 1.1.2
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/lib/call.js +8 -5
- package/package.json +3 -3
package/lib/call.js
CHANGED
|
@@ -1341,7 +1341,12 @@ class call {
|
|
|
1341
1341
|
|
|
1342
1342
|
if( "close" === e.action ) {
|
|
1343
1343
|
/* keep a record */
|
|
1344
|
-
this.channels.
|
|
1344
|
+
if( this.channels.audio.history ) {
|
|
1345
|
+
this.channels.closed.audio.push( this.channels.audio.history )
|
|
1346
|
+
} else {
|
|
1347
|
+
this.channels.closed.audio.push( e )
|
|
1348
|
+
}
|
|
1349
|
+
|
|
1345
1350
|
this.channels.audio = false
|
|
1346
1351
|
if( this._state._onhangup ) {
|
|
1347
1352
|
this._cleanup()
|
|
@@ -1973,12 +1978,10 @@ class call {
|
|
|
1973
1978
|
|
|
1974
1979
|
this._sethangupcause( src, reason )
|
|
1975
1980
|
|
|
1976
|
-
let audiochannel = this.channels.audio
|
|
1977
|
-
this.channels.audio = false
|
|
1978
1981
|
/* flag destroyed so when we receive our close event we know what to do */
|
|
1979
1982
|
this.destroyed = true
|
|
1980
|
-
if(
|
|
1981
|
-
|
|
1983
|
+
if( this.channels.audio ) {
|
|
1984
|
+
this.channels.audio.close()
|
|
1982
1985
|
this._timers.cleanup = setTimeout( () => {
|
|
1983
1986
|
console.error( "Timeout waiting for channel close, cleaning up anyway", this.uuid )
|
|
1984
1987
|
this._cleanup()
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@babblevoice/babble-drachtio-callmanager",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "Call processing to create a PBX",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -20,14 +20,14 @@
|
|
|
20
20
|
],
|
|
21
21
|
"license": "MIT",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@babblevoice/babble-drachtio-auth": "^1.0.
|
|
23
|
+
"@babblevoice/babble-drachtio-auth": "^1.0.1",
|
|
24
24
|
"chai": "^4.3.4",
|
|
25
25
|
"drachtio-srf": "^4.4.47",
|
|
26
26
|
"mocha": "^9.2.2",
|
|
27
27
|
"uuid": "^8.3.2"
|
|
28
28
|
},
|
|
29
29
|
"optionalDependencies": {
|
|
30
|
-
"@babblevoice/projectrtp": "^2.
|
|
30
|
+
"@babblevoice/projectrtp": "^2.2.0"
|
|
31
31
|
},
|
|
32
32
|
"bugs": {
|
|
33
33
|
"url": "https://github.com/tinpotnick/babble-drachtio-callmanager/issues"
|