@babblevoice/babble-drachtio-callmanager 2.3.6 → 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 +1 -2
- package/lib/callmanager.js +6 -1
- package/package.json +1 -1
package/lib/call.js
CHANGED
|
@@ -2988,6 +2988,7 @@ class call {
|
|
|
2988
2988
|
@private
|
|
2989
2989
|
*/
|
|
2990
2990
|
c._req = req
|
|
2991
|
+
c._req.on( "cancel", ( req ) => c._oncanceled( req ) )
|
|
2991
2992
|
|
|
2992
2993
|
/**
|
|
2993
2994
|
@member
|
|
@@ -2997,8 +2998,6 @@ class call {
|
|
|
2997
2998
|
|
|
2998
2999
|
c.parseallow( req )
|
|
2999
3000
|
|
|
3000
|
-
c._req.on( "cancel", () => c._oncanceled.bind( c ) )
|
|
3001
|
-
|
|
3002
3001
|
await callstore.set( c )
|
|
3003
3002
|
callmanager.options.em.emit( "call.new", c )
|
|
3004
3003
|
|
package/lib/callmanager.js
CHANGED
|
@@ -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
|
-
|
|
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 {
|