@babblevoice/babble-drachtio-callmanager 2.3.14 → 2.3.16
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 +12 -1
- package/package.json +1 -1
package/lib/call.js
CHANGED
|
@@ -1841,6 +1841,11 @@ class call {
|
|
|
1841
1841
|
} )
|
|
1842
1842
|
}
|
|
1843
1843
|
|
|
1844
|
+
/**
|
|
1845
|
+
*
|
|
1846
|
+
* @param { object } other
|
|
1847
|
+
* @returns { object }
|
|
1848
|
+
*/
|
|
1844
1849
|
swapchannel( other ){
|
|
1845
1850
|
|
|
1846
1851
|
const this_audio = this.channels.audio
|
|
@@ -1855,6 +1860,12 @@ class call {
|
|
|
1855
1860
|
other.channels.audio = this_audio
|
|
1856
1861
|
other.channels.audio.em = other_chem
|
|
1857
1862
|
other.sdp.local = this_sdp
|
|
1863
|
+
|
|
1864
|
+
/* reinvite will pick up on this */
|
|
1865
|
+
const selectedcodec = this.selectedcodec
|
|
1866
|
+
other.selectedcodec = this.selectedcodec
|
|
1867
|
+
this.selectedcodec = selectedcodec
|
|
1868
|
+
return this
|
|
1858
1869
|
}
|
|
1859
1870
|
|
|
1860
1871
|
/**
|
|
@@ -2820,7 +2831,7 @@ class call {
|
|
|
2820
2831
|
if( this.parent.calleridname ) {
|
|
2821
2832
|
name = this.parent.calleridname
|
|
2822
2833
|
}
|
|
2823
|
-
} else {
|
|
2834
|
+
} else if( this._entity ) {
|
|
2824
2835
|
if( this._entity.username ) user = this._entity.username
|
|
2825
2836
|
if( this._entity.realm ) realm = this._entity.realm
|
|
2826
2837
|
if( this._entity.display ) name = this._entity.display
|