@babblevoice/babble-drachtio-callmanager 2.2.5 → 2.2.6

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 CHANGED
@@ -2735,6 +2735,7 @@ class call {
2735
2735
  @param { object } [ options.uactimeout ] - override the deault timeout
2736
2736
  @param { boolean | number } [ options.autoanswer ] - if true add call-info to auto answer, if number delay to add
2737
2737
  @param { boolean } [ options.late ] - late negotiation
2738
+ @param { boolean } [ options.privacy ] - sets the privacy
2738
2739
  @param { entity } [ options.entity ] - used to store this call against and look up a contact string if not supplied.
2739
2740
  @param { string } [ options.entity.username ]
2740
2741
  @param { string } [ options.entity.realm ]
@@ -2774,6 +2775,8 @@ class call {
2774
2775
  callstore.set( newcall )
2775
2776
  }
2776
2777
 
2778
+ if( options.privacy ) this.privacy = true
2779
+
2777
2780
  const u = newcall.#configcalleridfornewuac( options )
2778
2781
  newcall.#configautoanswerfornewuac( options, u )
2779
2782
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babblevoice/babble-drachtio-callmanager",
3
- "version": "2.2.5",
3
+ "version": "2.2.6",
4
4
  "description": "Call processing to create a PBX",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/test/unit/call.js CHANGED
@@ -27,6 +27,6 @@ describe( "call.js", function() {
27
27
  expect( newcallcalled ).to.be.true
28
28
 
29
29
  await call.hangup()
30
- } )
30
+ } )
31
31
 
32
32
  } )