@babblevoice/babble-drachtio-callmanager 3.6.1 → 3.6.3

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.
Files changed (2) hide show
  1. package/lib/call.js +10 -1
  2. package/package.json +1 -1
package/lib/call.js CHANGED
@@ -774,6 +774,7 @@ class call {
774
774
 
775
775
  /**
776
776
  Return the destination of the call.
777
+ If not present returns the contact.
777
778
  @return { destination } destination - parsed uri
778
779
  */
779
780
  get destination() {
@@ -781,6 +782,14 @@ class call {
781
782
  return parseuri( this.referingtouri )
782
783
  }
783
784
 
785
+ return this.contact
786
+ }
787
+
788
+ /**
789
+ Return the contact of the call.
790
+ @return { destination } destination - parsed uri
791
+ */
792
+ get contact() {
784
793
  if( "uac" == this.type ) {
785
794
  return parseuri( this.options.contact )
786
795
  }
@@ -2795,7 +2804,6 @@ class call {
2795
2804
  this._em.emit( "call.reporting", this )
2796
2805
  callmanager.options.em.emit( "call.reporting", this )
2797
2806
 
2798
- this.removealllisteners()
2799
2807
  return 0
2800
2808
  } ).catch( () => {} )
2801
2809
  }
@@ -3371,6 +3379,7 @@ class call {
3371
3379
  * @property { call } [ parent ] - the parent call object
3372
3380
  * @property { boolean } [ orphan ] - orphan this call once made
3373
3381
  * @property { string } [ contact ] - The contact string
3382
+ * @property { string } [ proxy ] - send the request through an outbound proxy, specified as full sip uri or address[:port]
3374
3383
  * @property { string } [ preferedcodecs ] as it says
3375
3384
  * @property { boolean } [ rfc2833 ] if set to true enable 2833
3376
3385
  * @property { string } [ contactparams ] - additional params to add to the contact string in the invite
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babblevoice/babble-drachtio-callmanager",
3
- "version": "3.6.1",
3
+ "version": "3.6.3",
4
4
  "description": "Call processing to create a PBX",
5
5
  "main": "index.js",
6
6
  "scripts": {