@babblevoice/babble-drachtio-callmanager 2.3.7 → 2.3.8

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 +3 -1
  2. package/package.json +1 -1
package/lib/call.js CHANGED
@@ -1206,6 +1206,8 @@ class call {
1206
1206
  this._req = req
1207
1207
  this._res = res
1208
1208
 
1209
+ req.on( "cancel", ( req ) => this._oncanceled( req ) )
1210
+
1209
1211
  if( !this._auth.has( this._req ) ) return false
1210
1212
 
1211
1213
  const authorization = this._auth.parseauthheaders( this._req )
@@ -1273,7 +1275,7 @@ class call {
1273
1275
  this.canceled = true
1274
1276
 
1275
1277
  for( const child of this.children ) {
1276
- child.hangup()
1278
+ child.hangup( hangupcodes.ORIGINATOR_CANCEL )
1277
1279
  }
1278
1280
 
1279
1281
  this._onhangup( "wire", hangupcodes.ORIGINATOR_CANCEL )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babblevoice/babble-drachtio-callmanager",
3
- "version": "2.3.7",
3
+ "version": "2.3.8",
4
4
  "description": "Call processing to create a PBX",
5
5
  "main": "index.js",
6
6
  "scripts": {