Manages SCTP connections by ID instead of an endpoint.
This commit is contained in:
parent
2c499626b3
commit
05e0454a56
|
@ -572,6 +572,7 @@ ColibriFocus.prototype.createdConference = function (result) {
|
||||||
{
|
{
|
||||||
initiator: 'true',
|
initiator: 'true',
|
||||||
expire: self.channelExpire,
|
expire: self.channelExpire,
|
||||||
|
id: self.mychannel[channel].attr('id'),
|
||||||
endpoint: self.myMucResource,
|
endpoint: self.myMucResource,
|
||||||
port: sctpPort
|
port: sctpPort
|
||||||
}
|
}
|
||||||
|
@ -885,6 +886,7 @@ ColibriFocus.prototype.updateChannel = function (remoteSDP, participant) {
|
||||||
{
|
{
|
||||||
var sctpmap = SDPUtil.find_line(remoteSDP.media[channel], 'a=sctpmap:');
|
var sctpmap = SDPUtil.find_line(remoteSDP.media[channel], 'a=sctpmap:');
|
||||||
change.c('sctpconnection', {
|
change.c('sctpconnection', {
|
||||||
|
id: $(this.channels[participant][channel]).attr('id'),
|
||||||
endpoint: $(this.channels[participant][channel]).attr('endpoint'),
|
endpoint: $(this.channels[participant][channel]).attr('endpoint'),
|
||||||
expire: self.channelExpire,
|
expire: self.channelExpire,
|
||||||
port: SDPUtil.parse_sctpmap(sctpmap)[0]
|
port: SDPUtil.parse_sctpmap(sctpmap)[0]
|
||||||
|
@ -1082,6 +1084,7 @@ ColibriFocus.prototype.addIceCandidate = function (session, elem) {
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
change.c('sctpconnection', {
|
change.c('sctpconnection', {
|
||||||
|
id: $(self.channels[participant][channel]).attr('id'),
|
||||||
endpoint: $(self.channels[participant][channel]).attr('endpoint'),
|
endpoint: $(self.channels[participant][channel]).attr('endpoint'),
|
||||||
expire: self.channelExpire
|
expire: self.channelExpire
|
||||||
});
|
});
|
||||||
|
@ -1169,6 +1172,7 @@ ColibriFocus.prototype.sendIceCandidates = function (candidates) {
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
mycands.c('sctpconnection', {
|
mycands.c('sctpconnection', {
|
||||||
|
id: $(this.mychannel[cands[0].sdpMLineIndex]).attr('id'),
|
||||||
endpoint: $(this.mychannel[cands[0].sdpMLineIndex]).attr('endpoint'),
|
endpoint: $(this.mychannel[cands[0].sdpMLineIndex]).attr('endpoint'),
|
||||||
port: $(this.mychannel[cands[0].sdpMLineIndex]).attr('port'),
|
port: $(this.mychannel[cands[0].sdpMLineIndex]).attr('port'),
|
||||||
expire: self.channelExpire
|
expire: self.channelExpire
|
||||||
|
@ -1228,6 +1232,7 @@ ColibriFocus.prototype.terminate = function (session, reason) {
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
change.c('sctpconnection', {
|
change.c('sctpconnection', {
|
||||||
|
id: $(this.channels[participant][channel]).attr('id'),
|
||||||
endpoint: $(this.channels[participant][channel]).attr('endpoint'),
|
endpoint: $(this.channels[participant][channel]).attr('endpoint'),
|
||||||
expire: '0'
|
expire: '0'
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue