@babblevoice/babble-drachtio-callmanager 2.3.17 → 2.3.18
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 -7
- package/package.json +1 -1
package/lib/call.js
CHANGED
|
@@ -1874,14 +1874,19 @@ class call {
|
|
|
1874
1874
|
*/
|
|
1875
1875
|
async reinvite() {
|
|
1876
1876
|
|
|
1877
|
-
this.sdp.local
|
|
1878
|
-
|
|
1879
|
-
.
|
|
1880
|
-
.select( this.selectedcodec )
|
|
1881
|
-
.setaudiodirection( "sendrecv" )
|
|
1877
|
+
this.sdp.local = sdpgen.create().addcodecs( this.selectedcodec )
|
|
1878
|
+
this.sdp.local.setaudioport( this.channels.audio.local.port )
|
|
1879
|
+
.setconnectionaddress( this.channels.audio.local.address )
|
|
1882
1880
|
|
|
1883
|
-
|
|
1884
|
-
|
|
1881
|
+
this.#checkandadd2833()
|
|
1882
|
+
|
|
1883
|
+
/* DTLS is only supported ( outbound ) on websocket connections */
|
|
1884
|
+
if( this._iswebrtc ) {
|
|
1885
|
+
this.sdp.local
|
|
1886
|
+
.addssrc( this.channels.audio.local.ssrc )
|
|
1887
|
+
.secure( this.channels.audio.local.dtls.fingerprint ,"passive" )
|
|
1888
|
+
.addicecandidates( this.channels.audio.local.address, this.channels.audio.local.port, this.channels.audio.local.icepwd )
|
|
1889
|
+
.rtcpmux()
|
|
1885
1890
|
}
|
|
1886
1891
|
|
|
1887
1892
|
const remotesdp = await this._dialog.modify( this.sdp.local.toString() )
|