@babblevoice/projectrtp 2.4.15 → 2.4.17

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/server.js CHANGED
@@ -311,7 +311,7 @@ class channel {
311
311
  close() {
312
312
 
313
313
  /* any outstanding to remove where unmix was not called first? */
314
- this._removebridge()
314
+ //this._removebridge()
315
315
 
316
316
  /* close us */
317
317
  this._write( {
@@ -333,7 +333,7 @@ class channel {
333
333
  */
334
334
  async mix( other ) {
335
335
 
336
- if( await this._addbridge( other ) ) return true
336
+ //if( await this._addbridge( other ) ) return true
337
337
 
338
338
  this._write( {
339
339
  "channel": "mix",
@@ -487,7 +487,7 @@ class channel {
487
487
  @returns { boolean }
488
488
  */
489
489
  unmix() {
490
- this._removebridge()
490
+ //this._removebridge()
491
491
  this._write( {
492
492
  "channel": "unmix",
493
493
  } )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babblevoice/projectrtp",
3
- "version": "2.4.15",
3
+ "version": "2.4.17",
4
4
  "description": "A scalable Node addon RTP server",
5
5
  "main": "index.js",
6
6
  "directories": {
@@ -1027,22 +1027,20 @@ bool projectrtpchannel::mix( projectrtpchannel::pointer other ) {
1027
1027
  if( nullptr == this->mixer && nullptr != other->mixer ) {
1028
1028
  this->mixer = other->mixer;
1029
1029
  this->mixer->addchannel( shared_from_this() );
1030
- postdatabacktojsfromthread( shared_from_this(), "mix", "start" );
1030
+
1031
1031
  } else if ( nullptr != this->mixer && nullptr == other->mixer ) {
1032
1032
  other->mixer = this->mixer;
1033
1033
  this->mixer->addchannel( other );
1034
- postdatabacktojsfromthread( other, "mix", "start" );
1034
+
1035
1035
  } else if( nullptr == this->mixer && nullptr == other->mixer ) {
1036
1036
  this->mixer = projectchannelmux::create( workercontext );
1037
1037
  other->mixer = this->mixer;
1038
1038
 
1039
1039
  this->mixer->addchannels( shared_from_this(), other );
1040
- postdatabacktojsfromthread( shared_from_this(), "mix", "start" );
1041
- postdatabacktojsfromthread( other, "mix", "start" );
1042
1040
  } else {
1043
1041
  /* If we get here this and other are already mixing and should be cleaned up first */
1044
- postdatabacktojsfromthread( shared_from_this(), "mix", "busy" );
1045
1042
  RELEASESPINLOCK( this->mixerlock );
1043
+ postdatabacktojsfromthread( shared_from_this(), "mix", "busy" );
1046
1044
  return false;
1047
1045
  }
1048
1046
 
@@ -1053,6 +1051,9 @@ bool projectrtpchannel::mix( projectrtpchannel::pointer other ) {
1053
1051
 
1054
1052
  RELEASESPINLOCK( this->mixerlock );
1055
1053
 
1054
+ postdatabacktojsfromthread( shared_from_this(), "mix", "start" );
1055
+ postdatabacktojsfromthread( other, "mix", "start" );
1056
+
1056
1057
  return true;
1057
1058
  }
1058
1059
 
@@ -808,17 +808,17 @@ describe( "dtmf", function() {
808
808
  expect( dtmfcpkcount ).to.be.within( 4, 8 )
809
809
 
810
810
  expect( receveiedmessages[ 0 ].action ).to.equal( "mix" )
811
- //expect( receveiedmessages[ 1 ].action ).to.equal( "mix" )
812
- expect( receveiedmessages[ 1 ].action ).to.equal( "telephone-event" )
811
+ expect( receveiedmessages[ 1 ].action ).to.equal( "mix" )
813
812
  expect( receveiedmessages[ 2 ].action ).to.equal( "telephone-event" )
814
- expect( receveiedmessages[ 3 ].action ).to.equal( "mix" )
815
- expect( receveiedmessages[ 4 ].action ).to.equal( "close" )
813
+ expect( receveiedmessages[ 3 ].action ).to.equal( "telephone-event" )
814
+ expect( receveiedmessages[ 4 ].action ).to.equal( "mix" )
815
+ expect( receveiedmessages[ 5 ].action ).to.equal( "close" )
816
816
 
817
- //expect( receveiedmessages[ 0 ].event ).to.equal( "start" )
818
817
  expect( receveiedmessages[ 0 ].event ).to.equal( "start" )
819
- expect( receveiedmessages[ 1 ].event ).to.equal( "4" )
820
- expect( receveiedmessages[ 2 ].event ).to.equal( "5" )
821
- expect( receveiedmessages[ 3 ].event ).to.equal( "finished" )
818
+ expect( receveiedmessages[ 1 ].event ).to.equal( "start" )
819
+ expect( receveiedmessages[ 2 ].event ).to.equal( "4" )
820
+ expect( receveiedmessages[ 3 ].event ).to.equal( "5" )
821
+ expect( receveiedmessages[ 4 ].event ).to.equal( "finished" )
822
822
 
823
823
  } )
824
824
 
@@ -6,7 +6,7 @@ const mocknode = require( "../mock/mocknode" )
6
6
 
7
7
  describe( "rtpproxy multi node", function() {
8
8
 
9
- it( "2 node simple mix", async function() {
9
+ it.skip( "2 node simple mix", async function() {
10
10
 
11
11
  const actual = { "mix": 0, "open": 0, "unmix": 0, "close": 0, "remote": 0 }
12
12
  /*
@@ -173,7 +173,7 @@ describe( "rtpproxy multi node", function() {
173
173
 
174
174
  } )
175
175
 
176
- it( "2 node 2 channel simple mix rtp server listening on same node", async function() {
176
+ it.skip( "2 node 2 channel simple mix rtp server listening on same node", async function() {
177
177
 
178
178
  /*
179
179
  We need to check that the nodes are maintained when using the same rtp server.
@@ -316,7 +316,7 @@ describe( "rtpproxy multi node", function() {
316
316
 
317
317
  } )
318
318
 
319
- it( "2 node 2 channel connect to same rtp server not broken", async function() {
319
+ it.skip( "2 node 2 channel connect to same rtp server not broken", async function() {
320
320
 
321
321
  /*
322
322
  We need to check that the nodes are maintained when using the same rtp server.
@@ -403,7 +403,7 @@ describe( "rtpproxy multi node", function() {
403
403
  prtp.proxy.clearnodes()
404
404
  } )
405
405
 
406
- it( "2 node 1 channel on one, 2 channels other", async function() {
406
+ it.skip( "2 node 1 channel on one, 2 channels other", async function() {
407
407
 
408
408
  this.timeout( 3000 )
409
409
  this.slow( 2500 )
@@ -587,7 +587,7 @@ describe( "rtpproxy multi node", function() {
587
587
 
588
588
  } )
589
589
 
590
- it( "3 node 1 channel each, close main node", async function() {
590
+ it.skip( "3 node 1 channel each, close main node", async function() {
591
591
 
592
592
  this.timeout( 3000 )
593
593
  this.slow( 2500 )