@babblevoice/babble-drachtio-callmanager 3.7.18 → 3.7.20
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 +11 -0
- package/package.json +1 -1
package/lib/call.js
CHANGED
|
@@ -3,6 +3,7 @@ const { v4: uuidv4 } = require( "uuid" )
|
|
|
3
3
|
const events = require( "events" )
|
|
4
4
|
const dns = require( "node:dns" )
|
|
5
5
|
|
|
6
|
+
// @ts-ignore
|
|
6
7
|
const projectrtp = require( "@babblevoice/projectrtp" ).projectrtp
|
|
7
8
|
|
|
8
9
|
const sdpgen = require( "./sdp.js" )
|
|
@@ -786,6 +787,10 @@ class call {
|
|
|
786
787
|
if( "uas" === this.type ) {
|
|
787
788
|
if( this.options.partycalled ) {
|
|
788
789
|
this.#calleridforuac( startingpoint )
|
|
790
|
+
const other = this.other
|
|
791
|
+
if( other ) {
|
|
792
|
+
this.#calleridother( startingpoint, other )
|
|
793
|
+
}
|
|
789
794
|
} else {
|
|
790
795
|
this.#calleridforuas( startingpoint )
|
|
791
796
|
}
|
|
@@ -2973,6 +2978,12 @@ class call {
|
|
|
2973
2978
|
|
|
2974
2979
|
this.hangup_cause = Object.assign( { "src": "wire" }, hangupcodes.ATTENDED_TRANSFER )
|
|
2975
2980
|
b_1.hangup( hangupcodes.ATTENDED_TRANSFER )
|
|
2981
|
+
|
|
2982
|
+
a_1._em.emit( "call.updated", a_1 )
|
|
2983
|
+
callmanager.options.em.emit( "call.updated", a_1 )
|
|
2984
|
+
|
|
2985
|
+
c_1._em.emit( "call.updated", c_1 )
|
|
2986
|
+
callmanager.options.em.emit( "call.updated", c_1 )
|
|
2976
2987
|
}
|
|
2977
2988
|
|
|
2978
2989
|
/**
|