@babblevoice/babble-drachtio-callmanager 3.5.2 → 3.5.4
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 -0
- package/package.json +1 -1
package/lib/call.js
CHANGED
|
@@ -2277,6 +2277,12 @@ class call {
|
|
|
2277
2277
|
|
|
2278
2278
|
if( "function" != typeof dialog.request ) return
|
|
2279
2279
|
|
|
2280
|
+
if( this._iswebrtc && this.channels && this.channels.audio ) {
|
|
2281
|
+
/* we are sending invite so we MUST offer be actpass */
|
|
2282
|
+
this.sdp.local
|
|
2283
|
+
.secure( this.channels.audio.local.dtls.fingerprint ,"actpass" )
|
|
2284
|
+
}
|
|
2285
|
+
|
|
2280
2286
|
const opts = {
|
|
2281
2287
|
"method": "INVITE",
|
|
2282
2288
|
"body": this.sdp.local.toString()
|
|
@@ -2328,6 +2334,12 @@ class call {
|
|
|
2328
2334
|
// The application must respond, using the res parameter provided.
|
|
2329
2335
|
if( "INVITE" !== req.msg.method ) return
|
|
2330
2336
|
|
|
2337
|
+
if( this._iswebrtc && this.channels && this.channels.audio ) {
|
|
2338
|
+
/* if we have received the invite then we decide AND offer MUST be actpass */
|
|
2339
|
+
this.sdp.local
|
|
2340
|
+
.secure( this.channels.audio.local.dtls.fingerprint ,"passive" )
|
|
2341
|
+
}
|
|
2342
|
+
|
|
2331
2343
|
const sdp = this.#getsdpformodify( req )
|
|
2332
2344
|
|
|
2333
2345
|
/* this was tested against jssip - which I don't think is correct. It was sending us
|