@babblevoice/babble-drachtio-callmanager 2.3.5 → 2.3.7

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 CHANGED
@@ -2910,6 +2910,8 @@ class call {
2910
2910
  return newcall
2911
2911
  }
2912
2912
 
2913
+ newcall.parseallow( newdialog.res )
2914
+
2913
2915
  newcall.#setdialog( newdialog )
2914
2916
  await newcall.#onnewuacsuccess( callbacks )
2915
2917
 
@@ -2986,6 +2988,7 @@ class call {
2986
2988
  @private
2987
2989
  */
2988
2990
  c._req = req
2991
+ c._req.on( "cancel", ( req ) => c._oncanceled( req ) )
2989
2992
 
2990
2993
  /**
2991
2994
  @member
@@ -2995,8 +2998,6 @@ class call {
2995
2998
 
2996
2999
  c.parseallow( req )
2997
3000
 
2998
- c._req.on( "cancel", () => c._oncanceled.bind( c ) )
2999
-
3000
3001
  await callstore.set( c )
3001
3002
  callmanager.options.em.emit( "call.new", c )
3002
3003
 
@@ -50,7 +50,12 @@ class callmanager {
50
50
  let c = await callstore.getbycallid( calldesc )
51
51
  if( c ) return c._onauth( req, res )
52
52
 
53
- c = await call.frominvite( req, res )
53
+ try {
54
+ c = await call.frominvite( req, res )
55
+ } catch( e ) {
56
+ console.error( e )
57
+ }
58
+
54
59
 
55
60
  if( false !== this.onnewcall ) {
56
61
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babblevoice/babble-drachtio-callmanager",
3
- "version": "2.3.5",
3
+ "version": "2.3.7",
4
4
  "description": "Call processing to create a PBX",
5
5
  "main": "index.js",
6
6
  "scripts": {