@babblevoice/babble-drachtio-callmanager 1.0.4 → 1.1.0

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.
Files changed (2) hide show
  1. package/lib/call.js +6 -1
  2. package/package.json +2 -2
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.closed.audio.push( e )
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()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babblevoice/babble-drachtio-callmanager",
3
- "version": "1.0.4",
3
+ "version": "1.1.0",
4
4
  "description": "Call processing to create a PBX",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -27,7 +27,7 @@
27
27
  "uuid": "^8.3.2"
28
28
  },
29
29
  "optionalDependencies": {
30
- "@babblevoice/projectrtp": "^2.1.0"
30
+ "@babblevoice/projectrtp": "^2.2.0"
31
31
  },
32
32
  "bugs": {
33
33
  "url": "https://github.com/tinpotnick/babble-drachtio-callmanager/issues"